Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(FM-8225) Convert to litmus testing #134

Merged
merged 1 commit into from
Jul 2, 2019
Merged

(FM-8225) Convert to litmus testing #134

merged 1 commit into from
Jul 2, 2019

Conversation

sheenaajay
Copy link
Contributor

Request for a review

@donoghuc
Copy link
Contributor

Are you abandoning #133 ? Where do you want review for this?

@sheenaajay
Copy link
Contributor Author

@donoghuc, Just realised we need to open PR against upstream to run the acceptance tests in pipeline. We will keep this PR for the litmus porting. Hope that's ok.

@donoghuc
Copy link
Contributor

donoghuc commented Jun 27, 2019

Sounds good. I left some comments on the other PR, should we continue all new review on this one?
Also, how does one access those pipelines tests? Appears my jenkins/ldap etc creds are not good enough. Is that a separate BTO request?

end

it 'installs pry', unless: (operating_system_fact == 'windows') do
result = run_task('package', 'default', 'action' => 'install', 'name' => 'pry', 'provider' => 'puppet_gem')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to just use the BoltSpec::Run methods directory for all the Rspec tests with the inventory and config setup by litmus?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@donoghuc Let me go through the BoltSpec:: Run methods. Sounds good.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, so my suggestion would be to use for example the BoltSpec::Run.run_task method directly in the rspec tests instead of the run_bolt_task method from litmus https://github.com/puppetlabs/puppet_litmus/blob/7c7bcb5e4b5d6202d1e7f10a678e810679a02845/lib/puppet_litmus/serverspec.rb#L142

Specifically, in general when your tests need the "bolt native" structure that is returned by for example https://github.com/puppetlabs/bolt/blob/45056d869f7377e196e6b0aeb177d3515ed3d63f/lib/bolt_spec/run.rb#L27 you should just use the BoltSpec::Run methods directly. When you need to use the litmus method (where you dont necessarily care about the task details, and only that it succeded/failed) then use the litmus run_bolt_task method.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@donoghuc we have updated run_bolt_task to handle result hash too.So we can test all the values returned from hash.
https://github.com/puppetlabs/puppet_litmus/blob/master/lib/puppet_litmus/serverspec.rb#L159

@sheenaajay sheenaajay force-pushed the litmuspackage branch 3 times, most recently from a1e9f5b to 1d250ad Compare June 28, 2019 12:27
@sheenaajay
Copy link
Contributor Author

Sounds good. I left some comments on the other PR, should we continue all new review on this one?
Also, how does one access those pipelines tests? Appears my jenkins/ldap etc creds are not good enough. Is that a separate BTO request?

@donoghuc Found this page for creating user accounts.Once the account is created we will be able to view the results.
https://confluence.puppetlabs.com/display/SRE/Creating+a+Puppet+Pipelines+account

Yeah we can use new PR for new comments. I will make sure all comments from old PR is addressed. Thank you.

@sheenaajay sheenaajay force-pushed the litmuspackage branch 6 times, most recently from 62683e7 to e0061b1 Compare July 1, 2019 14:17
spec/acceptance/init_spec.rb Outdated Show resolved Hide resolved
metadata.json Outdated Show resolved Hide resolved
spec/spec_helper_acceptance.rb Show resolved Hide resolved
@tphoney tphoney added the feature label Jul 2, 2019
@tphoney tphoney merged commit 1950f0e into master Jul 2, 2019
@donoghuc
Copy link
Contributor

donoghuc commented Jul 2, 2019

@tphoney @sheenaajay I am still unable to see anything with pipelines due to not having an account. I see that the jenkins testing is disabled as well. From what I can tell the only test targets are in travis https://travis-ci.org/puppetlabs/puppetlabs-package and there are failures there. Following the steps in the distelli manifest config I am seeing legit test failures due to the refactor. What is the plan moving forward for acceptance testing this module?

cas@cas-ThinkPad-T460p:~/working_dir/puppetlabs-package$ bundle exec rake litmus:acceptance:parallel
┌ [✖] Running against 22 targets.
├──[✖] uo2unuk9y4yq86q.delivery.puppetlabs.net, redhat-5-x86_64
├──[✖] qpfnl9j08g182ib.delivery.puppetlabs.net, redhat-6-x86_64
├──[✖] ys4pphlb2q03pwq.delivery.puppetlabs.net, redhat-7-x86_64
├──[✖] nnr93acod5n4yt3.delivery.puppetlabs.net, redhat-8-x86_64
├──[✖] d6jz6xd8ebqmjrb.delivery.puppetlabs.net, centos-5-x86_64
├──[✖] t90hl3kldb4czgn.delivery.puppetlabs.net, centos-6-x86_64
├──[✖] ttui2190o8m5ly4.delivery.puppetlabs.net, centos-7-x86_64
├──[✖] pdxpxz25nucf6w4.delivery.puppetlabs.net, oracle-5-x86_64
├──[✖] td2q65ttlb0yf7s.delivery.puppetlabs.net, oracle-6-x86_64
├──[✖] p3qi2r3a0g62bdt.delivery.puppetlabs.net, oracle-7-x86_64
├──[✖] t4dnlu83ewxjfvq.delivery.puppetlabs.net, scientific-6-x86_64
├──[✖] s333q9vcgiz8lp1.delivery.puppetlabs.net, scientific-7-x86_64
├──[✖] lz0iuji3pqaeoee.delivery.puppetlabs.net, debian-8-x86_64
├──[✖] qi8zm63mnycs0g7.delivery.puppetlabs.net, debian-9-x86_64
├──[✖] r4fnjq7121k09fo.delivery.puppetlabs.net, ubuntu-1404-x86_64
├──[✖] m3tu7qgsyvd3hcm.delivery.puppetlabs.net, ubuntu-1604-x86_64
├──[✖] rx3149u4iyf0u0p.delivery.puppetlabs.net, ubuntu-1804-x86_64
├──[✖] eidifqxg36jqesy.delivery.puppetlabs.net, win-2008r2-x86_64
├──[✖] h1qseyc8avpmh83.delivery.puppetlabs.net, win-2012r2-x86_64
├──[✖] oi3hfwh7h5112ow.delivery.puppetlabs.net, win-2016-x86_64
├──[✖] tyfr3rad8lyuqtj.delivery.puppetlabs.net, win-2019-x86_64
└──[✖] skgrxrcu3s0c06o.delivery.puppetlabs.net, win-10-pro-x86_64
================
oi3hfwh7h5112ow.delivery.puppetlabs.net, win-2016-x86_64

