You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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',
The text was updated successfully, but these errors were encountered:
haidangwa
changed the title
chefspecs testing for omnios (platform not supported)
chefspecs testing for omnios fail (platform not supported)
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:
Expected Result:
ChefSpec passes - testing of only supported platforms per metadata.rb
Actual Result:
Chefspec fails with fauxhai error:
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.
The text was updated successfully, but these errors were encountered: