diff options
author | Sten Spans <sten@blinkenlights.nl> | 2014-08-11 10:34:29 +0200 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2015-02-17 11:46:32 -0500 |
commit | 2a470c9543fe6a20171a77b6dae9820fdca3d74c (patch) | |
tree | b413e0b37ad8235ce0d92ec33f823dc8d8753096 | |
parent | 2dc0b498e08f2e19e1d16d8fd717a0c7e7cdab30 (diff) | |
download | ohai-2a470c9543fe6a20171a77b6dae9820fdca3d74c.tar.gz |
add explicit test for ip link only interfaces
-rw-r--r-- | spec/unit/plugins/linux/network_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/plugins/linux/network_spec.rb b/spec/unit/plugins/linux/network_spec.rb index e2ca9940..d49c5f1b 100644 --- a/spec/unit/plugins/linux/network_spec.rb +++ b/spec/unit/plugins/linux/network_spec.rb @@ -577,6 +577,11 @@ Destination Gateway Genmask Flags Metric Ref Use Iface expect(plugin['network']['interfaces']['eth0.11']['state']).to eq('up') end + it "detects interfaces only visible via ip link" do + @plugin.run + @plugin['network']['interfaces']['eth3']['state'].should == 'up' + end + describe "when dealing with routes" do it "adds routes" do plugin.run |