We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@tdsacilowski commented on Wed Jul 03 2019
Using Kitchen-Terraform, I've defined a test using the local backend that makes use of the host resource:
local
host
control 'is_host_reachable' do describe host(attribute('output_tfe_instance_public_ip'), port: 80, protocol: 'tcp') do it { should be_reachable } end end
However, I get the following error when running the test on my MacBook:
Skipping profile: 'inspec-gcp' on unsupported platform: 'mac_os_x/18.6.0'
Made sure that I'm using an up-to-date version of inspec (in my Gemfile.lock):
Gemfile.lock
inspec (4.6.9)
Looking at host.rb I can see that support for Darwin/MacOS was added (see inspec/inspec#1608): https://github.com/inspec/inspec/blob/490824e6ce088b59b97591d1ebcff5744b3fd539/lib/inspec/resources/host.rb#L66-L67
host.rb
But doesn't seem that the appropriate platform support was defined (see inspec/inspec#2674): https://github.com/inspec/inspec/blob/490824e6ce088b59b97591d1ebcff5744b3fd539/lib/inspec/resources/host.rb#L30-L31
platform
Not sure if all it takes is to add the following?
supports platform: "darwin"
The text was updated successfully, but these errors were encountered:
Invalid - should not have been moved from InSpec.
Sorry, something went wrong.
No branches or pull requests
@tdsacilowski commented on Wed Jul 03 2019
Describe the problem
Using Kitchen-Terraform, I've defined a test using the
local
backend that makes use of thehost
resource:However, I get the following error when running the test on my MacBook:
Made sure that I'm using an up-to-date version of inspec (in my
Gemfile.lock
):Looking at
host.rb
I can see that support for Darwin/MacOS was added (see inspec/inspec#1608): https://github.com/inspec/inspec/blob/490824e6ce088b59b97591d1ebcff5744b3fd539/lib/inspec/resources/host.rb#L66-L67But doesn't seem that the appropriate
platform
support was defined (see inspec/inspec#2674): https://github.com/inspec/inspec/blob/490824e6ce088b59b97591d1ebcff5744b3fd539/lib/inspec/resources/host.rb#L30-L31Possible Solution
Not sure if all it takes is to add the following?
The text was updated successfully, but these errors were encountered: