summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Caiafa <acaiafa1@bloomberg.net>2015-08-14 10:22:06 -0400
committerAnthony Caiafa <acaiafa1@bloomberg.net>2015-08-14 10:22:06 -0400
commit6dce1a33f77d73a58a98cfa090d7c0aef9eb82d4 (patch)
treec76242f20cbd7282c277b377d1ca0b25eea80b8b
parentd7b155f4066ac12bd8c051e0710d0d852ae624e0 (diff)
downloadohai-6dce1a33f77d73a58a98cfa090d7c0aef9eb82d4.tar.gz
fixing ohai aix network plugin test
-rw-r--r--spec/unit/plugins/aix/network_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/plugins/aix/network_spec.rb b/spec/unit/plugins/aix/network_spec.rb
index cc87345f..a8be9b8d 100644
--- a/spec/unit/plugins/aix/network_spec.rb
+++ b/spec/unit/plugins/aix/network_spec.rb
@@ -67,7 +67,7 @@ ARP_AN
allow(@plugin).to receive(:collect_os).and_return(:aix)
@plugin[:network] = Mash.new
allow(@plugin).to receive(:shell_out).with("netstat -rn |grep default").and_return(mock_shell_out(0, @netstat_rn_grep_default, nil))
- allow(@plugin).to receive(:shell_out).with("lsdev -Cc if").and_return(mock_shell_out(0, @lsdev_Cc_if, nil))
+ allow(@plugin).to receive(:shell_out).with("lsdev -Cc if | grep Available").and_return(mock_shell_out(0, @lsdev_Cc_if, nil))
allow(@plugin).to receive(:shell_out).with("ifconfig en0").and_return(mock_shell_out(0, @ifconfig_en0, nil))
allow(@plugin).to receive(:shell_out).with("entstat -d en0 | grep \"Hardware Address\"").and_return(mock_shell_out(0, "Hardware Address: be:42:80:00:b0:05", nil))
allow(@plugin).to receive(:shell_out).with("netstat -nrf inet").and_return(mock_shell_out(0, @netstat_nrf_inet, nil))