Revision 7b7d7d1d
Added by Timo Goebel almost 8 years ago
test/unit/host_test.rb | ||
---|---|---|
test '#info ENC YAML contains ipv4 and ipv6 subnets' do
|
||
host = FactoryGirl.build(:host, :with_subnet, :with_ipv6_subnet)
|
||
enc = host.info
|
||
assert enc['parameters']['foreman_subnets'].any? {|s| s['type'] == 'Subnet::Ipv4'}
|
||
assert enc['parameters']['foreman_subnets'].any? {|s| s['type'] == 'Subnet::Ipv6'}
|
||
assert enc['parameters']['foreman_subnets'].any? {|s| s['network_type'] == 'IPv4'}
|
||
assert enc['parameters']['foreman_subnets'].any? {|s| s['network_type'] == 'IPv6'}
|
||
end
|
||
|
||
describe 'cloning' do
|
Also available in: Unified diff
fixes #14665 - support IPv6 via API