diff options
author | Shahul Hameed <skhajamohid1@bloomberg.net> | 2015-08-14 14:43:33 +0000 |
---|---|---|
committer | Shahul Hameed <skhajamohid1@bloomberg.net> | 2015-08-14 14:43:33 +0000 |
commit | 2e4b65a58089e0cd91a3242031b97ef0decd813a (patch) | |
tree | 5b1265a6483ad26650cf43076fba8d4ad14d8d84 | |
parent | 637bef8bf8c2c6a32ccfdf9186b42fed5de7148b (diff) | |
download | ohai-2e4b65a58089e0cd91a3242031b97ef0decd813a.tar.gz |
Add test case for getting cores on sparc processors for solaris cpu plugin
-rw-r--r-- | spec/unit/plugins/solaris2/cpu_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/plugins/solaris2/cpu_spec.rb b/spec/unit/plugins/solaris2/cpu_spec.rb index 00f8f1f3..61ebfb4c 100644 --- a/spec/unit/plugins/solaris2/cpu_spec.rb +++ b/spec/unit/plugins/solaris2/cpu_spec.rb @@ -127,6 +127,11 @@ END @plugin.run expect(@plugin["cpu"]["real"]).to eql(4) end + + it "should get the total core count" do + @plugin.run + expect(@plugin["cpu"]["cores"]).to eql(16) + end describe "per-cpu information" do it "should include model name for processors" do |