Skip to content

Commit a9800a1

Browse files
authored
Fix lxc nic spec test (#95)
1 parent 3f27983 commit a9800a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/helpers/nic_helper_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
end
3939

4040
let(:lxc_nic) do
41-
{ id: 'net0', name: 'eth0', macaddr: '66:89:C5:59:AA:96', bridge: 'vmbr0', firewall: 1, link_down: 1, queues: 1,
41+
{ id: 'net0', name: 'eth0', hwaddr: '66:89:C5:59:AA:96', bridge: 'vmbr0', firewall: 1, link_down: 1, queues: 1,
4242
rate: 1, tag: 1, ip: '192.168.56.100/31' }
4343
end
4444

@@ -123,7 +123,7 @@
123123
end
124124

125125
it 'returns lxc nic string' do
126-
flat_lxc = { net0: 'eth0=66:89:C5:59:AA:96,bridge=vmbr0,firewall=1,link_down=1,queues=1,rate=1,tag=1,ip=192.168.56.100/31' }
126+
flat_lxc = { net0: 'name=eth0,hwaddr=66:89:C5:59:AA:96,bridge=vmbr0,firewall=1,link_down=1,queues=1,rate=1,tag=1,ip=192.168.56.100/31' }
127127
assert_equal flat_lxc, Fog::Proxmox::NicHelper.flatten(lxc_nic)
128128
end
129129
end

0 commit comments

Comments
 (0)