From df50445d15d8874aa4eeb281d582f1bed5d96334 Mon Sep 17 00:00:00 2001 From: Manisha Singhal Date: Wed, 7 Aug 2024 12:10:05 +0200 Subject: [PATCH] Fix lxc nic spec test --- spec/helpers/nic_helper_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/helpers/nic_helper_spec.rb b/spec/helpers/nic_helper_spec.rb index 7a1c78d..efc4bed 100644 --- a/spec/helpers/nic_helper_spec.rb +++ b/spec/helpers/nic_helper_spec.rb @@ -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 @@ -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