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
I'm new to using onceover but familiar with using the PDK, where the combination of metadata.json and rspec-puppet-facts lets me loop through all supported OSes:
describe 'profiles::base' do
on_supported_os.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }
...
In onceover, this generates errors because rspec-puppet-facts is not present:
An error occurred while loading ./spec/classes/profiles/base_spec.rb.
Failure/Error:
on_supported_os.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }
it { is_expected.to compile }
it { is_expected.to contain_class('ca_cert') }
it { is_expected.to contain_class('sssd') }
it { is_expected.to contain_class('access') }
it { is_expected.to contain_class('sudo') }
NameError:
undefined local variable or method `on_supported_os' for RSpec::ExampleGroups::ProfilesBase:Class
# ./spec/classes/profiles/base_spec.rb:4:in `block in <top (required)>'
# ./spec/classes/profiles/base_spec.rb:3:in `<top (required)>'
What is the recommended way to perform a test against multiple OSes (e.g. RedHat family v7 and v8)?
The text was updated successfully, but these errors were encountered:
I'm new to using onceover but familiar with using the PDK, where the combination of metadata.json and rspec-puppet-facts lets me loop through all supported OSes:
In onceover, this generates errors because rspec-puppet-facts is not present:
What is the recommended way to perform a test against multiple OSes (e.g. RedHat family v7 and v8)?
The text was updated successfully, but these errors were encountered: