Revision 316a4ccd
Added by Ohad Levy almost 12 years ago
- ID 316a4ccd5fef61c7f0a9cd1ab6ff81fd8c551083
test/functional/hosts_controller_test.rb | ||
---|---|---|
:architecture => architectures(:x86_64),
|
||
:environment => environments(:production),
|
||
:subnet => subnets(:one),
|
||
:disk => "empty partition"
|
||
:disk => "empty partition",
|
||
:puppet_proxy => smart_proxies(:puppetmaster)
|
||
}
|
||
}, set_session_user
|
||
end
|
||
... | ... | |
:architecture => architectures(:x86_64),
|
||
:environment => environments(:production),
|
||
:subnet => subnets(:one),
|
||
:disk => "empty partition"
|
||
:disk => "empty partition",
|
||
:puppet_proxy => smart_proxies(:puppetmaster)
|
||
|
||
}
|
||
}, set_session_user
|
||
end
|
||
... | ... | |
|
||
test 'multiple hostgroup change by host names' do
|
||
@request.env['HTTP_REFERER'] = hosts_path
|
||
host_names = %w{temp.yourdomain.net myname.mydomain.net }
|
||
host_names = %w{temp.yourdomain.net my5name.mydomain.net }
|
||
# check that we have hosts and their hostgroup is empty
|
||
host_names.each do |name|
|
||
host = Host.find_by_name name
|
Also available in: Unified diff
couple of test fixes after upgrading to a newer mocha/shoulda