NEWOPS-1083 Look in the right place. #7
Annotations
3 errors
test:
spec/functions/decrypt_spec.rb#L11
eyaml_tools::decrypt is expected to run eyaml_tools::decrypt("ENC[PKCS7,MIIBeQYJKoZIhvcNAQcDoIIBajCCAWYCAQAxggEhMIIBHQIBADAFMAACAQEwDQYJKoZIhvcNAQE\nBBQAEggEAkHeLWY+nDYcVJcK4e0ASbCO/DgBFXoU4G02J+QqOJpkAQg3CX6KhxzuQyNwLwvqElFdICfxHIXSgO6Pw76taDW8P\nrTBR5Lmv38Z5mC0aIL9hwOTRlvyyx4fkLM4CFBGVbpVSzFmJ6PEgvaosG2hYjKiColIgcLG4JISRHnPOsveDHaDs3AqpRr4TRJIV2v4skYieJM6cWJ93s+maO\nUCNDunWXrcQQpIYahj8WrYmqmf4sE1bpqtNqTMicCtGV32IccIieB1Sqzlw6YOtu6/e6NDmUzxNqXRcbIGIXNfrLM/nOpmXepRJ9MhlnGwYQ6C+0CPbNKrfwymSVirgUMpGKDA8BgkqhkiG9w0BBwEwHQYJYIZIAWUDBAEqBBA9Wfkfu+oGYAx2XZGmRdQqgBBcolP8SXZ0l+tPHKg6a3H7]") and return "foo"
Failure/Error: it { is_expected.to run.with_params(FOO_ENC).and_return('foo') }
expected eyaml_tools::decrypt("ENC[PKCS7,MIIBeQYJKoZIhvcNAQcDoIIBajCCAWYCAQAxggEhMIIBHQIBADAFMAACAQEwDQYJKoZIhvcNAQE\nBBQAEggEAkHeLWY+nDYcVJcK4e0ASbCO/DgBFXoU4G02J+QqOJpkAQg3CX6KhxzuQyNwLwvqElFdICfxHIXSgO6Pw76taDW8P\nrTBR5Lmv38Z5mC0aIL9hwOTRlvyyx4fkLM4CFBGVbpVSzFmJ6PEgvaosG2hYjKiColIgcLG4JISRHnPOsveDHaDs3AqpRr4TRJIV2v4skYieJM6cWJ93s+maO\nUCNDunWXrcQQpIYahj8WrYmqmf4sE1bpqtNqTMicCtGV32IccIieB1Sqzlw6YOtu6/e6NDmUzxNqXRcbIGIXNfrLM/nOpmXepRJ9MhlnGwYQ6C+0CPbNKrfwymSVirgUMpGKDA8BgkqhkiG9w0BBwEwHQYJYIZIAWUDBAEqBBA9Wfkfu+oGYAx2XZGmRdQqgBBcolP8SXZ0l+tPHKg6a3H7]") to have returned "foo" instead of raising NoMethodError(undefined method `[]' for nil:NilClass)
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/spec/fixtures/modules/eyaml_tools/lib/puppet/functions/eyaml_tools/utils.rb:13:in `ensure_config'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/spec/fixtures/modules/eyaml_tools/lib/puppet/functions/eyaml_tools/decrypt.rb:11:in `decrypt'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/puppet-8.6.0/lib/puppet/pops/functions/dispatch.rb:62:in `invoke'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/puppet-8.6.0/lib/puppet/pops/functions/dispatcher.rb:48:in `block in dispatch'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/puppet-8.6.0/lib/puppet/pops/functions/dispatcher.rb:47:in `catch'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/puppet-8.6.0/lib/puppet/pops/functions/dispatcher.rb:47:in `dispatch'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/puppet-8.6.0/lib/puppet/pops/functions/function.rb:44:in `block in call'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/puppet-8.6.0/lib/puppet/pops/functions/function.rb:43:in `catch'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/puppet-8.6.0/lib/puppet/pops/functions/function.rb:43:in `call'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/rspec-puppet-4.0.2/lib/rspec-puppet/example/function_example_group.rb:21:in `block in execute'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/puppet-8.6.0/lib/puppet/context.rb:64:in `override'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/puppet-8.6.0/lib/puppet.rb:288:in `override'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/rspec-puppet-4.0.2/lib/rspec-puppet/example/function_example_group.rb:20:in `execute'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/rspec-puppet-4.0.2/lib/rspec-puppet/matchers/run.rb:12:in `matches?'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.13.0/lib/rspec/expectations/handler.rb:51:in `block in handle_matcher'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.13.0/lib/rspec/expectations/handler.rb:27:in `with_matcher'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.13.0/lib/rspec/expectations/handler.rb:48:in `handle_matcher'
/home/runner/work/puppet-eyaml_to
|
test:
spec/functions/encrypt_spec.rb#L4
eyaml_tools::encrypt is expected to run eyaml_tools::encrypt("foo") and match /ENC\[PKCS7,.+]/
Failure/Error: it { is_expected.to run.with_params('foo').and_return(/ENC\[PKCS7,.+]/) }
expected eyaml_tools::encrypt("foo") to have returned /ENC\[PKCS7,.+]/ instead of raising NoMethodError(undefined method `[]' for nil:NilClass)
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/spec/fixtures/modules/eyaml_tools/lib/puppet/functions/eyaml_tools/utils.rb:13:in `ensure_config'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/spec/fixtures/modules/eyaml_tools/lib/puppet/functions/eyaml_tools/encrypt.rb:11:in `encrypt'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/puppet-8.6.0/lib/puppet/pops/functions/dispatch.rb:62:in `invoke'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/puppet-8.6.0/lib/puppet/pops/functions/dispatcher.rb:48:in `block in dispatch'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/puppet-8.6.0/lib/puppet/pops/functions/dispatcher.rb:47:in `catch'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/puppet-8.6.0/lib/puppet/pops/functions/dispatcher.rb:47:in `dispatch'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/puppet-8.6.0/lib/puppet/pops/functions/function.rb:44:in `block in call'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/puppet-8.6.0/lib/puppet/pops/functions/function.rb:43:in `catch'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/puppet-8.6.0/lib/puppet/pops/functions/function.rb:43:in `call'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/rspec-puppet-4.0.2/lib/rspec-puppet/example/function_example_group.rb:21:in `block in execute'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/puppet-8.6.0/lib/puppet/context.rb:64:in `override'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/puppet-8.6.0/lib/puppet.rb:288:in `override'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/rspec-puppet-4.0.2/lib/rspec-puppet/example/function_example_group.rb:20:in `execute'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/rspec-puppet-4.0.2/lib/rspec-puppet/matchers/run.rb:12:in `matches?'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.13.0/lib/rspec/expectations/handler.rb:51:in `block in handle_matcher'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.13.0/lib/rspec/expectations/handler.rb:27:in `with_matcher'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.13.0/lib/rspec/expectations/handler.rb:48:in `handle_matcher'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.13.0/lib/rspec/expectations/expectation_target.rb:65:in `to'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.13.0/lib/rspec/expectations/expectation_target.rb:101:in `to'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/spec/functions/encrypt_spec.rb:4:in `block (2 levels) in <top (required)>'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:263:in `instance_exec'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:263:in `block in run'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:511:in `block in with_around_and_singleton_context_hooks'
/home/runner/work/puppet-eyaml_tools/puppet-eyaml_tools/vendor/bundle/ruby
|
test
Process completed with exit code 1.
|