An error occurred while loading ./spec/acceptance/init_spec.rb.
On host `oi3hfwh7h5112ow.delivery.puppetlabs.net'
Failure/Error: node_config = config_from_node(inventory_hash, ENV['TARGET_HOST'])
NoMethodError:
  undefined method `[]' for false:FalseClass
  
# /home/cas/working_dir/puppet_litmus/lib/puppet_litmus/inventory_manipulation.rb:60:in `config_from_node'
# ./spec/spec_helper_acceptance.rb:18:in `<top (required)>'
# ./spec/acceptance/init_spec.rb:2:in `require'
# ./spec/acceptance/init_spec.rb:2:in `<top (required)>'

An error occurred while loading ./spec/acceptance/linux_spec.rb.
On host `oi3hfwh7h5112ow.delivery.puppetlabs.net'
Failure/Error: node_config = config_from_node(inventory_hash, ENV['TARGET_HOST'])
NoMethodError:
  undefined method `[]' for false:FalseClass
  
# /home/cas/working_dir/puppet_litmus/lib/puppet_litmus/inventory_manipulation.rb:60:in `config_from_node'
# ./spec/spec_helper_acceptance.rb:18:in `<top (required)>'
# ./spec/acceptance/linux_spec.rb:2:in `require'
# ./spec/acceptance/linux_spec.rb:2:in `<top (required)>'

An error occurred while loading ./spec/acceptance/windows_spec.rb.
On host `oi3hfwh7h5112ow.delivery.puppetlabs.net'
Failure/Error: node_config = config_from_node(inventory_hash, ENV['TARGET_HOST'])
NoMethodError:
  undefined method `[]' for false:FalseClass
  
# /home/cas/working_dir/puppet_litmus/lib/puppet_litmus/inventory_manipulation.rb:60:in `config_from_node'
# ./spec/spec_helper_acceptance.rb:18:in `<top (required)>'
# ./spec/acceptance/windows_spec.rb:2:in `require'
# ./spec/acceptance/windows_spec.rb:2:in `<top (required)>'
No examples found.


Finished in 0.00043 seconds (files took 2.38 seconds to load)
0 examples, 0 failures, 3 errors occurred outside of examples


pid 9940 exit 1
================
d6jz6xd8ebqmjrb.delivery.puppetlabs.net, centos-5-x86_64
FFFFFFFFFF

Failures:

  1) package task install installs pry
     On host `d6jz6xd8ebqmjrb.delivery.puppetlabs.net'
     Failure/Error: inventory_hash = add_feature_to_group(inventory_hash, 'puppet-agent', 'ssh_nodes')
     NoMethodError:
       undefined method `[]' for false:FalseClass
       
     # /home/cas/working_dir/puppet_litmus/lib/puppet_litmus/inventory_manipulation.rb:122:in `add_feature_to_group'
     # ./spec/acceptance/init_spec.rb:10:in `block (2 levels) in <top (required)>'

  2) package task install returns the version of pry
     On host `d6jz6xd8ebqmjrb.delivery.puppetlabs.net'
     Failure/Error: inventory_hash = add_feature_to_group(inventory_hash, 'puppet-agent', 'ssh_nodes')
     NoMethodError:
       undefined method `[]' for false:FalseClass
       
     # /home/cas/working_dir/puppet_litmus/lib/puppet_litmus/inventory_manipulation.rb:122:in `add_feature_to_group'
     # ./spec/acceptance/init_spec.rb:10:in `block (2 levels) in <top (required)>'

  3) package task install without puppet installs rsyslog
     On host `d6jz6xd8ebqmjrb.delivery.puppetlabs.net'
     Failure/Error: inventory_hash = add_feature_to_group(inventory_hash, 'puppet-agent', 'ssh_nodes')
     NoMethodError:
       undefined method `[]' for false:FalseClass
       
     # /home/cas/working_dir/puppet_litmus/lib/puppet_litmus/inventory_manipulation.rb:122:in `add_feature_to_group'
     # ./spec/acceptance/init_spec.rb:10:in `block (2 levels) in <top (required)>'

  4) package task uninstall uninstalls pry
     On host `d6jz6xd8ebqmjrb.delivery.puppetlabs.net'
     Failure/Error: inventory_hash = add_feature_to_group(inventory_hash, 'puppet-agent', 'ssh_nodes')
     NoMethodError:
       undefined method `[]' for false:FalseClass
       
     # /home/cas/working_dir/puppet_litmus/lib/puppet_litmus/inventory_manipulation.rb:122:in `add_feature_to_group'
     # ./spec/acceptance/init_spec.rb:10:in `block (2 levels) in <top (required)>'

  5) package task uninstall status
     On host `d6jz6xd8ebqmjrb.delivery.puppetlabs.net'
     Failure/Error: inventory_hash = add_feature_to_group(inventory_hash, 'puppet-agent', 'ssh_nodes')
     NoMethodError:
       undefined method `[]' for false:FalseClass
       
     # /home/cas/working_dir/puppet_litmus/lib/puppet_litmus/inventory_manipulation.rb:122:in `add_feature_to_group'
     # ./spec/acceptance/init_spec.rb:10:in `block (2 levels) in <top (required)>'

  6) linux package task install action installs rsyslog
     On host `d6jz6xd8ebqmjrb.delivery.puppetlabs.net'
     Failure/Error: inventory_hash = add_feature_to_group(inventory_hash, 'puppet-agent', 'ssh_nodes')
     NoMethodError:
       undefined method `[]' for false:FalseClass
       
     # /home/cas/working_dir/puppet_litmus/lib/puppet_litmus/inventory_manipulation.rb:122:in `add_feature_to_group'
     # ./spec/acceptance/linux_spec.rb:11:in `block (2 levels) in <top (required)>'

  7) linux package task install action errors gracefully when bogus package requested
     On host `d6jz6xd8ebqmjrb.delivery.puppetlabs.net'
     Failure/Error: inventory_hash = add_feature_to_group(inventory_hash, 'puppet-agent', 'ssh_nodes')
     NoMethodError:
       undefined method `[]' for false:FalseClass
       
     # /home/cas/working_dir/puppet_litmus/lib/puppet_litmus/inventory_manipulation.rb:122:in `add_feature_to_group'
     # ./spec/acceptance/linux_spec.rb:11:in `block (2 levels) in <top (required)>'

  8) linux package task status action status rsyslog
     On host `d6jz6xd8ebqmjrb.delivery.puppetlabs.net'
     Failure/Error: inventory_hash = add_feature_to_group(inventory_hash, 'puppet-agent', 'ssh_nodes')
     NoMethodError:
       undefined method `[]' for false:FalseClass
       
     # /home/cas/working_dir/puppet_litmus/lib/puppet_litmus/inventory_manipulation.rb:122:in `add_feature_to_group'
     # ./spec/acceptance/linux_spec.rb:11:in `block (2 levels) in <top (required)>'

  9) linux package task uninstall action uninstall rsyslog
     On host `d6jz6xd8ebqmjrb.delivery.puppetlabs.net'
     Failure/Error: inventory_hash = add_feature_to_group(inventory_hash, 'puppet-agent', 'ssh_nodes')
     NoMethodError:
       undefined method `[]' for false:FalseClass
       
     # /home/cas/working_dir/puppet_litmus/lib/puppet_litmus/inventory_manipulation.rb:122:in `add_feature_to_group'
     # ./spec/acceptance/linux_spec.rb:11:in `block (2 levels) in <top (required)>'

  10) linux package task upgrade upgrade rsyslog
      On host `d6jz6xd8ebqmjrb.delivery.puppetlabs.net'
      Failure/Error: inventory_hash = add_feature_to_group(inventory_hash, 'puppet-agent', 'ssh_nodes')
      NoMethodError:
        undefined method `[]' for false:FalseClass
        
      # /home/cas/working_dir/puppet_litmus/lib/puppet_litmus/inventory_manipulation.rb:122:in `add_feature_to_group'
      # ./spec/acceptance/linux_spec.rb:11:in `block (2 levels) in <top (required)>'

