Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ gemspec

group :development do
gem 'rack-test'
gem 'smart_proxy', :git => 'https://github.com/theforeman/smart-proxy.git', :branch => 'develop'
gem 'smart_proxy', git: 'https://github.com/theforeman/smart-proxy.git', branch: 'develop'
end
2 changes: 1 addition & 1 deletion lib/smart_proxy_realm_ad/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

module Proxy::AdRealm
class Plugin < Proxy::Provider
default_settings :computername_prefix => '', :computername_use_fqdn => false
default_settings computername_prefix: '', computername_use_fqdn: false

load_classes ::Proxy::AdRealm::ConfigurationLoader
load_dependency_injection_wirings ::Proxy::AdRealm::ConfigurationLoader
Expand Down
6 changes: 3 additions & 3 deletions test/internal_api_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,22 @@ def app
end

def setup
@server = Proxy::AdRealm::Provider.new(:realm => 'test.com')
@server = Proxy::AdRealm::Provider.new(realm: 'test.com')
end

def test_create_host
realm = 'TEST.COM'
hostname = 'test.com'
@server.expects(:create).with(realm, hostname, is_a(Hash))
post "/#{realm}", :hostname => 'test.com'
post "/#{realm}", hostname: 'test.com'
assert last_response.ok?, "Last response was not ok: #{last_response.status} #{last_response.body}"
end

def test_rebuild_host
realm = 'TEST.COM'
hostname = 'test.com'
@server.expects(:create).with(realm, hostname, has_entry('rebuild', 'true'))
post "/#{realm}", :hostname => 'test.com', :rebuild => true
post "/#{realm}", hostname: 'test.com', rebuild: true
assert last_response.ok?, "Last response was not ok: #{last_response.status} #{last_response.body}"
end

Expand Down
Loading