mirror of
https://github.com/inspec/inspec
synced 2024-11-22 12:43:07 +00:00
Use esxi instead of undefined as an unsupported OS to silence 'unknown OS' warnings
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
parent
34cdb8780d
commit
17d7822365
3 changed files with 3 additions and 3 deletions
|
@ -26,7 +26,7 @@ describe Inspec::Resources::Cgroup do
|
|||
|
||||
# undefined
|
||||
it "check carrotking cgroup information on unsupported os" do
|
||||
resource = MockLoader.new("undefined".to_sym).load_resource("cgroup", "carrotking")
|
||||
resource = MockLoader.new("exsi".to_sym).load_resource("cgroup", "carrotking")
|
||||
_(resource.resource_skipped?).must_equal true
|
||||
_(resource.resource_exception_message).must_equal "The `cgroup` resource is not supported on your OS yet."
|
||||
end
|
||||
|
|
|
@ -19,7 +19,7 @@ describe Inspec::Resources::Defaultgateway do
|
|||
|
||||
# unsupported os
|
||||
it "check ipaddress and interface of default gateway on unsupported os" do
|
||||
resource = MockLoader.new("undefined".to_sym).load_resource("default_gateway")
|
||||
resource = MockLoader.new("esxi".to_sym).load_resource("default_gateway")
|
||||
_(resource.resource_skipped?).must_equal true
|
||||
_(resource.resource_failed?).must_equal true
|
||||
end
|
||||
|
|
|
@ -26,7 +26,7 @@ describe Inspec::Resources::Routingtable do
|
|||
|
||||
# unsupported os
|
||||
it "check routing table information on unsupported os" do
|
||||
resource = MockLoader.new("undefined".to_sym).load_resource("routing_table")
|
||||
resource = MockLoader.new("esxi".to_sym).load_resource("routing_table")
|
||||
_(resource.resource_skipped?).must_equal true
|
||||
_(resource.resource_failed?).must_equal true
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue