summaryrefslogtreecommitdiff
path: root/spec/unit/plugins/aix/network_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/plugins/aix/network_spec.rb')
-rw-r--r--spec/unit/plugins/aix/network_spec.rb18
1 files changed, 17 insertions, 1 deletions
diff --git a/spec/unit/plugins/aix/network_spec.rb b/spec/unit/plugins/aix/network_spec.rb
index 3b66465b..446a58ff 100644
--- a/spec/unit/plugins/aix/network_spec.rb
+++ b/spec/unit/plugins/aix/network_spec.rb
@@ -1,6 +1,7 @@
#
# Author:: Prabhu Das (<prabhu.das@clogeny.com>)
-# Copyright:: Copyright (c) 2013 Opscode, Inc.
+# Author:: Isa Farnik (<isa@chef.io>)
+# Copyright:: Copyright (c) 2013-2015 Chef Software, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -106,6 +107,17 @@ ARP_AN
end
describe "when running on an LPAR" do
+
+ describe "sets the top-level attribute correctly" do
+ before do
+ @plugin.run
+ end
+
+ it 'for \'macaddress\'' do
+ expect(@plugin[:macaddress]).to eq("BE:42:80:00:B0:05")
+ end
+ end
+
describe "netstat -rn |grep default" do
before do
@plugin.run
@@ -134,6 +146,10 @@ ARP_AN
it "avoids collecting default interface" do
expect(@plugin[:network][:default_gateway]).to be_nil
end
+
+ it "avoids collecting a macaddress" do
+ expect(@plugin[:macaddress]).to be_nil
+ end
end
describe "lsdev -Cc if" do