Skip to content

Commit

Permalink
tasks: replace os_identification with facts
Browse files Browse the repository at this point in the history
the facts task is vendored into bolt. It supports gathering facts from
systems with and without facter installed.
  • Loading branch information
bastelfreak committed Jul 22, 2024
1 parent 4743ffd commit 721d8e2
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 55 deletions.
7 changes: 0 additions & 7 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
* [`infrastatus`](#infrastatus): Runs puppet infra status and returns the output
* [`mkdir_p_file`](#mkdir_p_file): Create a file with the specified content at the specified location
* [`mv`](#mv): Wrapper task for mv command
* [`os_identification`](#os_identification): Return the operating system runnin gon the target as a string
* [`pe_install`](#pe_install): Install Puppet Enterprise from a tarball
* [`pe_ldap_config`](#pe_ldap_config): Set the ldap config in the PE console
* [`pe_uninstall`](#pe_uninstall): Uninstall Puppet Enterprise
Expand Down Expand Up @@ -1243,12 +1242,6 @@ Data type: `String`

New path of file

### <a name="os_identification"></a>`os_identification`

Return the operating system runnin gon the target as a string

**Supports noop?** false

### <a name="pe_install"></a>`pe_install`

Install Puppet Enterprise from a tarball
Expand Down
4 changes: 2 additions & 2 deletions plans/util/retrieve_and_upload.pp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
|-HEREDOC
# lint:endignore

$operating_system = run_task('peadm::os_identification', 'local://localhost')
$os_string =$operating_system.first.value['_output']
$operating_system = run_task('facts', 'local://localhost')
$os_string =$operating_system.first.value['os']['family']

if 'windows' in $os_string {
$exists = run_command("[System.IO.File]::Exists('${local_path}')", 'local://localhost')
Expand Down
2 changes: 1 addition & 1 deletion spec/plans/util/retrieve_and_upload_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
include BoltSpec::Plans

it 'file needs downloaded and needs uploaded' do

Check failure on line 7 in spec/plans/util/retrieve_and_upload_spec.rb

View workflow job for this annotation

GitHub Actions / Spec Tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

peadm::util::retrieve_and_upload file needs downloaded and needs uploaded Failure/Error: expect(run_plan('peadm::util::retrieve_and_upload', 'nodes' => 'primary', 'source' => '/tmp/source', 'upload_path' => '/tmp/upload', 'local_path' => '/tmp/download')).to be_ok RuntimeError: Expected test -e '/tmp/download' to be called 1 times Plan result: {"kind":"bolt/pal-error","msg":"Evaluation Error: Operator '[]' is not applicable to an Undef Value. (file: /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/spec/fixtures/modules/peadm/plans/util/retrieve_and_upload.pp, line: 33, column: 36)","details":{"file":"/home/runner/work/puppetlabs-peadm/puppetlabs-peadm/spec/fixtures/modules/peadm/plans/util/retrieve_and_upload.pp","line":33,"column":36}} /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/bolt-3.30.0/lib/bolt_spec/plans/action_stubs.rb:70:in `assert_called' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/bolt-3.30.0/lib/bolt_spec/plans/action_stubs.rb:24:in `block in assert_called' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/bolt-3.30.0/lib/bolt_spec/plans/action_stubs.rb:24:in `each' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/bolt-3.30.0/lib/bolt_spec/plans/action_stubs.rb:24:in `assert_called' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/bolt-3.30.0/lib/bolt_spec/plans/mock_executor.rb:188:in `block (2 levels) in assert_call_expectations' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/bolt-3.30.0/lib/bolt_spec/plans/mock_executor.rb:187:in `each' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/bolt-3.30.0/lib/bolt_spec/plans/mock_executor.rb:187:in `map' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/bolt-3.30.0/lib/bolt_spec/plans/mock_executor.rb:187:in `block in assert_call_expectations' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/bolt-3.30.0/lib/bolt_spec/plans/mock_executor.rb:186:in `each' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/bolt-3.30.0/lib/bolt_spec/plans/mock_executor.rb:186:in `assert_call_expectations' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/bolt-3.30.0/lib/bolt_spec/plans.rb:147:in `run_plan' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/spec/plans/util/retrieve_and_upload_spec.rb:43:in `block (2 levels) in <top (required)>' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:263:in `instance_exec' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/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/puppetlabs-peadm/puppetlabs-peadm/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/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:468:in `block in with_around_example_hooks' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.13.0/lib/rspec/core/hooks.rb:486:in `block in run' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.13.0/lib/rspec/core/hooks.rb:624:in `run_around_example_hooks_for' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.13.0/lib/rspec/core/hooks.rb:486:in `run' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:468:in `with_around_example_hooks' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:511:in `with_around_and_singleton_context_hooks' /home/runner/work/pupp

Check failure on line 7 in spec/plans/util/retrieve_and_upload_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

peadm::util::retrieve_and_upload file needs downloaded and needs uploaded Failure/Error: expect(run_plan('peadm::util::retrieve_and_upload', 'nodes' => 'primary', 'source' => '/tmp/source', 'upload_path' => '/tmp/upload', 'local_path' => '/tmp/download')).to be_ok RuntimeError: Expected test -e '/tmp/download' to be called 1 times Plan result: {"kind":"bolt/pal-error","msg":"Evaluation Error: Operator '[]' is not applicable to an Undef Value. (file: /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/spec/fixtures/modules/peadm/plans/util/retrieve_and_upload.pp, line: 33, column: 36)","details":{"file":"/home/runner/work/puppetlabs-peadm/puppetlabs-peadm/spec/fixtures/modules/peadm/plans/util/retrieve_and_upload.pp","line":33,"column":36}} /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/bolt-3.30.0/lib/bolt_spec/plans/action_stubs.rb:70:in `assert_called' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/bolt-3.30.0/lib/bolt_spec/plans/action_stubs.rb:24:in `block in assert_called' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/bolt-3.30.0/lib/bolt_spec/plans/action_stubs.rb:24:in `each' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/bolt-3.30.0/lib/bolt_spec/plans/action_stubs.rb:24:in `assert_called' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/bolt-3.30.0/lib/bolt_spec/plans/mock_executor.rb:188:in `block (2 levels) in assert_call_expectations' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/bolt-3.30.0/lib/bolt_spec/plans/mock_executor.rb:187:in `each' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/bolt-3.30.0/lib/bolt_spec/plans/mock_executor.rb:187:in `map' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/bolt-3.30.0/lib/bolt_spec/plans/mock_executor.rb:187:in `block in assert_call_expectations' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/bolt-3.30.0/lib/bolt_spec/plans/mock_executor.rb:186:in `each' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/bolt-3.30.0/lib/bolt_spec/plans/mock_executor.rb:186:in `assert_call_expectations' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/bolt-3.30.0/lib/bolt_spec/plans.rb:147:in `run_plan' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/spec/plans/util/retrieve_and_upload_spec.rb:43:in `block (2 levels) in <top (required)>' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:263:in `instance_exec' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/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/puppetlabs-peadm/puppetlabs-peadm/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/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:468:in `block in with_around_example_hooks' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.13.0/lib/rspec/core/hooks.rb:486:in `block in run' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.13.0/lib/rspec/core/hooks.rb:624:in `run_around_example_hooks_for' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.13.0/lib/rspec/core/hooks.rb:486:in `run' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:468:in `with_around_example_hooks' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:511:in `with_around_and_singleton_context_hooks' /home/runner/work/pupp

Check failure on line 7 in spec/plans/util/retrieve_and_upload_spec.rb

View workflow job for this annotation

GitHub Actions / Spec Tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

peadm::util::retrieve_and_upload file needs downloaded and needs uploaded Failure/Error: expect(run_plan('peadm::util::retrieve_and_upload', 'nodes' => 'primary', 'source' => '/tmp/source', 'upload_path' => '/tmp/upload', 'local_path' => '/tmp/download')).to be_ok RuntimeError: Expected test -e '/tmp/download' to be called 1 times Plan result: {"kind":"bolt/pal-error","msg":"Evaluation Error: Operator '[]' is not applicable to an Undef Value. (file: /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/spec/fixtures/modules/peadm/plans/util/retrieve_and_upload.pp, line: 33, column: 36)","details":{"file":"/home/runner/work/puppetlabs-peadm/puppetlabs-peadm/spec/fixtures/modules/peadm/plans/util/retrieve_and_upload.pp","line":33,"column":36}} /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/bolt-3.30.0/lib/bolt_spec/plans/action_stubs.rb:70:in `assert_called' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/bolt-3.30.0/lib/bolt_spec/plans/action_stubs.rb:24:in `block in assert_called' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/bolt-3.30.0/lib/bolt_spec/plans/action_stubs.rb:24:in `each' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/bolt-3.30.0/lib/bolt_spec/plans/action_stubs.rb:24:in `assert_called' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/bolt-3.30.0/lib/bolt_spec/plans/mock_executor.rb:188:in `block (2 levels) in assert_call_expectations' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/bolt-3.30.0/lib/bolt_spec/plans/mock_executor.rb:187:in `each' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/bolt-3.30.0/lib/bolt_spec/plans/mock_executor.rb:187:in `map' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/bolt-3.30.0/lib/bolt_spec/plans/mock_executor.rb:187:in `block in assert_call_expectations' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/bolt-3.30.0/lib/bolt_spec/plans/mock_executor.rb:186:in `each' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/bolt-3.30.0/lib/bolt_spec/plans/mock_executor.rb:186:in `assert_call_expectations' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/bolt-3.30.0/lib/bolt_spec/plans.rb:147:in `run_plan' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/spec/plans/util/retrieve_and_upload_spec.rb:43:in `block (2 levels) in <top (required)>' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:263:in `instance_exec' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:263:in `block in run' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.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/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:468:in `block in with_around_example_hooks' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/hooks.rb:486:in `block in run' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/hooks.rb:624:in `run_around_example_hooks_for' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/hooks.rb:486:in `run' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:468:in `with_around_example_hooks' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:511:in `with_around_and_singleton_context_hooks' /home/runner/work/pupp

Check failure on line 7 in spec/plans/util/retrieve_and_upload_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

peadm::util::retrieve_and_upload file needs downloaded and needs uploaded Failure/Error: expect(run_plan('peadm::util::retrieve_and_upload', 'nodes' => 'primary', 'source' => '/tmp/source', 'upload_path' => '/tmp/upload', 'local_path' => '/tmp/download')).to be_ok RuntimeError: Expected test -e '/tmp/download' to be called 1 times Plan result: {"kind":"bolt/pal-error","msg":"Evaluation Error: Operator '[]' is not applicable to an Undef Value. (file: /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/spec/fixtures/modules/peadm/plans/util/retrieve_and_upload.pp, line: 33, column: 36)","details":{"file":"/home/runner/work/puppetlabs-peadm/puppetlabs-peadm/spec/fixtures/modules/peadm/plans/util/retrieve_and_upload.pp","line":33,"column":36}} /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/bolt-3.30.0/lib/bolt_spec/plans/action_stubs.rb:70:in `assert_called' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/bolt-3.30.0/lib/bolt_spec/plans/action_stubs.rb:24:in `block in assert_called' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/bolt-3.30.0/lib/bolt_spec/plans/action_stubs.rb:24:in `each' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/bolt-3.30.0/lib/bolt_spec/plans/action_stubs.rb:24:in `assert_called' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/bolt-3.30.0/lib/bolt_spec/plans/mock_executor.rb:188:in `block (2 levels) in assert_call_expectations' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/bolt-3.30.0/lib/bolt_spec/plans/mock_executor.rb:187:in `each' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/bolt-3.30.0/lib/bolt_spec/plans/mock_executor.rb:187:in `map' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/bolt-3.30.0/lib/bolt_spec/plans/mock_executor.rb:187:in `block in assert_call_expectations' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/bolt-3.30.0/lib/bolt_spec/plans/mock_executor.rb:186:in `each' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/bolt-3.30.0/lib/bolt_spec/plans/mock_executor.rb:186:in `assert_call_expectations' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/bolt-3.30.0/lib/bolt_spec/plans.rb:147:in `run_plan' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/spec/plans/util/retrieve_and_upload_spec.rb:43:in `block (2 levels) in <top (required)>' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:263:in `instance_exec' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:263:in `block in run' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.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/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:468:in `block in with_around_example_hooks' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/hooks.rb:486:in `block in run' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/hooks.rb:624:in `run_around_example_hooks_for' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/hooks.rb:486:in `run' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:468:in `with_around_example_hooks' /home/runner/work/puppetlabs-peadm/puppetlabs-peadm/vendor/bundle/ruby/2.7.0/gems/rspec-core-3.13.0/lib/rspec/core/example.rb:511:in `with_around_and_singleton_context_hooks' /home/runner/work/pupp
expect_task('peadm::os_identification')
expect_task('facts')
expect_command("test -e '/tmp/download'").error_with('kind' => 'nope', 'msg' => 'The command failed with exit code 1')
expect_task('peadm::download')
expect_task('peadm::filesize').be_called_times(2).return_for_targets(
Expand Down
9 changes: 0 additions & 9 deletions tasks/os_identification.json

This file was deleted.

18 changes: 0 additions & 18 deletions tasks/os_identification.ps1

This file was deleted.

18 changes: 0 additions & 18 deletions tasks/os_identification.sh

This file was deleted.

0 comments on commit 721d8e2

Please sign in to comment.