test: fix bolt-modules tests #1037
tests.yaml
on: pull_request
rubocop_and_matrix
54s
Linux: Generate module cache
27s
Windows: Generate module cache
5m 18s
Matrix: modules_ci
run-dita
1m 11s
Matrix: Docker Transport
Matrix: Linux Integration
Matrix: SSH Transport
Matrix: bolt apply
Matrix: local_transports
Matrix: unit
Matrix: BoltSpec
Matrix: Windows Agentless
Matrix: Windows Integration
Matrix: WinRM Transport
Test suite
3s
Annotations
23 errors
|
Test vendored Modules - ubuntu-24.04:
bolt-modules/boltlib/spec/functions/apply_prep_spec.rb#L97
apply_prep with targets ignores unsupported metaparameters
Failure/Error: executor.stubs(:noop).returns(false)
Mocha::NotInitializedError:
Mocha methods cannot be used outside the context of a test
|
|
Test vendored Modules - ubuntu-24.04:
bolt-modules/boltlib/spec/functions/apply_prep_spec.rb#L79
apply_prep with targets escalates if provided _run_as
Failure/Error: executor.stubs(:noop).returns(false)
Mocha::NotInitializedError:
Mocha methods cannot be used outside the context of a test
|
|
Test vendored Modules - ubuntu-24.04:
bolt-modules/boltlib/spec/functions/apply_prep_spec.rb#L61
apply_prep with targets sets puppet-agent feature and gathers facts
Failure/Error: executor.stubs(:noop).returns(false)
Mocha::NotInitializedError:
Mocha methods cannot be used outside the context of a test
|
|
Test vendored Modules - ubuntu-24.04:
bolt-modules/prompt/spec/functions/prompt_spec.rb#L22
prompt returns a Sensitive value
Failure/Error: response = executor.prompt(prompt, options)
Mocha::ExpectationError:
unexpected invocation: #<Bolt::Executor:0x5730>.prompt("prompt", {sensitive: true})
unsatisfied expectations:
- expected exactly once, invoked never: #<Bolt::Executor:0x5730>.prompt("prompt", sensitive: true)
satisfied expectations:
- allowed any number of times, invoked never: #<Puppet::Util::Feature:0x5140>.root?(any_parameters)
|
|
Test vendored Modules - ubuntu-24.04:
bolt-modules/out/spec/functions/out/verbose_spec.rb#L35
out::verbose without tasks enabled fails and reports that out::verbose is not available
Failure/Error: let(:executor) { stub('executor', report_function_call: nil, publish_event: nil) }
NoMethodError:
undefined method `last' for nil:NilClass
|
|
Test vendored Modules - ubuntu-24.04:
bolt-modules/out/spec/functions/out/verbose_spec.rb#L27
out::verbose reports function call to analytics
Failure/Error: let(:executor) { stub('executor', report_function_call: nil, publish_event: nil) }
NoMethodError:
undefined method `last' for nil:NilClass
|
|
Test vendored Modules - ubuntu-24.04:
bolt-modules/out/spec/functions/out/verbose_spec.rb#L17
out::verbose sends a verbose event to the executor
Failure/Error: let(:executor) { stub('executor', report_function_call: nil, publish_event: nil) }
NoMethodError:
undefined method `last' for nil:NilClass
|
|
Test vendored Modules - ubuntu-24.04:
bolt-modules/out/spec/functions/out/message_spec.rb#L35
out::message without tasks enabled fails and reports that out::message is not available
Failure/Error: let(:executor) { stub('executor', report_function_call: nil, publish_event: nil) }
NoMethodError:
undefined method `last' for nil:NilClass
|
|
Test vendored Modules - ubuntu-24.04:
bolt-modules/out/spec/functions/out/message_spec.rb#L27
out::message reports function call to analytics
Failure/Error: let(:executor) { stub('executor', report_function_call: nil, publish_event: nil) }
NoMethodError:
undefined method `last' for nil:NilClass
|
|
Test vendored Modules - ubuntu-24.04:
bolt-modules/out/spec/functions/out/message_spec.rb#L17
out::message sends a message event to the executor
Failure/Error: let(:executor) { stub('executor', report_function_call: nil, publish_event: nil) }
NoMethodError:
undefined method `last' for nil:NilClass
|
|
rubocop_and_matrix:
spec/unit/transport/choria/shell_spec.rb#L301
Style/PartitionInsteadOfDoubleSelect: Use `partition` instead of consecutive `select` and `reject` calls.
|
|
rubocop_and_matrix:
spec/unit/transport/choria/shell_spec.rb#L100
Style/PartitionInsteadOfDoubleSelect: Use `partition` instead of consecutive `select` and `reject` calls.
|
|
rubocop_and_matrix:
spec/unit/transport/choria/bolt_tasks_spec.rb#L336
Style/PartitionInsteadOfDoubleSelect: Use `partition` instead of consecutive `select` and `reject` calls.
|
|
rubocop_and_matrix:
rakelib/tests.rake#L147
Layout/SpaceInsideBlockBraces: Space missing inside }.
|
|
rubocop_and_matrix:
rakelib/tests.rake#L147
Layout/SpaceInsideBlockBraces: Space between { and | missing.
|
|
rubocop_and_matrix:
rakelib/tests.rake#L145
Lint/UselessAssignment: Useless assignment to variable - `success`. (https://rubystyle.guide#underscore-unused-vars)
|
|
rubocop_and_matrix:
lib/bolt/transport/choria/client.rb#L205
Style/ReduceToHash: Use `to_h { ... }` instead of `each_with_object`.
|
|
rubocop_and_matrix:
lib/bolt/transport/choria/bolt_tasks.rb#L151
Style/ReduceToHash: Use `to_h { ... }` instead of `each_with_object`.
|
|
rubocop_and_matrix:
bolt-modules/shared_spec_helper.rb#L17
Layout/TrailingWhitespace: Trailing whitespace detected. (https://rubystyle.guide#no-trailing-whitespace)
|
|
rubocop_and_matrix:
bolt-modules/boltlib/spec/spec_helper.rb#L5
Layout/TrailingEmptyLines: Final newline missing. (https://rubystyle.guide#newline-eof)
|
|
Test vendored Modules - windows-2025
The strategy configuration was canceled because "modules_ci.ubuntu-24_04" failed
|
|
Test vendored Modules - windows-2025
The operation was canceled.
|
|
Test suite
Process completed with exit code 1.
|