Finished in 0.00775 seconds (files took 3.12 seconds to load)
10 examples, 10 failures

Failed examples:

rspec ./spec/acceptance/init_spec.rb:21 # package task install installs pry
rspec ./spec/acceptance/init_spec.rb:29 # package task install returns the version of pry
rspec ./spec/acceptance/init_spec.rb:39 # package task install without puppet installs rsyslog
rspec ./spec/acceptance/init_spec.rb:51 # package task uninstall uninstalls pry
rspec ./spec/acceptance/init_spec.rb:58 # package task uninstall status
rspec ./spec/acceptance/linux_spec.rb:17 # linux package task install action installs rsyslog
rspec ./spec/acceptance/linux_spec.rb:25 # linux package task install action errors gracefully when bogus package requested
rspec ./spec/acceptance/linux_spec.rb:42 # linux package task status action status rsyslog
rspec ./spec/acceptance/linux_spec.rb:52 # linux package task uninstall action uninstall rsyslog
rspec ./spec/acceptance/linux_spec.rb:61 # linux package task upgrade upgrade rsyslog


pid 9859 exit 1
================
t4dnlu83ewxjfvq.delivery.puppetlabs.net, scientific-6-x86_64
FFF

Failures:

  1) package task install installs pry
     On host `t4dnlu83ewxjfvq.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{installed|install ok installed})
       expected nil to match /installed|install ok installed/
       
     # ./spec/acceptance/init_spec.rb:25:in `block (3 levels) in <top (required)>'

  2) package task uninstall uninstalls pry
     On host `t4dnlu83ewxjfvq.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to eq('uninstalled')
       
       expected: "uninstalled"
            got: nil
       
       (compared using ==)
       
     # ./spec/acceptance/init_spec.rb:54:in `block (3 levels) in <top (required)>'

  3) package task uninstall status
     On host `t4dnlu83ewxjfvq.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{absent|uninstalled})
       expected nil to match /absent|uninstalled/
       
     # ./spec/acceptance/init_spec.rb:61:in `block (3 levels) in <top (required)>'

Finished in 16.04 seconds (files took 3.43 seconds to load)
3 examples, 3 failures

Failed examples:

rspec ./spec/acceptance/init_spec.rb:21 # package task install installs pry
rspec ./spec/acceptance/init_spec.rb:51 # package task uninstall uninstalls pry
rspec ./spec/acceptance/init_spec.rb:58 # package task uninstall status


pid 9931 exit 1
================
t90hl3kldb4czgn.delivery.puppetlabs.net, centos-6-x86_64
FFF

Failures:

  1) package task install installs pry
     On host `t90hl3kldb4czgn.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{installed|install ok installed})
       expected nil to match /installed|install ok installed/
       
     # ./spec/acceptance/init_spec.rb:25:in `block (3 levels) in <top (required)>'

  2) package task uninstall uninstalls pry
     On host `t90hl3kldb4czgn.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to eq('uninstalled')
       
       expected: "uninstalled"
            got: nil
       
       (compared using ==)
       
     # ./spec/acceptance/init_spec.rb:54:in `block (3 levels) in <top (required)>'

  3) package task uninstall status
     On host `t90hl3kldb4czgn.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{absent|uninstalled})
       expected nil to match /absent|uninstalled/
       
     # ./spec/acceptance/init_spec.rb:61:in `block (3 levels) in <top (required)>'

Finished in 16.94 seconds (files took 3.56 seconds to load)
3 examples, 3 failures

Failed examples:

rspec ./spec/acceptance/init_spec.rb:21 # package task install installs pry
rspec ./spec/acceptance/init_spec.rb:51 # package task uninstall uninstalls pry
rspec ./spec/acceptance/init_spec.rb:58 # package task uninstall status


pid 9857 exit 1
================
td2q65ttlb0yf7s.delivery.puppetlabs.net, oracle-6-x86_64
FFF

Failures:

  1) package task install installs pry
     On host `td2q65ttlb0yf7s.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{installed|install ok installed})
       expected nil to match /installed|install ok installed/
       
     # ./spec/acceptance/init_spec.rb:25:in `block (3 levels) in <top (required)>'

  2) package task uninstall uninstalls pry
     On host `td2q65ttlb0yf7s.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to eq('uninstalled')
       
       expected: "uninstalled"
            got: nil
       
       (compared using ==)
       
     # ./spec/acceptance/init_spec.rb:54:in `block (3 levels) in <top (required)>'

  3) package task uninstall status
     On host `td2q65ttlb0yf7s.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{absent|uninstalled})
       expected nil to match /absent|uninstalled/
       
     # ./spec/acceptance/init_spec.rb:61:in `block (3 levels) in <top (required)>'

