Revision 1bda921d
Added by Daniel Lobato Garcia about 9 years ago
test/unit/nic_test.rb | ||
---|---|---|
|
||
test "Alias subnet can only use static boot mode if it's managed" do
|
||
nic = FactoryGirl.build(:nic_managed, :virtual => true, :attached_to => 'eth0', :managed => true, :identifier => 'eth0:0')
|
||
nic.host = FactoryGirl.build(:host)
|
||
nic.subnet = FactoryGirl.build(:subnet, :boot_mode => Subnet::BOOT_MODES[:dhcp])
|
||
refute nic.valid?
|
||
assert_includes nic.errors.keys, :subnet_id
|
Also available in: Unified diff
fixes #10234 - Fix NIC taxonomies validation tests
Some of the tests in #9391 changed the way subnets should work regarding
taxonomies and some test data, this commit fixes that so tests are green
once again.
(cherry picked from commit 7678cac5ac26eb8ff2a35dedfc4acc189c815203)