From 007a0149427b995d5cd0bccbc6f6f1adfd491d0d Mon Sep 17 00:00:00 2001 From: Clinton Wolfe Date: Mon, 27 Jun 2022 15:35:46 -0400 Subject: [PATCH] Use esxi instead of undefined as an unsupported OS to silence 'unknown OS' warnings Signed-off-by: Clinton Wolfe --- test/unit/resources/cgroup_test.rb | 2 +- test/unit/resources/default_gateway_test.rb | 2 +- test/unit/resources/routing_table_test.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit/resources/cgroup_test.rb b/test/unit/resources/cgroup_test.rb index e176c2669..18284b720 100644 --- a/test/unit/resources/cgroup_test.rb +++ b/test/unit/resources/cgroup_test.rb @@ -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 diff --git a/test/unit/resources/default_gateway_test.rb b/test/unit/resources/default_gateway_test.rb index cf580a095..8aa57d958 100644 --- a/test/unit/resources/default_gateway_test.rb +++ b/test/unit/resources/default_gateway_test.rb @@ -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 diff --git a/test/unit/resources/routing_table_test.rb b/test/unit/resources/routing_table_test.rb index fab6fcc3c..b7b35a230 100644 --- a/test/unit/resources/routing_table_test.rb +++ b/test/unit/resources/routing_table_test.rb @@ -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