Finished in 17.17 seconds (files took 2.77 seconds to load)
3 examples, 3 failures

Failed examples:

rspec ./spec/acceptance/init_spec.rb:21 # package task install installs pry
rspec ./spec/acceptance/init_spec.rb:51 # package task uninstall uninstalls pry
rspec ./spec/acceptance/init_spec.rb:58 # package task uninstall status


pid 9953 exit 1
================
qpfnl9j08g182ib.delivery.puppetlabs.net, redhat-6-x86_64
FFF

Failures:

  1) package task install installs pry
     On host `qpfnl9j08g182ib.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{installed|install ok installed})
       expected nil to match /installed|install ok installed/
       
     # ./spec/acceptance/init_spec.rb:25:in `block (3 levels) in <top (required)>'

  2) package task uninstall uninstalls pry
     On host `qpfnl9j08g182ib.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to eq('uninstalled')
       
       expected: "uninstalled"
            got: nil
       
       (compared using ==)
       
     # ./spec/acceptance/init_spec.rb:54:in `block (3 levels) in <top (required)>'

  3) package task uninstall status
     On host `qpfnl9j08g182ib.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{absent|uninstalled})
       expected nil to match /absent|uninstalled/
       
     # ./spec/acceptance/init_spec.rb:61:in `block (3 levels) in <top (required)>'

Finished in 19.56 seconds (files took 3.3 seconds to load)
3 examples, 3 failures

Failed examples:

rspec ./spec/acceptance/init_spec.rb:21 # package task install installs pry
rspec ./spec/acceptance/init_spec.rb:51 # package task uninstall uninstalls pry
rspec ./spec/acceptance/init_spec.rb:58 # package task uninstall status


pid 9827 exit 1
================
nnr93acod5n4yt3.delivery.puppetlabs.net, redhat-8-x86_64
FF.FF.....

Failures:

  1) package task install installs pry
     On host `nnr93acod5n4yt3.delivery.puppetlabs.net'
     Failure/Error: apply_manifest('package { "pry": ensure => absent, provider => "puppet_gem", }')
     RuntimeError:
       apply manifest failed
       ` puppet apply /tmp/manifest_20190702_9852_i9bvnh.pp`
       ======
       [{"node"=>"nnr93acod5n4yt3.delivery.puppetlabs.net", "target"=>"nnr93acod5n4yt3.delivery.puppetlabs.net", "action"=>nil, "object"=>nil, "status"=>"failure", "result"=>{"_error"=>{"kind"=>"puppetlabs.tasks/connect-error", "msg"=>"Host key verification failed for nnr93acod5n4yt3.delivery.puppetlabs.net: fingerprint b7:32:3b:12:9e:59:3b:4e:a4:79:6e:5e:98:79:77:98 is unknown for \"nnr93acod5n4yt3.delivery.puppetlabs.net,10.16.115.239\"", "details"=>{}, "issue_code"=>"HOST_KEY_ERROR"}}}]
       
     # /home/cas/working_dir/puppet_litmus/lib/puppet_litmus/serverspec.rb:49:in `apply_manifest'
     # ./spec/acceptance/init_spec.rb:18:in `block (3 levels) in <top (required)>'

  2) package task install returns the version of pry
     On host `nnr93acod5n4yt3.delivery.puppetlabs.net'
     Failure/Error: apply_manifest('package { "pry": ensure => absent, provider => "puppet_gem", }')
     RuntimeError:
       apply manifest failed
       ` puppet apply /tmp/manifest_20190702_9852_i9bvnh.pp`
       ======
       [{"node"=>"nnr93acod5n4yt3.delivery.puppetlabs.net", "target"=>"nnr93acod5n4yt3.delivery.puppetlabs.net", "action"=>nil, "object"=>nil, "status"=>"failure", "result"=>{"_error"=>{"kind"=>"puppetlabs.tasks/connect-error", "msg"=>"Host key verification failed for nnr93acod5n4yt3.delivery.puppetlabs.net: fingerprint b7:32:3b:12:9e:59:3b:4e:a4:79:6e:5e:98:79:77:98 is unknown for \"nnr93acod5n4yt3.delivery.puppetlabs.net,10.16.115.239\"", "details"=>{}, "issue_code"=>"HOST_KEY_ERROR"}}}]
       
     # /home/cas/working_dir/puppet_litmus/lib/puppet_litmus/serverspec.rb:49:in `apply_manifest'
     # ./spec/acceptance/init_spec.rb:18:in `block (3 levels) in <top (required)>'

  3) package task uninstall uninstalls pry
     On host `nnr93acod5n4yt3.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to eq('uninstalled')
       
       expected: "uninstalled"
            got: nil
       
       (compared using ==)
       
     # ./spec/acceptance/init_spec.rb:54:in `block (3 levels) in <top (required)>'

  4) package task uninstall status
     On host `nnr93acod5n4yt3.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{absent|uninstalled})
       expected nil to match /absent|uninstalled/
       
     # ./spec/acceptance/init_spec.rb:61:in `block (3 levels) in <top (required)>'

Finished in 36.98 seconds (files took 3.52 seconds to load)
10 examples, 4 failures

Failed examples:

rspec ./spec/acceptance/init_spec.rb:21 # package task install installs pry
rspec ./spec/acceptance/init_spec.rb:29 # package task install returns the version of pry
rspec ./spec/acceptance/init_spec.rb:51 # package task uninstall uninstalls pry
rspec ./spec/acceptance/init_spec.rb:58 # package task uninstall status


pid 9852 exit 1
================
r4fnjq7121k09fo.delivery.puppetlabs.net, ubuntu-1404-x86_64
FF.FF.....

Failures:

  1) package task install installs pry
     On host `r4fnjq7121k09fo.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{installed|install ok installed})
       expected nil to match /installed|install ok installed/
       
     # ./spec/acceptance/init_spec.rb:25:in `block (3 levels) in <top (required)>'

  2) package task install returns the version of pry
     On host `r4fnjq7121k09fo.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{up to date|install ok installed})
       expected nil to match /up to date|install ok installed/
       
     # ./spec/acceptance/init_spec.rb:33:in `block (3 levels) in <top (required)>'

  3) package task uninstall uninstalls pry
     On host `r4fnjq7121k09fo.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to eq('uninstalled')
       
       expected: "uninstalled"
            got: nil
       
       (compared using ==)
       
     # ./spec/acceptance/init_spec.rb:54:in `block (3 levels) in <top (required)>'

  4) package task uninstall status
     On host `r4fnjq7121k09fo.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{absent|uninstalled})
       expected nil to match /absent|uninstalled/
       
     # ./spec/acceptance/init_spec.rb:61:in `block (3 levels) in <top (required)>'

