Skip to content
New issue

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

host resource should support Darwin platform #472

Closed
clintoncwolfe opened this issue Jul 3, 2019 · 1 comment
Closed

host resource should support Darwin platform #472

clintoncwolfe opened this issue Jul 3, 2019 · 1 comment

Comments

@clintoncwolfe
Copy link
Contributor

@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 the host resource:

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):

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

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

Possible Solution

Not sure if all it takes is to add the following?

supports platform: "darwin"
@clintoncwolfe
Copy link
Contributor Author

Invalid - should not have been moved from InSpec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant