summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-07-16 15:27:49 -0700
committerTim Smith <tsmith@chef.io>2018-07-16 15:27:49 -0700
commit03f38c0120732b5167547566d086350f82e83abe (patch)
treecd03fbf9dd495b44ff621e3010635ddbba1df0c6 /spec
parent4d229297e8323b5287916b80f93f44d83800dfb3 (diff)
parente2ea0b66b0801c0f83f84def14fdf8b09d30fa48 (diff)
downloadchef-03f38c0120732b5167547566d086350f82e83abe.tar.gz
Merge branch 'vlan' of https://github.com/tomdoherty/chef into tomdoherty-vlan
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/provider/ifconfig/redhat_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/unit/provider/ifconfig/redhat_spec.rb b/spec/unit/provider/ifconfig/redhat_spec.rb
index d81f963450..75291d3bf9 100644
--- a/spec/unit/provider/ifconfig/redhat_spec.rb
+++ b/spec/unit/provider/ifconfig/redhat_spec.rb
@@ -35,6 +35,7 @@ describe Chef::Provider::Ifconfig::Redhat do
@new_resource.bonding_opts "mode=active-backup miimon=100"
@new_resource.master "bond0"
@new_resource.slave "yes"
+ @new_resource.vlan "yes"
@provider = Chef::Provider::Ifconfig::Redhat.new(@new_resource, @run_context)
@current_resource = Chef::Resource::Ifconfig.new("10.0.0.1", @run_context)
@@ -60,6 +61,7 @@ describe Chef::Provider::Ifconfig::Redhat do
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*VLAN=yes\s*$/)
end
expect(@config).to receive(:run_action).with(:create)
expect(@config).to receive(:updated?).and_return(true)