Finished in 38.07 seconds (files took 3.81 seconds to load)
10 examples, 4 failures

Failed examples:

rspec ./spec/acceptance/init_spec.rb:21 # package task install installs pry
rspec ./spec/acceptance/init_spec.rb:29 # package task install returns the version of pry
rspec ./spec/acceptance/init_spec.rb:51 # package task uninstall uninstalls pry
rspec ./spec/acceptance/init_spec.rb:58 # package task uninstall status


pid 9925 exit 1
================
m3tu7qgsyvd3hcm.delivery.puppetlabs.net, ubuntu-1604-x86_64
FF.FF.....

Failures:

  1) package task install installs pry
     On host `m3tu7qgsyvd3hcm.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{installed|install ok installed})
       expected nil to match /installed|install ok installed/
       
     # ./spec/acceptance/init_spec.rb:25:in `block (3 levels) in <top (required)>'

  2) package task install returns the version of pry
     On host `m3tu7qgsyvd3hcm.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{up to date|install ok installed})
       expected nil to match /up to date|install ok installed/
       
     # ./spec/acceptance/init_spec.rb:33:in `block (3 levels) in <top (required)>'

  3) package task uninstall uninstalls pry
     On host `m3tu7qgsyvd3hcm.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to eq('uninstalled')
       
       expected: "uninstalled"
            got: nil
       
       (compared using ==)
       
     # ./spec/acceptance/init_spec.rb:54:in `block (3 levels) in <top (required)>'

  4) package task uninstall status
     On host `m3tu7qgsyvd3hcm.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{absent|uninstalled})
       expected nil to match /absent|uninstalled/
       
     # ./spec/acceptance/init_spec.rb:61:in `block (3 levels) in <top (required)>'

Finished in 39.76 seconds (files took 3.17 seconds to load)
10 examples, 4 failures

Failed examples:

rspec ./spec/acceptance/init_spec.rb:21 # package task install installs pry
rspec ./spec/acceptance/init_spec.rb:29 # package task install returns the version of pry
rspec ./spec/acceptance/init_spec.rb:51 # package task uninstall uninstalls pry
rspec ./spec/acceptance/init_spec.rb:58 # package task uninstall status


pid 9928 exit 1
================
qi8zm63mnycs0g7.delivery.puppetlabs.net, debian-9-x86_64
FF.FF.....

Failures:

  1) package task install installs pry
     On host `qi8zm63mnycs0g7.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{installed|install ok installed})
       expected nil to match /installed|install ok installed/
       
     # ./spec/acceptance/init_spec.rb:25:in `block (3 levels) in <top (required)>'

  2) package task install returns the version of pry
     On host `qi8zm63mnycs0g7.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{up to date|install ok installed})
       expected nil to match /up to date|install ok installed/
       
     # ./spec/acceptance/init_spec.rb:33:in `block (3 levels) in <top (required)>'

  3) package task uninstall uninstalls pry
     On host `qi8zm63mnycs0g7.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to eq('uninstalled')
       
       expected: "uninstalled"
            got: nil
       
       (compared using ==)
       
     # ./spec/acceptance/init_spec.rb:54:in `block (3 levels) in <top (required)>'

  4) package task uninstall status
     On host `qi8zm63mnycs0g7.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{absent|uninstalled})
       expected nil to match /absent|uninstalled/
       
     # ./spec/acceptance/init_spec.rb:61:in `block (3 levels) in <top (required)>'

Finished in 39 seconds (files took 3.73 seconds to load)
10 examples, 4 failures

Failed examples:

rspec ./spec/acceptance/init_spec.rb:21 # package task install installs pry
rspec ./spec/acceptance/init_spec.rb:29 # package task install returns the version of pry
rspec ./spec/acceptance/init_spec.rb:51 # package task uninstall uninstalls pry
rspec ./spec/acceptance/init_spec.rb:58 # package task uninstall status


pid 9946 exit 1
================
s333q9vcgiz8lp1.delivery.puppetlabs.net, scientific-7-x86_64
FF.FF.....

Failures:

  1) package task install installs pry
     On host `s333q9vcgiz8lp1.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{installed|install ok installed})
       expected nil to match /installed|install ok installed/
       
     # ./spec/acceptance/init_spec.rb:25:in `block (3 levels) in <top (required)>'

  2) package task install returns the version of pry
     On host `s333q9vcgiz8lp1.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{up to date|install ok installed})
       expected nil to match /up to date|install ok installed/
       
     # ./spec/acceptance/init_spec.rb:33:in `block (3 levels) in <top (required)>'

  3) package task uninstall uninstalls pry
     On host `s333q9vcgiz8lp1.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to eq('uninstalled')
       
       expected: "uninstalled"
            got: nil
       
       (compared using ==)
       
     # ./spec/acceptance/init_spec.rb:54:in `block (3 levels) in <top (required)>'

  4) package task uninstall status
     On host `s333q9vcgiz8lp1.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{absent|uninstalled})
       expected nil to match /absent|uninstalled/
       
     # ./spec/acceptance/init_spec.rb:61:in `block (3 levels) in <top (required)>'

Finished in 39.68 seconds (files took 3.68 seconds to load)
10 examples, 4 failures

Failed examples:

rspec ./spec/acceptance/init_spec.rb:21 # package task install installs pry
rspec ./spec/acceptance/init_spec.rb:29 # package task install returns the version of pry
rspec ./spec/acceptance/init_spec.rb:51 # package task uninstall uninstalls pry
rspec ./spec/acceptance/init_spec.rb:58 # package task uninstall status


pid 9906 exit 1
================
ttui2190o8m5ly4.delivery.puppetlabs.net, centos-7-x86_64
FF.FF.....

