diff options
author | Tom Doherty <tom.doherty@fixnetix.com> | 2017-09-08 00:08:37 +0100 |
---|---|---|
committer | Tom Doherty <tom.doherty@fixnetix.com> | 2017-09-08 00:08:37 +0100 |
commit | 6968a6aee8300b07a0b60f84145ea4c459a4c84a (patch) | |
tree | 4d149218ebe68d5afeafce291d6f5a46e006dd1d /spec | |
parent | 37829e9f1f12f8cf0aa5a6ec09bd0053c2057846 (diff) | |
download | chef-6968a6aee8300b07a0b60f84145ea4c459a4c84a.tar.gz |
Fix unit tests for ethtool/bonding change
Signed-off-by: Tom Doherty <tom.doherty@fixnetix.com>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/provider/ifconfig/redhat_spec.rb | 8 |
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) |