Clean up for rubocop #66
Annotations
2 errors and 1 warning
Run bundle exec rake spec:
spec/functions/simpkv/delete_spec.rb#L58
simpkv::delete basic operation deletes an existing key in a specific backend in options
Failure/Error: is_expected.to run.with_params(key, @options_test_file).and_return(true)
expected simpkv::delete("mykey", {"backends"=>{"test_failer"=>{"id"=>"test", "type"=>"failer", "fail_constructor"=>false}, "test_file"=>{"id"=>"test", "type"=>"file", "root_path"=>"/tmp/d20241213-1848-io4m3v/simpkv/test_file"}, "myapp"=>{"id"=>"default_app_id", "type"=>"file", "root_path"=>"/tmp/d20241213-1848-io4m3v/simpkv/default_app_id"}, "default"=>{"id"=>"default", "type"=>"file", "root_path"=>"/tmp/d20241213-1848-io4m3v/simpkv/default"}}, "backend"=>"test_file"}) to have returned true instead of raising NoMethodError(undefined method `attr_reader' for #<Puppet::Resource::Catalog:0x0000555651a8df20>)
/home/runner/work/pupmod-simp-simpkv/pupmod-simp-simpkv/spec/fixtures/modules/simpkv/lib/puppet_x/simpkv/loader.rb:21:in `load'
/home/runner/work/pupmod-simp-simpkv/pupmod-simp-simpkv/spec/fixtures/modules/simpkv/lib/puppet/functions/simpkv/support/load.rb:22:in `instance_eval'
/home/runner/work/pupmod-simp-simpkv/pupmod-simp-simpkv/spec/fixtures/modules/simpkv/lib/puppet/functions/simpkv/support/load.rb:22:in `load'
/home/runner/work/pupmod-simp-simpkv/pupmod-simp-simpkv/vendor/bundle/ruby/2.7.0/gems/puppet-7.34.0/lib/puppet/pops/functions/dispatch.rb:60:in `invoke'
/home/runner/work/pupmod-simp-simpkv/pupmod-simp-simpkv/vendor/bundle/ruby/2.7.0/gems/puppet-7.34.0/lib/puppet/pops/functions/dispatcher.rb:47:in `block in dispatch'
/home/runner/work/pupmod-simp-simpkv/pupmod-simp-simpkv/vendor/bundle/ruby/2.7.0/gems/puppet-7.34.0/lib/puppet/pops/functions/dispatcher.rb:46:in `catch'
/home/runner/work/pupmod-simp-simpkv/pupmod-simp-simpkv/vendor/bundle/ruby/2.7.0/gems/puppet-7.34.0/lib/puppet/pops/functions/dispatcher.rb:46:in `dispatch'
/home/runner/work/pupmod-simp-simpkv/pupmod-simp-simpkv/vendor/bundle/ruby/2.7.0/gems/puppet-7.34.0/lib/puppet/pops/functions/function.rb:43:in `block in call'
/home/runner/work/pupmod-simp-simpkv/pupmod-simp-simpkv/vendor/bundle/ruby/2.7.0/gems/puppet-7.34.0/lib/puppet/pops/functions/function.rb:42:in `catch'
/home/runner/work/pupmod-simp-simpkv/pupmod-simp-simpkv/vendor/bundle/ruby/2.7.0/gems/puppet-7.34.0/lib/puppet/pops/functions/function.rb:42:in `call'
/home/runner/work/pupmod-simp-simpkv/pupmod-simp-simpkv/vendor/bundle/ruby/2.7.0/gems/puppet-7.34.0/lib/puppet/pops/functions/function.rb:117:in `block in internal_call_function'
/home/runner/work/pupmod-simp-simpkv/pupmod-simp-simpkv/vendor/bundle/ruby/2.7.0/gems/puppet-7.34.0/lib/puppet/util/profiler/around_profiler.rb:58:in `profile'
/home/runner/work/pupmod-simp-simpkv/pupmod-simp-simpkv/vendor/bundle/ruby/2.7.0/gems/puppet-7.34.0/lib/puppet/util/profiler.rb:51:in `profile'
/home/runner/work/pupmod-simp-simpkv/pupmod-simp-simpkv/vendor/bundle/ruby/2.7.0/gems/puppet-7.34.0/lib/puppet/pops/functions/function.rb:116:in `internal_call_function'
/home/runner/work/pupmod-simp-simpkv/pupmod-simp-simpkv/vendor/bundle/ruby/2.7.0/gems/puppet-7.34.0/lib/puppet/pops/functions/function.rb:71:in `call_function'
/home/runner/work/pupmod-simp-simpkv/pupmod-simp-simpkv/spec/fixtures/modules/simpkv/lib/puppet/functions/simpkv/delete.rb:103:in `delete'
/home/runner/work/pupmod-simp-simpkv/pupmod-simp-simpkv/vendor/bundle/ruby/2.7.0/gems/puppet-7.34.0/lib/puppet/pops/functions/dispatch.rb:60:in `invoke'
/home/runner/work/pupmod-simp-simpkv/pupmod-simp-simpkv/vendor/bundle/ruby/2.7.0/gems/puppet-7.34.0/lib/puppet/pops/functions/dispatcher.rb:47:in `block in dispatch'
/home/runner/work/pupmod-simp-simpkv/pupmod-simp-simpkv/vendor/bundle/ruby/2.7.0/gems/puppet-7.34.0/lib/puppet/pops/functions/dispatcher.rb:46:in `catch'
/home/runner/work/pupmod-simp-simpkv/pupmod-simp-simpkv/vendor/bundle/ruby/2.7.0/gems/puppet-7.34.0/lib/puppet/pops/functions/dispatcher.rb:46:in `dispatch'
/home/runner/work/pupmod-simp-simpkv/pupmod-simp-simpkv/vendor/bundle/ruby/2.7.0/gems/puppet-7.34.0/lib/puppet/pops/functions/function.rb:43:in `block in call'
/ho
|
Run bundle exec rake spec
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Set up job
0s
0s
Error:
This step has been truncated due to its large size. Download the full logs from the menu
once the workflow run has completed.
Run actions/checkout@v3
1s
1s
Error:
This step has been truncated due to its large size. Download the full logs from the menu
once the workflow run has completed.
Install Ruby 2.7
28s
28s
Error:
This step has been truncated due to its large size. Download the full logs from the menu
once the workflow run has completed.
Run command -v rpm || if command -v apt-get; then sudo apt-get update; sudo apt-get install -y rpm; fi ||:
0s
0s
Error:
This step has been truncated due to its large size. Download the full logs from the menu
once the workflow run has completed.
Run bundle exec rake spec
3s
3s
Error:
This step has been truncated due to its large size. Download the full logs from the menu
once the workflow run has completed.
Post Run actions/checkout@v3
0s
0s
Error:
This step has been truncated due to its large size. Download the full logs from the menu
once the workflow run has completed.
Complete job
0s
0s
Error:
This step has been truncated due to its large size. Download the full logs from the menu
once the workflow run has completed.
Loading