Failures:

  1) package task install installs pry
     On host `ttui2190o8m5ly4.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{installed|install ok installed})
       expected nil to match /installed|install ok installed/
       
     # ./spec/acceptance/init_spec.rb:25:in `block (3 levels) in <top (required)>'

  2) package task install returns the version of pry
     On host `ttui2190o8m5ly4.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{up to date|install ok installed})
       expected nil to match /up to date|install ok installed/
       
     # ./spec/acceptance/init_spec.rb:33:in `block (3 levels) in <top (required)>'

  3) package task uninstall uninstalls pry
     On host `ttui2190o8m5ly4.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to eq('uninstalled')
       
       expected: "uninstalled"
            got: nil
       
       (compared using ==)
       
     # ./spec/acceptance/init_spec.rb:54:in `block (3 levels) in <top (required)>'

  4) package task uninstall status
     On host `ttui2190o8m5ly4.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{absent|uninstalled})
       expected nil to match /absent|uninstalled/
       
     # ./spec/acceptance/init_spec.rb:61:in `block (3 levels) in <top (required)>'

Finished in 39.75 seconds (files took 4.06 seconds to load)
10 examples, 4 failures

Failed examples:

rspec ./spec/acceptance/init_spec.rb:21 # package task install installs pry
rspec ./spec/acceptance/init_spec.rb:29 # package task install returns the version of pry
rspec ./spec/acceptance/init_spec.rb:51 # package task uninstall uninstalls pry
rspec ./spec/acceptance/init_spec.rb:58 # package task uninstall status


pid 9854 exit 1
================
p3qi2r3a0g62bdt.delivery.puppetlabs.net, oracle-7-x86_64
FF.FF.....

Failures:

  1) package task install installs pry
     On host `p3qi2r3a0g62bdt.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{installed|install ok installed})
       expected nil to match /installed|install ok installed/
       
     # ./spec/acceptance/init_spec.rb:25:in `block (3 levels) in <top (required)>'

  2) package task install returns the version of pry
     On host `p3qi2r3a0g62bdt.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{up to date|install ok installed})
       expected nil to match /up to date|install ok installed/
       
     # ./spec/acceptance/init_spec.rb:33:in `block (3 levels) in <top (required)>'

  3) package task uninstall uninstalls pry
     On host `p3qi2r3a0g62bdt.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to eq('uninstalled')
       
       expected: "uninstalled"
            got: nil
       
       (compared using ==)
       
     # ./spec/acceptance/init_spec.rb:54:in `block (3 levels) in <top (required)>'

  4) package task uninstall status
     On host `p3qi2r3a0g62bdt.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{absent|uninstalled})
       expected nil to match /absent|uninstalled/
       
     # ./spec/acceptance/init_spec.rb:61:in `block (3 levels) in <top (required)>'

Finished in 42.59 seconds (files took 3.31 seconds to load)
10 examples, 4 failures

Failed examples:

rspec ./spec/acceptance/init_spec.rb:21 # package task install installs pry
rspec ./spec/acceptance/init_spec.rb:29 # package task install returns the version of pry
rspec ./spec/acceptance/init_spec.rb:51 # package task uninstall uninstalls pry
rspec ./spec/acceptance/init_spec.rb:58 # package task uninstall status


pid 9917 exit 1
================
lz0iuji3pqaeoee.delivery.puppetlabs.net, debian-8-x86_64
FF.FF.....

Failures:

  1) package task install installs pry
     On host `lz0iuji3pqaeoee.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{installed|install ok installed})
       expected nil to match /installed|install ok installed/
       
     # ./spec/acceptance/init_spec.rb:25:in `block (3 levels) in <top (required)>'

  2) package task install returns the version of pry
     On host `lz0iuji3pqaeoee.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{up to date|install ok installed})
       expected nil to match /up to date|install ok installed/
       
     # ./spec/acceptance/init_spec.rb:33:in `block (3 levels) in <top (required)>'

  3) package task uninstall uninstalls pry
     On host `lz0iuji3pqaeoee.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to eq('uninstalled')
       
       expected: "uninstalled"
            got: nil
       
       (compared using ==)
       
     # ./spec/acceptance/init_spec.rb:54:in `block (3 levels) in <top (required)>'

  4) package task uninstall status
     On host `lz0iuji3pqaeoee.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{absent|uninstalled})
       expected nil to match /absent|uninstalled/
       
     # ./spec/acceptance/init_spec.rb:61:in `block (3 levels) in <top (required)>'

Finished in 43.36 seconds (files took 2.75 seconds to load)
10 examples, 4 failures

Failed examples:

rspec ./spec/acceptance/init_spec.rb:21 # package task install installs pry
rspec ./spec/acceptance/init_spec.rb:29 # package task install returns the version of pry
rspec ./spec/acceptance/init_spec.rb:51 # package task uninstall uninstalls pry
rspec ./spec/acceptance/init_spec.rb:58 # package task uninstall status


pid 9974 exit 1
================
rx3149u4iyf0u0p.delivery.puppetlabs.net, ubuntu-1804-x86_64
FF.FF.....

Failures:

  1) package task install installs pry
     On host `rx3149u4iyf0u0p.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{installed|install ok installed})
       expected nil to match /installed|install ok installed/
       
     # ./spec/acceptance/init_spec.rb:25:in `block (3 levels) in <top (required)>'

  2) package task install returns the version of pry
     On host `rx3149u4iyf0u0p.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{up to date|install ok installed})
       expected nil to match /up to date|install ok installed/
       
     # ./spec/acceptance/init_spec.rb:33:in `block (3 levels) in <top (required)>'

  3) package task uninstall uninstalls pry
     On host `rx3149u4iyf0u0p.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to eq('uninstalled')
       
       expected: "uninstalled"
            got: nil
       
       (compared using ==)
       
     # ./spec/acceptance/init_spec.rb:54:in `block (3 levels) in <top (required)>'

  4) package task uninstall status
     On host `rx3149u4iyf0u0p.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{absent|uninstalled})
       expected nil to match /absent|uninstalled/
       
     # ./spec/acceptance/init_spec.rb:61:in `block (3 levels) in <top (required)>'

Finished in 46.66 seconds (files took 3.02 seconds to load)
10 examples, 4 failures

Failed examples:

rspec ./spec/acceptance/init_spec.rb:21 # package task install installs pry
rspec ./spec/acceptance/init_spec.rb:29 # package task install returns the version of pry
rspec ./spec/acceptance/init_spec.rb:51 # package task uninstall uninstalls pry
rspec ./spec/acceptance/init_spec.rb:58 # package task uninstall status


pid 9913 exit 1
================
pdxpxz25nucf6w4.delivery.puppetlabs.net, oracle-5-x86_64
FF.FF.....

