Skip to content

failing unit: Bolt::Plugin::Module with _run_as in the module plugin runs the correct command #36

@jessereynolds

Description

@jessereynolds
$ bundle exec rspec ./spec/unit/plugin/puppet_library_spec.rb:54

Run options:
  include {locations: {"./spec/unit/plugin/puppet_library_spec.rb" => [54]}}
  exclude {jail: true, windows: true}
F

Failures:

  1) Bolt::Plugin::Module with _run_as in the module plugin runs the correct command
     Failure/Error: expect(result.value).to eq(nil)

       expected: nil
            got: #<Bolt::RunFailure: apply_prep failed on 1 target>

       (compared using ==)
     # ./spec/unit/plugin/puppet_library_spec.rb:49:in 'RSpec::ExampleGroups::BoltPluginModule#capture_opts'
     # ./spec/unit/plugin/puppet_library_spec.rb:55:in 'block (3 levels) in <top (required)>'

Finished in 0.13106 seconds (files took 0.63102 seconds to load)
1 example, 1 failure

Failed examples:

rspec ./spec/unit/plugin/puppet_library_spec.rb:54 # Bolt::Plugin::Module with _run_as in the module plugin runs the correct command

And some similar errors in the same rspec file:

rspec ./spec/unit/plugin/puppet_library_spec.rb:65 # Bolt::Plugin::Module without _run_as in the module plugin runs the correct command
rspec ./spec/unit/plugin/puppet_library_spec.rb:78 # Bolt::Plugin::Module without _run_as in the task plugin runs the correct command
rspec ./spec/unit/plugin/puppet_library_spec.rb:90 # Bolt::Plugin::Module without _run_as in the task plugin runs the correct command

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions