Skip to content

Commit

Permalink
Fix lxc nic spec test (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
Manisha15 authored Aug 9, 2024
1 parent 3f27983 commit a9800a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/helpers/nic_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
end

let(:lxc_nic) do
{ id: 'net0', name: 'eth0', macaddr: '66:89:C5:59:AA:96', bridge: 'vmbr0', firewall: 1, link_down: 1, queues: 1,
{ id: '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' }
end

Expand Down Expand Up @@ -123,7 +123,7 @@
end

it 'returns lxc nic string' do
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' }
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' }
assert_equal flat_lxc, Fog::Proxmox::NicHelper.flatten(lxc_nic)
end
end
Expand Down

0 comments on commit a9800a1

Please sign in to comment.