Failures:

  1) package task install installs pry
     On host `pdxpxz25nucf6w4.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{installed|install ok installed})
       expected nil to match /installed|install ok installed/
       
     # ./spec/acceptance/init_spec.rb:25:in `block (3 levels) in <top (required)>'

  2) package task install returns the version of pry
     On host `pdxpxz25nucf6w4.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{up to date|install ok installed})
       expected nil to match /up to date|install ok installed/
       
     # ./spec/acceptance/init_spec.rb:33:in `block (3 levels) in <top (required)>'

  3) package task uninstall uninstalls pry
     On host `pdxpxz25nucf6w4.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to eq('uninstalled')
       
       expected: "uninstalled"
            got: nil
       
       (compared using ==)
       
     # ./spec/acceptance/init_spec.rb:54:in `block (3 levels) in <top (required)>'

  4) package task uninstall status
     On host `pdxpxz25nucf6w4.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{absent|uninstalled})
       expected nil to match /absent|uninstalled/
       
     # ./spec/acceptance/init_spec.rb:61:in `block (3 levels) in <top (required)>'

Finished in 49.21 seconds (files took 3.4 seconds to load)
10 examples, 4 failures

Failed examples:

rspec ./spec/acceptance/init_spec.rb:21 # package task install installs pry
rspec ./spec/acceptance/init_spec.rb:29 # package task install returns the version of pry
rspec ./spec/acceptance/init_spec.rb:51 # package task uninstall uninstalls pry
rspec ./spec/acceptance/init_spec.rb:58 # package task uninstall status


pid 9909 exit 1
================
ys4pphlb2q03pwq.delivery.puppetlabs.net, redhat-7-x86_64
FF.FF.....

Failures:

  1) package task install installs pry
     On host `ys4pphlb2q03pwq.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{installed|install ok installed})
       expected nil to match /installed|install ok installed/
       
     # ./spec/acceptance/init_spec.rb:25:in `block (3 levels) in <top (required)>'

  2) package task install returns the version of pry
     On host `ys4pphlb2q03pwq.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{up to date|install ok installed})
       expected nil to match /up to date|install ok installed/
       
     # ./spec/acceptance/init_spec.rb:33:in `block (3 levels) in <top (required)>'

  3) package task uninstall uninstalls pry
     On host `ys4pphlb2q03pwq.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to eq('uninstalled')
       
       expected: "uninstalled"
            got: nil
       
       (compared using ==)
       
     # ./spec/acceptance/init_spec.rb:54:in `block (3 levels) in <top (required)>'

  4) package task uninstall status
     On host `ys4pphlb2q03pwq.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{absent|uninstalled})
       expected nil to match /absent|uninstalled/
       
     # ./spec/acceptance/init_spec.rb:61:in `block (3 levels) in <top (required)>'

Finished in 52.18 seconds (files took 3.2 seconds to load)
10 examples, 4 failures

Failed examples:

rspec ./spec/acceptance/init_spec.rb:21 # package task install installs pry
rspec ./spec/acceptance/init_spec.rb:29 # package task install returns the version of pry
rspec ./spec/acceptance/init_spec.rb:51 # package task uninstall uninstalls pry
rspec ./spec/acceptance/init_spec.rb:58 # package task uninstall status


pid 9837 exit 1
================
uo2unuk9y4yq86q.delivery.puppetlabs.net, redhat-5-x86_64
FF.FF.....

Failures:

  1) package task install installs pry
     On host `uo2unuk9y4yq86q.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{installed|install ok installed})
       expected nil to match /installed|install ok installed/
       
     # ./spec/acceptance/init_spec.rb:25:in `block (3 levels) in <top (required)>'

  2) package task install returns the version of pry
     On host `uo2unuk9y4yq86q.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{up to date|install ok installed})
       expected nil to match /up to date|install ok installed/
       
     # ./spec/acceptance/init_spec.rb:33:in `block (3 levels) in <top (required)>'

  3) package task uninstall uninstalls pry
     On host `uo2unuk9y4yq86q.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to eq('uninstalled')
       
       expected: "uninstalled"
            got: nil
       
       (compared using ==)
       
     # ./spec/acceptance/init_spec.rb:54:in `block (3 levels) in <top (required)>'

  4) package task uninstall status
     On host `uo2unuk9y4yq86q.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{absent|uninstalled})
       expected nil to match /absent|uninstalled/
       
     # ./spec/acceptance/init_spec.rb:61:in `block (3 levels) in <top (required)>'

Finished in 52.66 seconds (files took 3.43 seconds to load)
10 examples, 4 failures

Failed examples:

rspec ./spec/acceptance/init_spec.rb:21 # package task install installs pry
rspec ./spec/acceptance/init_spec.rb:29 # package task install returns the version of pry
rspec ./spec/acceptance/init_spec.rb:51 # package task uninstall uninstalls pry
rspec ./spec/acceptance/init_spec.rb:58 # package task uninstall status


pid 9831 exit 1
================
tyfr3rad8lyuqtj.delivery.puppetlabs.net, win-2019-x86_64
FF.....

Failures:

  1) package task uninstall uninstalls pry
     On host `tyfr3rad8lyuqtj.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to eq('uninstalled')
       
       expected: "uninstalled"
            got: nil
       
       (compared using ==)
       
     # ./spec/acceptance/init_spec.rb:54:in `block (3 levels) in <top (required)>'

  2) package task uninstall status
     On host `tyfr3rad8lyuqtj.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{absent|uninstalled})
       expected nil to match /absent|uninstalled/
       
     # ./spec/acceptance/init_spec.rb:61:in `block (3 levels) in <top (required)>'

Finished in 1 minute 39.89 seconds (files took 2.63 seconds to load)
7 examples, 2 failures

Failed examples:

rspec ./spec/acceptance/init_spec.rb:51 # package task uninstall uninstalls pry
rspec ./spec/acceptance/init_spec.rb:58 # package task uninstall status


pid 9958 exit 1
================
h1qseyc8avpmh83.delivery.puppetlabs.net, win-2012r2-x86_64
FFF....

