From 6968a6aee8300b07a0b60f84145ea4c459a4c84a Mon Sep 17 00:00:00 2001 From: Tom Doherty Date: Fri, 8 Sep 2017 00:08:37 +0100 Subject: Fix unit tests for ethtool/bonding change Signed-off-by: Tom Doherty --- spec/unit/provider/ifconfig/redhat_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'spec') diff --git a/spec/unit/provider/ifconfig/redhat_spec.rb b/spec/unit/provider/ifconfig/redhat_spec.rb index 5820cc6879..0a91137416 100644 --- a/spec/unit/provider/ifconfig/redhat_spec.rb +++ b/spec/unit/provider/ifconfig/redhat_spec.rb @@ -56,10 +56,10 @@ describe Chef::Provider::Ifconfig::Redhat do expect(arg).to match(/^\s*DEVICE=eth0\s*$/) expect(arg).to match(/^\s*IPADDR=10\.0\.0\.1\s*$/) expect(arg).to match(/^\s*NETMASK=255\.255\.254\.0\s*$/) - expect(arg).to match(/^\s*ETHTOOL_OPTS=-A eth3 autoneg off\s*$/) - expect(arg).to match(/^\s*BONDING_OPTS="mode=active-backup miimon=100"\s*$/) - expect(arg).to match(/^\s*MASTER=bond0"\s*$/) - expect(arg).to match(/^\s*SLAVE=yes"\s*$/) + expect(arg).to match(/^\s*ETHTOOL_OPTS=-A eth0 autoneg off\s*$/) + expect(arg).to match(/^\s*BONDING_OPTS=mode=active-backup miimon=100\s*$/) + expect(arg).to match(/^\s*MASTER=bond0\s*$/) + expect(arg).to match(/^\s*SLAVE=yes\s*$/) end expect(@config).to receive(:run_action).with(:create) expect(@config).to receive(:updated?).and_return(true) -- cgit v1.2.1