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:
Clinton Wolfe 2022-06-27 15:35:46 -04:00
parent 181ef37f2d
commit 007a014942
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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