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
1) custom_module::linux::opencv Ubuntu 20.04 is expected to compile into a catalogue without dependency cycles
Failure/Error: it { is_expected.to compile }
error during compilation: Evaluation Error: Operator '[]' is not applicable to an Undef Value. (file: /home/puppet/custom_module/spec/fixtures/modules/nodejs/manifests/params.pp, line: 17, column: 19) on node muc-pvl-mds-02.loyaltypartner.com
...
2) custom_module::linux::opencv Ubuntu 20.04 is expected to contain File[/usr/lib/node_modules]
Failure/Error: it { is_expected.to contain_file('/usr/lib/node_modules') }
Puppet::PreformattedError:
Evaluation Error: Operator '[]' is not applicable to an Undef Value. (file: /home/ci_de/custom_module/spec/fixtures/modules/nodejs/manifests/params.pp, line: 17, column: 19) on node muc-pvl-mds-02.loyaltypartner.com
...
3) custom_module::linux::opencv Ubuntu 20.04 is expected to contain Package[cmake]
Failure/Error: it { is_expected.to contain_package('cmake') }
Puppet::PreformattedError:
Evaluation Error: Operator '[]' is not applicable to an Undef Value. (file: /home/ci_de/custom_module/spec/fixtures/modules/nodejs/manifests/params.pp, line: 17, column: 19) on node muc-pvl-mds-02.loyaltypartner.com
...
4) custom_module::linux::opencv Ubuntu 20.04 is expected to contain Package[opencv4nodejs]
Failure/Error: it { is_expected.to contain_package('opencv4nodejs') }
Puppet::PreformattedError:
Evaluation Error: Operator '[]' is not applicable to an Undef Value. (file: /home/ci_de/custom_module/spec/fixtures/modules/nodejs/manifests/params.pp, line: 17, column: 19) on node muc-pvl-mds-02.loyaltypartner.com
...
Finished in 5.95 seconds (files took 1.79 seconds to load)
24 examples, 4 failures
Failed examples:
rspec ./spec/classes/opencv_spec.rb:16 # custom_module::linux::opencv Ubuntu 20.04 is expected to compile into a catalogue without dependency cycles
rspec ./spec/classes/opencv_spec.rb:17 # custom_module::linux::opencv Ubuntu 20.04 is expected to contain File[/usr/lib/node_modules]
rspec ./spec/classes/opencv_spec.rb:18 # custom_module::linux::opencv Ubuntu 20.04 is expected to contain Package[cmake]
rspec ./spec/classes/opencv_spec.rb:19 # custom_module::linux::opencv Ubuntu 20.04 is expected to contain Package[opencv4nodejs]
What behaviour did you expect instead
Finished in x.xx seconds...
24 examples, 0 failures
Output log
See above.
Any additional information you'd like to impart
The text was updated successfully, but these errors were encountered:
This is a problem with the tests in your custom_module. If you use on_supported_os.each do |os, facts| et cetera, from https://github.com/mcanevet/rspec-puppet-facts like we do with @voxpupuli modules, you won't have this problem because you'll have all of the modern OS facts defined.
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
custom_module/manifests/linux/opencv.pp
custom_module/spec/classes/opencv_spec.rb
What are you seeing
What behaviour did you expect instead
Output log
See above.
Any additional information you'd like to impart
The text was updated successfully, but these errors were encountered: