Revision 14f614d9
Added by Sam Kottler over 11 years ago
- ID 14f614d98921224cd929027e456b263440be2684
test/unit/host_test.rb | ||
---|---|---|
assert host.location_id = new_location.id
|
||
end
|
||
|
||
test "assign a host to a tenant" do
|
||
test "assign a host to an organization" do
|
||
host = Host.create :name => "host 1", :mac => "aabbecddeeff", :ip => "5.5.5.5", :hostgroup => hostgroups(:common), :managed => false
|
||
organization = Organization.create :name => "Hosting client 1"
|
||
|
||
... | ... | |
assert host.save!
|
||
end
|
||
|
||
test "assign a host to both a location and a tenant" do
|
||
test "assign a host to both a location and an organization" do
|
||
host = Host.create :name => "host 1", :mac => "aabbccddeeff", :ip => "5.5.5.5", :hostgroup => hostgroups(:common), :managed => false
|
||
location = Location.create :name => "Tel Aviv"
|
||
organization = Organization.create :name => "Hosting client 1"
|
Also available in: Unified diff
Remove mention of tenants from test definitions