Failures:

  1) package task uninstall uninstalls pry
     On host `h1qseyc8avpmh83.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to eq('uninstalled')
       
       expected: "uninstalled"
            got: nil
       
       (compared using ==)
       
     # ./spec/acceptance/init_spec.rb:54:in `block (3 levels) in <top (required)>'

  2) package task uninstall status
     On host `h1qseyc8avpmh83.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{absent|uninstalled})
       expected nil to match /absent|uninstalled/
       
     # ./spec/acceptance/init_spec.rb:61:in `block (3 levels) in <top (required)>'

  3) windows package task install action install notepadplusplus.install
     On host `h1qseyc8avpmh83.delivery.puppetlabs.net'
     Failure/Error: result = run_bolt_task('package::windows', 'action' => 'install', 'name' => package_to_use)
     RuntimeError:
       task failed
       `package::windows`
       ======
       [{"node"=>"h1qseyc8avpmh83.delivery.puppetlabs.net", "target"=>"h1qseyc8avpmh83.delivery.puppetlabs.net", "action"=>"task", "object"=>"package::windows", "status"=>"failure", "result"=>{"status"=>"failure", "_error"=>{"msg"=>"Unable to perform 'install' on 'notepadplusplus.install': 'choco' is not recognized as an internal or external command, operable program or batch file.", "kind"=>"powershell_error", "details"=>{}}}}]
       
     # /home/cas/working_dir/puppet_litmus/lib/puppet_litmus/serverspec.rb:164:in `run_bolt_task'
     # ./spec/acceptance/windows_spec.rb:20:in `block (3 levels) in <top (required)>'

Finished in 1 minute 53.36 seconds (files took 2.93 seconds to load)
7 examples, 3 failures

Failed examples:

rspec ./spec/acceptance/init_spec.rb:51 # package task uninstall uninstalls pry
rspec ./spec/acceptance/init_spec.rb:58 # package task uninstall status
rspec ./spec/acceptance/windows_spec.rb:18 # windows package task install action install notepadplusplus.install


pid 9902 exit 1
================
eidifqxg36jqesy.delivery.puppetlabs.net, win-2008r2-x86_64
FF.....

Failures:

  1) package task uninstall uninstalls pry
     On host `eidifqxg36jqesy.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to eq('uninstalled')
       
       expected: "uninstalled"
            got: nil
       
       (compared using ==)
       
     # ./spec/acceptance/init_spec.rb:54:in `block (3 levels) in <top (required)>'

  2) package task uninstall status
     On host `eidifqxg36jqesy.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{absent|uninstalled})
       expected nil to match /absent|uninstalled/
       
     # ./spec/acceptance/init_spec.rb:61:in `block (3 levels) in <top (required)>'

Finished in 2 minutes 10.1 seconds (files took 2.5 seconds to load)
7 examples, 2 failures

Failed examples:

rspec ./spec/acceptance/init_spec.rb:51 # package task uninstall uninstalls pry
rspec ./spec/acceptance/init_spec.rb:58 # package task uninstall status


pid 9943 exit 1
================
skgrxrcu3s0c06o.delivery.puppetlabs.net, win-10-pro-x86_64
FF.....

Failures:

  1) package task uninstall uninstalls pry
     On host `skgrxrcu3s0c06o.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to eq('uninstalled')
       
       expected: "uninstalled"
            got: nil
       
       (compared using ==)
       
     # ./spec/acceptance/init_spec.rb:54:in `block (3 levels) in <top (required)>'

  2) package task uninstall status
     On host `skgrxrcu3s0c06o.delivery.puppetlabs.net'
     Failure/Error: expect(result.stdout).to match(%r{absent|uninstalled})
       expected nil to match /absent|uninstalled/
       
     # ./spec/acceptance/init_spec.rb:61:in `block (3 levels) in <top (required)>'

Finished in 2 minutes 23.9 seconds (files took 2.6 seconds to load)
7 examples, 2 failures

Failed examples:

rspec ./spec/acceptance/init_spec.rb:51 # package task uninstall uninstalls pry
rspec ./spec/acceptance/init_spec.rb:58 # package task uninstall status


pid 9920 exit 1
Failed on 22 nodes: ["oi3hfwh7h5112ow.delivery.puppetlabs.net, win-2016-x86_64", "d6jz6xd8ebqmjrb.delivery.puppetlabs.net, centos-5-x86_64", "t4dnlu83ewxjfvq.delivery.puppetlabs.net, scientific-6-x86_64", "t90hl3kldb4czgn.delivery.puppetlabs.net, centos-6-x86_64", "td2q65ttlb0yf7s.delivery.puppetlabs.net, oracle-6-x86_64", "qpfnl9j08g182ib.delivery.puppetlabs.net, redhat-6-x86_64", "nnr93acod5n4yt3.delivery.puppetlabs.net, redhat-8-x86_64", "r4fnjq7121k09fo.delivery.puppetlabs.net, ubuntu-1404-x86_64", "m3tu7qgsyvd3hcm.delivery.puppetlabs.net, ubuntu-1604-x86_64", "qi8zm63mnycs0g7.delivery.puppetlabs.net, debian-9-x86_64", "s333q9vcgiz8lp1.delivery.puppetlabs.net, scientific-7-x86_64", "ttui2190o8m5ly4.delivery.puppetlabs.net, centos-7-x86_64", "p3qi2r3a0g62bdt.delivery.puppetlabs.net, oracle-7-x86_64", "lz0iuji3pqaeoee.delivery.puppetlabs.net, debian-8-x86_64", "rx3149u4iyf0u0p.delivery.puppetlabs.net, ubuntu-1804-x86_64", "pdxpxz25nucf6w4.delivery.puppetlabs.net, oracle-5-x86_64", "ys4pphlb2q03pwq.delivery.puppetlabs.net, redhat-7-x86_64", "uo2unuk9y4yq86q.delivery.puppetlabs.net, redhat-5-x86_64", "tyfr3rad8lyuqtj.delivery.puppetlabs.net, win-2019-x86_64", "h1qseyc8avpmh83.delivery.puppetlabs.net, win-2012r2-x86_64", "eidifqxg36jqesy.delivery.puppetlabs.net, win-2008r2-x86_64", "skgrxrcu3s0c06o.delivery.puppetlabs.net, win-10-pro-x86_64"]

@sheenaajay
Copy link
Contributor Author

@donoghuc Thanks for letting us know about the failures. With the help of @tp figured out litmus gem released yesterday cause the new failures for the package module. It is a minor fix. We will fix it and get a new release today which will fix the failures on the module.

@sheenaajay
Copy link
Contributor Author

@donoghuc litmus gem is released and the test case is updated to replace the 'stdout' since 'status' values need to be fetched now from the 'result' hash.
Going forward we will be using Travis to run acceptance tests against any PR.
Also, we will be using pipelines to do the testing against module release.

@sheenaajay sheenaajay deleted the litmuspackage branch September 18, 2019 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants