summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Doherty <tom.doherty@fixnetix.com>2017-09-08 00:08:37 +0100
committerTom Doherty <tom.doherty@fixnetix.com>2017-09-08 00:08:37 +0100
commit6968a6aee8300b07a0b60f84145ea4c459a4c84a (patch)
tree4d149218ebe68d5afeafce291d6f5a46e006dd1d
parent37829e9f1f12f8cf0aa5a6ec09bd0053c2057846 (diff)
downloadchef-6968a6aee8300b07a0b60f84145ea4c459a4c84a.tar.gz
Fix unit tests for ethtool/bonding change
Signed-off-by: Tom Doherty <tom.doherty@fixnetix.com>
-rw-r--r--spec/unit/provider/ifconfig/redhat_spec.rb8
1 files changed, 4 insertions, 4 deletions
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)