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

chefspecs testing for omnios fail (platform not supported) #118

Closed
haidangwa opened this issue May 13, 2019 · 0 comments
Closed

chefspecs testing for omnios fail (platform not supported) #118

haidangwa opened this issue May 13, 2019 · 0 comments

Comments

@haidangwa
Copy link
Contributor

haidangwa commented May 13, 2019

Cookbook version

1.7.3

Chef-client version

chef 13.12.14

Scenario:

Running chefspec results in a failure for an unsupported platform: omnios. This platform is not listed in the cookbook's metadata.rb as a supported platform.

Steps to Reproduce:

chef exec bundle install
rspec spec/recipes/install_forwarder_spec.rb

Expected Result:

ChefSpec passes - testing of only supported platforms per metadata.rb

Actual Result:

Chefspec fails with fauxhai error:

     Fauxhai::Exception::InvalidPlatform:
       Could not find platform 'omnios/151018' on the local disk and an HTTP error was encountered when fetching from Github. A list of available platforms is available at https://github.com/chefspec/fauxhai/blob/master/PLATFORMS.md

metadata.rb only lists debian, ubuntu, redhat, and centos as supported. This failure occurs in the install_forwarder_spec.rb, install_server_spec.rb, and user_spec.rb examples.

chef-splunk$ cd spec/recipes/
recipes$ grep omnios *
install_forwarder_spec.rb:  context 'omnios family' do
install_forwarder_spec.rb:        platform: 'omnios',
install_server_spec.rb:  context 'omnios family' do
install_server_spec.rb:        platform: 'omnios',
user_spec.rb:        platform: 'omnios',
@haidangwa haidangwa changed the title chefspecs testing for omnios (platform not supported) chefspecs testing for omnios fail (platform not supported) May 13, 2019
@tas50 tas50 closed this as completed Oct 2, 2019
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

2 participants