Closed bastelfreak closed 5 years ago
and master:
bastelfreak@bastelfreak-ws ~/modulesync_config/modules/puppet-r10k $ git checkout master
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.
bastelfreak@bastelfreak-ws ~/modulesync_config/modules/puppet-r10k $ bundle exec rake beaker:centos-72-x64
/usr/bin/ruby -I/home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/lib:/home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-support-3.5.0/lib /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/exe/rspec spec/acceptance --color
/home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-rspec-6.0.0/lib/beaker-rspec/helpers/serverspec.rb:43: warning: already initialized constant Module::VALID_OPTIONS_KEYS
/home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/specinfra-2.66.0/lib/specinfra/configuration.rb:4: warning: previous definition of VALID_OPTIONS_KEYS was here
Beaker::Hypervisor, found some vagrant boxes to create
==> centos-72-x64: Destroying VM and associated drives...
Bringing machine 'centos-72-x64' up with 'virtualbox' provider...
==> centos-72-x64: Importing base box 'puppetlabs/centos-7.2-64-nocm'...
Progress: 10%Progress: 20%Progress: 30%Progress: 50%Progress: 70%Progress: 90%==> centos-72-x64: Matching MAC address for NAT networking...
==> centos-72-x64: Checking if box 'puppetlabs/centos-7.2-64-nocm' is up to date...
==> centos-72-x64: Setting the name of the VM: centos-72-x64yml_centos-72-x64_1480546469216_33130
==> centos-72-x64: Clearing any previously set network interfaces...
==> centos-72-x64: Preparing network interfaces based on configuration...
centos-72-x64: Adapter 1: nat
centos-72-x64: Adapter 2: hostonly
==> centos-72-x64: Forwarding ports...
centos-72-x64: 22 (guest) => 2222 (host) (adapter 1)
==> centos-72-x64: Running 'pre-boot' VM customizations...
==> centos-72-x64: Booting VM...
==> centos-72-x64: Waiting for machine to boot. This may take a few minutes...
centos-72-x64: SSH address: 127.0.0.1:2222
centos-72-x64: SSH username: vagrant
centos-72-x64: SSH auth method: private key
centos-72-x64: Warning: Remote connection disconnect. Retrying...
==> centos-72-x64: Machine booted and ready!
==> centos-72-x64: Checking for guest additions in VM...
centos-72-x64: The guest additions on this VM do not match the installed version of
centos-72-x64: VirtualBox! In most cases this is fine, but in rare cases it can
centos-72-x64: prevent things such as shared folders from working properly. If you see
centos-72-x64: shared folder errors, please make sure the guest additions within the
centos-72-x64: virtual machine match the version of VirtualBox you have installed on
centos-72-x64: your host and reload your VM.
centos-72-x64:
centos-72-x64: Guest Additions Version: 5.0.16
centos-72-x64: VirtualBox Version: 5.1
==> centos-72-x64: Setting hostname...
==> centos-72-x64: Configuring and enabling network interfaces...
==> centos-72-x64: Mounting shared folders...
centos-72-x64: /vagrant => /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vagrant/beaker_vagrant_files/centos-72-x64.yml
Disabling updates.puppetlabs.com by modifying hosts file to resolve updates to 127.0.0.1 on centos-72-x64
localhost $ scp /home/bastelfreak/modulesync_config/modules/puppet-r10k centos-72-x64:/etc/puppet/modules {:ignore => [".bundle", ".git", ".idea", ".vagrant", ".vendor", "vendor", "acceptance", "bundle", "spec", "tests", "log", ".svn", "junit", "pkg", "example", ".", ".."]}
System Ruby with No SSL, Not protected, No mcollective
default parameters
localhost $ scp /tmp/beaker20161130-20110-fukzsq centos-72-x64:/tmp/apply_manifest.pp.r6RSBu {:ignore => }
applies with no errors
localhost $ scp /tmp/beaker20161130-20110-bvnh23 centos-72-x64:/tmp/apply_manifest.pp.5yMcO8 {:ignore => }
is idempotent
supports style Github payloads via module end point
supports style Bitbucket payloads via module end point
supports style Github payloads via payload end point (FAILED - 1)
supports style Gitorious payloads via payload end point (FAILED - 2)
supports style BitBucket payloads via payload end point (FAILED - 3)
Service "webhook"
should be enabled
should be running
Prefix Enabled,System Ruby with No SSL, Not protected, No mcollective
default parameters
localhost $ scp /tmp/beaker20161130-20110-pdehmo centos-72-x64:/tmp/apply_manifest.pp.HujIzm {:ignore => }
applies with no errors
localhost $ scp /tmp/beaker20161130-20110-muvhnl centos-72-x64:/tmp/apply_manifest.pp.nvOE5T {:ignore => }
is idempotent
calculates webteam prefix Github payloads via payload end point (FAILED - 4)
calculates secteam prefix with Github payloads via payload end point (FAILED - 5)
calculates custom prefix with Github payloads via payload end point (FAILED - 6)
calculates no prefix Github payloads via payload end point (FAILED - 7)
Service "webhook"
should be enabled
should be running
GitHub Secret Enabled, System Ruby with No SSL, Not protected, No mcollective
default parameters
localhost $ scp /tmp/beaker20161130-20110-q4k22g centos-72-x64:/tmp/apply_manifest.pp.1dZNQp {:ignore => }
applies with no errors
localhost $ scp /tmp/beaker20161130-20110-13555i5 centos-72-x64:/tmp/apply_manifest.pp.SjGX2t {:ignore => }
is idempotent
Digest::Digest is deprecated; use Digest
supports style Github payloads via module end point with signature in header
Digest::Digest is deprecated; use Digest
/home/bastelfreak/modulesync_config/modules/puppet-r10k/spec/acceptance/signature_webhook_spec.rb:43: warning: already initialized constant HMAC_DIGEST
/home/bastelfreak/modulesync_config/modules/puppet-r10k/spec/acceptance/signature_webhook_spec.rb:34: warning: previous definition of HMAC_DIGEST was here
supports style Github payloads via payload end point with signature in header (FAILED - 8)
Service "webhook"
should be enabled
should be running
Destroying vagrant boxes
==> centos-72-x64: Forcing shutdown of VM...
==> centos-72-x64: Destroying VM and associated drives...
Failures:
1) System Ruby with No SSL, Not protected, No mcollective default parameters supports style Github payloads via payload end point
Failure/Error: expect(r.stdout).to match(%r{^.*success.*$})
expected "{\"status\":\"fail\",\"message\":\"\\nWARN\\t -> The r10k configuration file at /etc/r10k.yaml is de.../httpserver.rb:94:in `run'\",\"/usr/share/ruby/webrick/server.rb:295:in `block in start_thread'\"]}" to match /^.*success.*$/
Diff:
@@ -1,2 +1,2 @@
-/^.*success.*$/
+"{\"status\":\"fail\",\"message\":\"\\nWARN\\t -> The r10k configuration file at /etc/r10k.yaml is deprecated.\\nWARN\\t -> Please move your r10k configuration to /etc/puppetlabs/r10k/r10k.yaml.\\nERROR\\t -> Unable to determine current branches for Git source 'puppet' (/etc/puppet/environments)\\nOriginal exception:\\nPermission denied - /var/cache/r10k\\n\",\"trace\":[\"/usr/local/bin/webhook:189:in `run_command'\",\"/usr/local/bin/webhook:228:in `deploy'\",\"/usr/local/bin/webhook:155:in `block in <class:Server>'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1611:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1611:in `block in compile!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in `[]'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in `block (3 levels) in route!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:994:in `route_eval'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in `block (2 levels) in route!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1015:in `block in process_route'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1013:in `catch'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1013:in `process_route'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:973:in `block in route!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:972:in `each'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:972:in `route!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1085:in `block in dispatch!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `block in invoke'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `catch'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `invoke'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1082:in `dispatch!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:907:in `block in call!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `block in invoke'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `catch'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `invoke'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:907:in `call!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:895:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/xss_header.rb:18:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/path_traversal.rb:16:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/json_csrf.rb:18:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/frame_options.rb:31:in `call'\",\"/usr/local/share/gems/gems/rack-1.6.5/lib/rack/nulllogger.rb:9:in `call'\",\"/usr/local/share/gems/gems/rack-1.6.5/lib/rack/head.rb:13:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/show_exceptions.rb:25:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:182:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:2013:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1487:in `block in call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1787:in `synchronize'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1487:in `call'\",\"/usr/local/share/gems/gems/rack-1.6.5/lib/rack/handler/webrick.rb:88:in `service'\",\"/usr/share/ruby/webrick/httpserver.rb:138:in `service'\",\"/usr/share/ruby/webrick/httpserver.rb:94:in `run'\",\"/usr/share/ruby/webrick/server.rb:295:in `block in start_thread'\"]}"
# ./spec/acceptance/basic_webhook_spec.rb:46:in `block (4 levels) in <top (required)>'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:93:in `block in on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:125:in `shell'
# ./spec/acceptance/basic_webhook_spec.rb:45:in `block (3 levels) in <top (required)>'
2) System Ruby with No SSL, Not protected, No mcollective default parameters supports style Gitorious payloads via payload end point
Failure/Error: expect(r.stdout).to match(%r{^.*success.*$})
expected "{\"status\":\"fail\",\"message\":\"\\nWARN\\t -> The r10k configuration file at /etc/r10k.yaml is de.../httpserver.rb:94:in `run'\",\"/usr/share/ruby/webrick/server.rb:295:in `block in start_thread'\"]}" to match /^.*success.*$/
Diff:
@@ -1,2 +1,2 @@
-/^.*success.*$/
+"{\"status\":\"fail\",\"message\":\"\\nWARN\\t -> The r10k configuration file at /etc/r10k.yaml is deprecated.\\nWARN\\t -> Please move your r10k configuration to /etc/puppetlabs/r10k/r10k.yaml.\\nERROR\\t -> Unable to determine current branches for Git source 'puppet' (/etc/puppet/environments)\\nOriginal exception:\\nPermission denied - /var/cache/r10k\\n\",\"trace\":[\"/usr/local/bin/webhook:189:in `run_command'\",\"/usr/local/bin/webhook:228:in `deploy'\",\"/usr/local/bin/webhook:155:in `block in <class:Server>'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1611:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1611:in `block in compile!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in `[]'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in `block (3 levels) in route!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:994:in `route_eval'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in `block (2 levels) in route!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1015:in `block in process_route'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1013:in `catch'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1013:in `process_route'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:973:in `block in route!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:972:in `each'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:972:in `route!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1085:in `block in dispatch!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `block in invoke'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `catch'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `invoke'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1082:in `dispatch!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:907:in `block in call!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `block in invoke'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `catch'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `invoke'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:907:in `call!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:895:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/xss_header.rb:18:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/path_traversal.rb:16:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/json_csrf.rb:18:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/frame_options.rb:31:in `call'\",\"/usr/local/share/gems/gems/rack-1.6.5/lib/rack/nulllogger.rb:9:in `call'\",\"/usr/local/share/gems/gems/rack-1.6.5/lib/rack/head.rb:13:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/show_exceptions.rb:25:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:182:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:2013:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1487:in `block in call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1787:in `synchronize'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1487:in `call'\",\"/usr/local/share/gems/gems/rack-1.6.5/lib/rack/handler/webrick.rb:88:in `service'\",\"/usr/share/ruby/webrick/httpserver.rb:138:in `service'\",\"/usr/share/ruby/webrick/httpserver.rb:94:in `run'\",\"/usr/share/ruby/webrick/server.rb:295:in `block in start_thread'\"]}"
# ./spec/acceptance/basic_webhook_spec.rb:52:in `block (4 levels) in <top (required)>'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:93:in `block in on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:125:in `shell'
# ./spec/acceptance/basic_webhook_spec.rb:51:in `block (3 levels) in <top (required)>'
3) System Ruby with No SSL, Not protected, No mcollective default parameters supports style BitBucket payloads via payload end point
Failure/Error: expect(r.stdout).to match(%r{^.*success.*$})
expected "{\"status\":\"fail\",\"message\":\"\\nWARN\\t -> The r10k configuration file at /etc/r10k.yaml is de.../httpserver.rb:94:in `run'\",\"/usr/share/ruby/webrick/server.rb:295:in `block in start_thread'\"]}" to match /^.*success.*$/
Diff:
@@ -1,2 +1,2 @@
-/^.*success.*$/
+"{\"status\":\"fail\",\"message\":\"\\nWARN\\t -> The r10k configuration file at /etc/r10k.yaml is deprecated.\\nWARN\\t -> Please move your r10k configuration to /etc/puppetlabs/r10k/r10k.yaml.\\nERROR\\t -> Unable to determine current branches for Git source 'puppet' (/etc/puppet/environments)\\nOriginal exception:\\nPermission denied - /var/cache/r10k\\n\",\"trace\":[\"/usr/local/bin/webhook:189:in `run_command'\",\"/usr/local/bin/webhook:228:in `deploy'\",\"/usr/local/bin/webhook:155:in `block in <class:Server>'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1611:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1611:in `block in compile!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in `[]'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in `block (3 levels) in route!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:994:in `route_eval'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in `block (2 levels) in route!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1015:in `block in process_route'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1013:in `catch'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1013:in `process_route'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:973:in `block in route!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:972:in `each'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:972:in `route!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1085:in `block in dispatch!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `block in invoke'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `catch'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `invoke'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1082:in `dispatch!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:907:in `block in call!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `block in invoke'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `catch'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `invoke'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:907:in `call!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:895:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/xss_header.rb:18:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/path_traversal.rb:16:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/json_csrf.rb:18:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/frame_options.rb:31:in `call'\",\"/usr/local/share/gems/gems/rack-1.6.5/lib/rack/nulllogger.rb:9:in `call'\",\"/usr/local/share/gems/gems/rack-1.6.5/lib/rack/head.rb:13:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/show_exceptions.rb:25:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:182:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:2013:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1487:in `block in call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1787:in `synchronize'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1487:in `call'\",\"/usr/local/share/gems/gems/rack-1.6.5/lib/rack/handler/webrick.rb:88:in `service'\",\"/usr/share/ruby/webrick/httpserver.rb:138:in `service'\",\"/usr/share/ruby/webrick/httpserver.rb:94:in `run'\",\"/usr/share/ruby/webrick/server.rb:295:in `block in start_thread'\"]}"
# ./spec/acceptance/basic_webhook_spec.rb:58:in `block (4 levels) in <top (required)>'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:93:in `block in on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:125:in `shell'
# ./spec/acceptance/basic_webhook_spec.rb:57:in `block (3 levels) in <top (required)>'
4) Prefix Enabled,System Ruby with No SSL, Not protected, No mcollective default parameters calculates webteam prefix Github payloads via payload end point
Failure/Error: expect(r.stdout).to match(%r{^.*webteam_production.*$})
expected "{\"status\":\"fail\",\"message\":\"\\nWARN\\t -> The r10k configuration file at /etc/r10k.yaml is de.../httpserver.rb:94:in `run'\",\"/usr/share/ruby/webrick/server.rb:295:in `block in start_thread'\"]}" to match /^.*webteam_production.*$/
Diff:
@@ -1,2 +1,2 @@
-/^.*webteam_production.*$/
+"{\"status\":\"fail\",\"message\":\"\\nWARN\\t -> The r10k configuration file at /etc/r10k.yaml is deprecated.\\nWARN\\t -> Please move your r10k configuration to /etc/puppetlabs/r10k/r10k.yaml.\\nERROR\\t -> Unable to determine current branches for Git source 'customprefix' (${::settings::confdir}/environments)\\nOriginal exception:\\nPermission denied - /var/cache/r10k\\n\",\"trace\":[\"/usr/local/bin/webhook:189:in `run_command'\",\"/usr/local/bin/webhook:228:in `deploy'\",\"/usr/local/bin/webhook:157:in `block in <class:Server>'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1611:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1611:in `block in compile!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in `[]'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in `block (3 levels) in route!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:994:in `route_eval'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in `block (2 levels) in route!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1015:in `block in process_route'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1013:in `catch'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1013:in `process_route'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:973:in `block in route!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:972:in `each'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:972:in `route!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1085:in `block in dispatch!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `block in invoke'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `catch'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `invoke'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1082:in `dispatch!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:907:in `block in call!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `block in invoke'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `catch'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `invoke'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:907:in `call!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:895:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/xss_header.rb:18:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/path_traversal.rb:16:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/json_csrf.rb:18:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/frame_options.rb:31:in `call'\",\"/usr/local/share/gems/gems/rack-1.6.5/lib/rack/nulllogger.rb:9:in `call'\",\"/usr/local/share/gems/gems/rack-1.6.5/lib/rack/head.rb:13:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/show_exceptions.rb:25:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:182:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:2013:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1487:in `block in call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1787:in `synchronize'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1487:in `call'\",\"/usr/local/share/gems/gems/rack-1.6.5/lib/rack/handler/webrick.rb:88:in `service'\",\"/usr/share/ruby/webrick/httpserver.rb:138:in `service'\",\"/usr/share/ruby/webrick/httpserver.rb:94:in `run'\",\"/usr/share/ruby/webrick/server.rb:295:in `block in start_thread'\"]}"
# ./spec/acceptance/prefix_webhook_spec.rb:63:in `block (4 levels) in <top (required)>'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:93:in `block in on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:125:in `shell'
# ./spec/acceptance/prefix_webhook_spec.rb:62:in `block (3 levels) in <top (required)>'
5) Prefix Enabled,System Ruby with No SSL, Not protected, No mcollective default parameters calculates secteam prefix with Github payloads via payload end point
Failure/Error: expect(r.stdout).to match(%r{^.*secteam_production.*$})
expected "{\"status\":\"fail\",\"message\":\"\\nWARN\\t -> The r10k configuration file at /etc/r10k.yaml is de.../httpserver.rb:94:in `run'\",\"/usr/share/ruby/webrick/server.rb:295:in `block in start_thread'\"]}" to match /^.*secteam_production.*$/
Diff:
@@ -1,2 +1,2 @@
-/^.*secteam_production.*$/
+"{\"status\":\"fail\",\"message\":\"\\nWARN\\t -> The r10k configuration file at /etc/r10k.yaml is deprecated.\\nWARN\\t -> Please move your r10k configuration to /etc/puppetlabs/r10k/r10k.yaml.\\nERROR\\t -> Unable to determine current branches for Git source 'customprefix' (${::settings::confdir}/environments)\\nOriginal exception:\\nPermission denied - /var/cache/r10k\\n\",\"trace\":[\"/usr/local/bin/webhook:189:in `run_command'\",\"/usr/local/bin/webhook:228:in `deploy'\",\"/usr/local/bin/webhook:157:in `block in <class:Server>'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1611:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1611:in `block in compile!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in `[]'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in `block (3 levels) in route!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:994:in `route_eval'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in `block (2 levels) in route!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1015:in `block in process_route'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1013:in `catch'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1013:in `process_route'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:973:in `block in route!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:972:in `each'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:972:in `route!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1085:in `block in dispatch!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `block in invoke'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `catch'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `invoke'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1082:in `dispatch!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:907:in `block in call!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `block in invoke'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `catch'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `invoke'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:907:in `call!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:895:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/xss_header.rb:18:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/path_traversal.rb:16:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/json_csrf.rb:18:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/frame_options.rb:31:in `call'\",\"/usr/local/share/gems/gems/rack-1.6.5/lib/rack/nulllogger.rb:9:in `call'\",\"/usr/local/share/gems/gems/rack-1.6.5/lib/rack/head.rb:13:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/show_exceptions.rb:25:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:182:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:2013:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1487:in `block in call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1787:in `synchronize'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1487:in `call'\",\"/usr/local/share/gems/gems/rack-1.6.5/lib/rack/handler/webrick.rb:88:in `service'\",\"/usr/share/ruby/webrick/httpserver.rb:138:in `service'\",\"/usr/share/ruby/webrick/httpserver.rb:94:in `run'\",\"/usr/share/ruby/webrick/server.rb:295:in `block in start_thread'\"]}"
# ./spec/acceptance/prefix_webhook_spec.rb:69:in `block (4 levels) in <top (required)>'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:93:in `block in on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:125:in `shell'
# ./spec/acceptance/prefix_webhook_spec.rb:68:in `block (3 levels) in <top (required)>'
6) Prefix Enabled,System Ruby with No SSL, Not protected, No mcollective default parameters calculates custom prefix with Github payloads via payload end point
Failure/Error: expect(r.stdout).to match(%r{^.*custom_production.*$})
expected "{\"status\":\"fail\",\"message\":\"\\nWARN\\t -> The r10k configuration file at /etc/r10k.yaml is de.../httpserver.rb:94:in `run'\",\"/usr/share/ruby/webrick/server.rb:295:in `block in start_thread'\"]}" to match /^.*custom_production.*$/
Diff:
@@ -1,2 +1,2 @@
-/^.*custom_production.*$/
+"{\"status\":\"fail\",\"message\":\"\\nWARN\\t -> The r10k configuration file at /etc/r10k.yaml is deprecated.\\nWARN\\t -> Please move your r10k configuration to /etc/puppetlabs/r10k/r10k.yaml.\\nERROR\\t -> Unable to determine current branches for Git source 'customprefix' (${::settings::confdir}/environments)\\nOriginal exception:\\nPermission denied - /var/cache/r10k\\n\",\"trace\":[\"/usr/local/bin/webhook:189:in `run_command'\",\"/usr/local/bin/webhook:228:in `deploy'\",\"/usr/local/bin/webhook:157:in `block in <class:Server>'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1611:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1611:in `block in compile!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in `[]'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in `block (3 levels) in route!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:994:in `route_eval'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in `block (2 levels) in route!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1015:in `block in process_route'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1013:in `catch'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1013:in `process_route'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:973:in `block in route!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:972:in `each'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:972:in `route!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1085:in `block in dispatch!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `block in invoke'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `catch'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `invoke'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1082:in `dispatch!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:907:in `block in call!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `block in invoke'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `catch'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `invoke'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:907:in `call!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:895:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/xss_header.rb:18:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/path_traversal.rb:16:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/json_csrf.rb:18:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/frame_options.rb:31:in `call'\",\"/usr/local/share/gems/gems/rack-1.6.5/lib/rack/nulllogger.rb:9:in `call'\",\"/usr/local/share/gems/gems/rack-1.6.5/lib/rack/head.rb:13:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/show_exceptions.rb:25:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:182:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:2013:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1487:in `block in call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1787:in `synchronize'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1487:in `call'\",\"/usr/local/share/gems/gems/rack-1.6.5/lib/rack/handler/webrick.rb:88:in `service'\",\"/usr/share/ruby/webrick/httpserver.rb:138:in `service'\",\"/usr/share/ruby/webrick/httpserver.rb:94:in `run'\",\"/usr/share/ruby/webrick/server.rb:295:in `block in start_thread'\"]}"
# ./spec/acceptance/prefix_webhook_spec.rb:75:in `block (4 levels) in <top (required)>'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:93:in `block in on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:125:in `shell'
# ./spec/acceptance/prefix_webhook_spec.rb:74:in `block (3 levels) in <top (required)>'
7) Prefix Enabled,System Ruby with No SSL, Not protected, No mcollective default parameters calculates no prefix Github payloads via payload end point
Failure/Error: expect(r.stdout).to match(%r{^.* production.*$})
expected "{\"status\":\"fail\",\"message\":\"\\nWARN\\t -> The r10k configuration file at /etc/r10k.yaml is de.../httpserver.rb:94:in `run'\",\"/usr/share/ruby/webrick/server.rb:295:in `block in start_thread'\"]}" to match /^.* production.*$/
Diff:
@@ -1,2 +1,2 @@
-/^.* production.*$/
+"{\"status\":\"fail\",\"message\":\"\\nWARN\\t -> The r10k configuration file at /etc/r10k.yaml is deprecated.\\nWARN\\t -> Please move your r10k configuration to /etc/puppetlabs/r10k/r10k.yaml.\\nERROR\\t -> Unable to determine current branches for Git source 'customprefix' (${::settings::confdir}/environments)\\nOriginal exception:\\nPermission denied - /var/cache/r10k\\n\",\"trace\":[\"/usr/local/bin/webhook:189:in `run_command'\",\"/usr/local/bin/webhook:228:in `deploy'\",\"/usr/local/bin/webhook:155:in `block in <class:Server>'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1611:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1611:in `block in compile!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in `[]'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in `block (3 levels) in route!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:994:in `route_eval'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in `block (2 levels) in route!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1015:in `block in process_route'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1013:in `catch'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1013:in `process_route'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:973:in `block in route!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:972:in `each'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:972:in `route!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1085:in `block in dispatch!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `block in invoke'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `catch'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `invoke'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1082:in `dispatch!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:907:in `block in call!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `block in invoke'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `catch'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `invoke'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:907:in `call!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:895:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/xss_header.rb:18:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/path_traversal.rb:16:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/json_csrf.rb:18:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/frame_options.rb:31:in `call'\",\"/usr/local/share/gems/gems/rack-1.6.5/lib/rack/nulllogger.rb:9:in `call'\",\"/usr/local/share/gems/gems/rack-1.6.5/lib/rack/head.rb:13:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/show_exceptions.rb:25:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:182:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:2013:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1487:in `block in call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1787:in `synchronize'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1487:in `call'\",\"/usr/local/share/gems/gems/rack-1.6.5/lib/rack/handler/webrick.rb:88:in `service'\",\"/usr/share/ruby/webrick/httpserver.rb:138:in `service'\",\"/usr/share/ruby/webrick/httpserver.rb:94:in `run'\",\"/usr/share/ruby/webrick/server.rb:295:in `block in start_thread'\"]}"
# ./spec/acceptance/prefix_webhook_spec.rb:82:in `block (4 levels) in <top (required)>'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:93:in `block in on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:125:in `shell'
# ./spec/acceptance/prefix_webhook_spec.rb:81:in `block (3 levels) in <top (required)>'
8) GitHub Secret Enabled, System Ruby with No SSL, Not protected, No mcollective default parameters supports style Github payloads via payload end point with signature in header
Failure/Error: expect(r.stdout).to match(%r{^.*success.*$})
expected "{\"status\":\"fail\",\"message\":\"\\nWARN\\t -> The r10k configuration file at /etc/r10k.yaml is de.../httpserver.rb:94:in `run'\",\"/usr/share/ruby/webrick/server.rb:295:in `block in start_thread'\"]}" to match /^.*success.*$/
Diff:
@@ -1,2 +1,2 @@
-/^.*success.*$/
+"{\"status\":\"fail\",\"message\":\"\\nWARN\\t -> The r10k configuration file at /etc/r10k.yaml is deprecated.\\nWARN\\t -> Please move your r10k configuration to /etc/puppetlabs/r10k/r10k.yaml.\\nERROR\\t -> Unable to determine current branches for Git source 'puppet' (/etc/puppet/environments)\\nOriginal exception:\\nPermission denied - /var/cache/r10k\\n\",\"trace\":[\"/usr/local/bin/webhook:189:in `run_command'\",\"/usr/local/bin/webhook:228:in `deploy'\",\"/usr/local/bin/webhook:155:in `block in <class:Server>'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1611:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1611:in `block in compile!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in `[]'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in `block (3 levels) in route!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:994:in `route_eval'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:975:in `block (2 levels) in route!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1015:in `block in process_route'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1013:in `catch'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1013:in `process_route'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:973:in `block in route!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:972:in `each'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:972:in `route!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1085:in `block in dispatch!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `block in invoke'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `catch'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `invoke'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1082:in `dispatch!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:907:in `block in call!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `block in invoke'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `catch'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1067:in `invoke'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:907:in `call!'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:895:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/xss_header.rb:18:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/path_traversal.rb:16:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/json_csrf.rb:18:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'\",\"/usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/frame_options.rb:31:in `call'\",\"/usr/local/share/gems/gems/rack-1.6.5/lib/rack/nulllogger.rb:9:in `call'\",\"/usr/local/share/gems/gems/rack-1.6.5/lib/rack/head.rb:13:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/show_exceptions.rb:25:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:182:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:2013:in `call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1487:in `block in call'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1787:in `synchronize'\",\"/usr/local/share/gems/gems/sinatra-1.4.7/lib/sinatra/base.rb:1487:in `call'\",\"/usr/local/share/gems/gems/rack-1.6.5/lib/rack/handler/webrick.rb:88:in `service'\",\"/usr/share/ruby/webrick/httpserver.rb:138:in `service'\",\"/usr/share/ruby/webrick/httpserver.rb:94:in `run'\",\"/usr/share/ruby/webrick/server.rb:295:in `block in start_thread'\"]}"
# ./spec/acceptance/signature_webhook_spec.rb:47:in `block (4 levels) in <top (required)>'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:93:in `block in on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:125:in `shell'
# ./spec/acceptance/signature_webhook_spec.rb:46:in `block (3 levels) in <top (required)>'
Finished in 2 minutes 2 seconds (files took 59.31 seconds to load)
23 examples, 8 failures
Failed examples:
rspec ./spec/acceptance/basic_webhook_spec.rb:44 # System Ruby with No SSL, Not protected, No mcollective default parameters supports style Github payloads via payload end point
rspec ./spec/acceptance/basic_webhook_spec.rb:50 # System Ruby with No SSL, Not protected, No mcollective default parameters supports style Gitorious payloads via payload end point
rspec ./spec/acceptance/basic_webhook_spec.rb:56 # System Ruby with No SSL, Not protected, No mcollective default parameters supports style BitBucket payloads via payload end point
rspec ./spec/acceptance/prefix_webhook_spec.rb:61 # Prefix Enabled,System Ruby with No SSL, Not protected, No mcollective default parameters calculates webteam prefix Github payloads via payload end point
rspec ./spec/acceptance/prefix_webhook_spec.rb:67 # Prefix Enabled,System Ruby with No SSL, Not protected, No mcollective default parameters calculates secteam prefix with Github payloads via payload end point
rspec ./spec/acceptance/prefix_webhook_spec.rb:73 # Prefix Enabled,System Ruby with No SSL, Not protected, No mcollective default parameters calculates custom prefix with Github payloads via payload end point
rspec ./spec/acceptance/prefix_webhook_spec.rb:80 # Prefix Enabled,System Ruby with No SSL, Not protected, No mcollective default parameters calculates no prefix Github payloads via payload end point
rspec ./spec/acceptance/signature_webhook_spec.rb:42 # GitHub Secret Enabled, System Ruby with No SSL, Not protected, No mcollective default parameters supports style Github payloads via payload end point with signature in header
/usr/bin/ruby -I/home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/lib:/home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-support-3.5.0/lib /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/exe/rspec spec/acceptance --color failed
bastelfreak@bastelfreak-ws ~/modulesync_config/modules/puppet-r10k $ bundle exec rake beaker:debian-82-x64
/usr/bin/ruby -I/home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/lib:/home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-support-3.5.0/lib /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/exe/rspec spec/acceptance --color
/home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-rspec-6.0.0/lib/beaker-rspec/helpers/serverspec.rb:43: warning: already initialized constant Module::VALID_OPTIONS_KEYS
/home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/specinfra-2.66.0/lib/specinfra/configuration.rb:4: warning: previous definition of VALID_OPTIONS_KEYS was here
Beaker::Hypervisor, found some vagrant boxes to create
==> debian-82-x64: Destroying VM and associated drives...
Bringing machine 'debian-82-x64' up with 'virtualbox' provider...
==> debian-82-x64: Importing base box 'puppetlabs/debian-8.2-64-nocm'...
Progress: 10%Progress: 20%Progress: 30%Progress: 40%Progress: 50%Progress: 70%Progress: 80%Progress: 90%==> debian-82-x64: Matching MAC address for NAT networking...
==> debian-82-x64: Checking if box 'puppetlabs/debian-8.2-64-nocm' is up to date...
==> debian-82-x64: Setting the name of the VM: debian-82-x64yml_debian-82-x64_1480546675058_19025
==> debian-82-x64: Clearing any previously set network interfaces...
==> debian-82-x64: Preparing network interfaces based on configuration...
debian-82-x64: Adapter 1: nat
debian-82-x64: Adapter 2: hostonly
==> debian-82-x64: Forwarding ports...
debian-82-x64: 22 (guest) => 2222 (host) (adapter 1)
==> debian-82-x64: Running 'pre-boot' VM customizations...
==> debian-82-x64: Booting VM...
==> debian-82-x64: Waiting for machine to boot. This may take a few minutes...
debian-82-x64: SSH address: 127.0.0.1:2222
debian-82-x64: SSH username: vagrant
debian-82-x64: SSH auth method: private key
==> debian-82-x64: Machine booted and ready!
==> debian-82-x64: Checking for guest additions in VM...
debian-82-x64: The guest additions on this VM do not match the installed version of
debian-82-x64: VirtualBox! In most cases this is fine, but in rare cases it can
debian-82-x64: prevent things such as shared folders from working properly. If you see
debian-82-x64: shared folder errors, please make sure the guest additions within the
debian-82-x64: virtual machine match the version of VirtualBox you have installed on
debian-82-x64: your host and reload your VM.
debian-82-x64:
debian-82-x64: Guest Additions Version: 5.0.16
debian-82-x64: VirtualBox Version: 5.1
==> debian-82-x64: Setting hostname...
==> debian-82-x64: Configuring and enabling network interfaces...
==> debian-82-x64: Mounting shared folders...
debian-82-x64: /vagrant => /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vagrant/beaker_vagrant_files/debian-82-x64.yml
Disabling updates.puppetlabs.com by modifying hosts file to resolve updates to 127.0.0.1 on debian-82-x64
/home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/host.rb:366:in `exec': Host 'debian-82-x64' exited with 1 running: (Beaker::Host::CommandFailure)
puppet agent --configprint hiera_config
Last 10 lines of output were:
from /usr/lib/ruby/vendor_ruby/puppet/util.rb:14:in `<top (required)>'
from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/lib/ruby/vendor_ruby/puppet.rb:8:in `<top (required)>'
from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:12:in `<top (required)>'
from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/bin/puppet:7:in `<main>'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/host.rb:39:in `[]'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/install_utils/foss_utils.rb:300:in `block in install_puppet_on'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:115:in `block in run_block_on'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:114:in `map'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:114:in `run_block_on'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/install_utils/foss_utils.rb:265:in `install_puppet_on'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/install_utils/foss_utils.rb:207:in `install_puppet'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/spec/spec_helper_acceptance.rb:11:in `block in <top (required)>'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/spec/spec_helper_acceptance.rb:6:in `each'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/spec/spec_helper_acceptance.rb:6:in `<top (required)>'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/spec/acceptance/basic_webhook_spec.rb:1:in `require'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/spec/acceptance/basic_webhook_spec.rb:1:in `<top (required)>'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/lib/rspec/core/configuration.rb:1435:in `load'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/lib/rspec/core/configuration.rb:1435:in `block in load_spec_files'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/lib/rspec/core/configuration.rb:1433:in `each'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/lib/rspec/core/configuration.rb:1433:in `load_spec_files'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:100:in `setup'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:86:in `run'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:71:in `run'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:45:in `invoke'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/exe/rspec:4:in `<main>'
/usr/bin/ruby -I/home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/lib:/home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-support-3.5.0/lib /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/exe/rspec spec/acceptance --color failed
bastelfreak@bastelfreak-ws ~/modulesync_config/modules/puppet-r10k $ bundle exec rake beaker:ubuntu-server-1404-x64
/usr/bin/ruby -I/home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/lib:/home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-support-3.5.0/lib /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/exe/rspec spec/acceptance --color
/home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-rspec-6.0.0/lib/beaker-rspec/helpers/serverspec.rb:43: warning: already initialized constant Module::VALID_OPTIONS_KEYS
/home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/specinfra-2.66.0/lib/specinfra/configuration.rb:4: warning: previous definition of VALID_OPTIONS_KEYS was here
Beaker::Hypervisor, found some vagrant boxes to create
==> ubuntu-server-1404-x64: Destroying VM and associated drives...
Bringing machine 'ubuntu-server-1404-x64' up with 'virtualbox' provider...
==> ubuntu-server-1404-x64: Importing base box 'puppetlabs/ubuntu-14.04-64-nocm'...
Progress: 10%Progress: 20%Progress: 30%Progress: 40%Progress: 50%Progress: 60%Progress: 70%Progress: 90%==> ubuntu-server-1404-x64: Matching MAC address for NAT networking...
==> ubuntu-server-1404-x64: Checking if box 'puppetlabs/ubuntu-14.04-64-nocm' is up to date...
==> ubuntu-server-1404-x64: Setting the name of the VM: ubuntu-server-1404-x64yml_ubuntu-server-1404-x64_1480546752714_33362
==> ubuntu-server-1404-x64: Fixed port collision for 22 => 2222. Now on port 2200.
==> ubuntu-server-1404-x64: Clearing any previously set network interfaces...
==> ubuntu-server-1404-x64: Preparing network interfaces based on configuration...
ubuntu-server-1404-x64: Adapter 1: nat
ubuntu-server-1404-x64: Adapter 2: hostonly
==> ubuntu-server-1404-x64: Forwarding ports...
ubuntu-server-1404-x64: 22 (guest) => 2200 (host) (adapter 1)
==> ubuntu-server-1404-x64: Running 'pre-boot' VM customizations...
==> ubuntu-server-1404-x64: Booting VM...
==> ubuntu-server-1404-x64: Waiting for machine to boot. This may take a few minutes...
ubuntu-server-1404-x64: SSH address: 127.0.0.1:2200
ubuntu-server-1404-x64: SSH username: vagrant
ubuntu-server-1404-x64: SSH auth method: private key
==> ubuntu-server-1404-x64: Machine booted and ready!
==> ubuntu-server-1404-x64: Checking for guest additions in VM...
ubuntu-server-1404-x64: The guest additions on this VM do not match the installed version of
ubuntu-server-1404-x64: VirtualBox! In most cases this is fine, but in rare cases it can
ubuntu-server-1404-x64: prevent things such as shared folders from working properly. If you see
ubuntu-server-1404-x64: shared folder errors, please make sure the guest additions within the
ubuntu-server-1404-x64: virtual machine match the version of VirtualBox you have installed on
ubuntu-server-1404-x64: your host and reload your VM.
ubuntu-server-1404-x64:
ubuntu-server-1404-x64: Guest Additions Version: 5.0.16
ubuntu-server-1404-x64: VirtualBox Version: 5.1
==> ubuntu-server-1404-x64: Setting hostname...
==> ubuntu-server-1404-x64: Configuring and enabling network interfaces...
==> ubuntu-server-1404-x64: Mounting shared folders...
ubuntu-server-1404-x64: /vagrant => /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vagrant/beaker_vagrant_files/ubuntu-server-1404-x64.yml
Disabling updates.puppetlabs.com by modifying hosts file to resolve updates to 127.0.0.1 on ubuntu-server-1404-x64
localhost $ scp /home/bastelfreak/modulesync_config/modules/puppet-r10k ubuntu-server-1404-x64:/etc/puppet/modules {:ignore => [".bundle", ".git", ".idea", ".vagrant", ".vendor", "vendor", "acceptance", "bundle", "spec", "tests", "log", ".svn", "junit", "pkg", "example", ".", ".."]}
System Ruby with No SSL, Not protected, No mcollective
default parameters
localhost $ scp /tmp/beaker20161201-24814-eaudyl ubuntu-server-1404-x64:/tmp/apply_manifest.pp.Omhctb {:ignore => }
applies with no errors (FAILED - 1)
localhost $ scp /tmp/beaker20161201-24814-a9pn29 ubuntu-server-1404-x64:/tmp/apply_manifest.pp.Vpxcc6 {:ignore => }
is idempotent (FAILED - 2)
supports style Github payloads via module end point (FAILED - 3)
supports style Bitbucket payloads via module end point (FAILED - 4)
supports style Github payloads via payload end point (FAILED - 5)
supports style Gitorious payloads via payload end point (FAILED - 6)
supports style BitBucket payloads via payload end point (FAILED - 7)
Service "webhook"
should be enabled (FAILED - 8)
should be running (FAILED - 9)
Prefix Enabled,System Ruby with No SSL, Not protected, No mcollective
default parameters
localhost $ scp /tmp/beaker20161201-24814-1corb33 ubuntu-server-1404-x64:/tmp/apply_manifest.pp.fCWRYx {:ignore => }
applies with no errors (FAILED - 10)
localhost $ scp /tmp/beaker20161201-24814-1hxq0jp ubuntu-server-1404-x64:/tmp/apply_manifest.pp.MVLC9O {:ignore => }
is idempotent (FAILED - 11)
calculates webteam prefix Github payloads via payload end point (FAILED - 12)
calculates secteam prefix with Github payloads via payload end point (FAILED - 13)
calculates custom prefix with Github payloads via payload end point (FAILED - 14)
calculates no prefix Github payloads via payload end point (FAILED - 15)
Service "webhook"
should be enabled (FAILED - 16)
should be running (FAILED - 17)
GitHub Secret Enabled, System Ruby with No SSL, Not protected, No mcollective
default parameters
localhost $ scp /tmp/beaker20161201-24814-5zid7k ubuntu-server-1404-x64:/tmp/apply_manifest.pp.0KyfM6 {:ignore => }
applies with no errors (FAILED - 18)
localhost $ scp /tmp/beaker20161201-24814-1qr7ew5 ubuntu-server-1404-x64:/tmp/apply_manifest.pp.Ade9yo {:ignore => }
is idempotent (FAILED - 19)
Digest::Digest is deprecated; use Digest
supports style Github payloads via module end point with signature in header (FAILED - 20)
Digest::Digest is deprecated; use Digest
/home/bastelfreak/modulesync_config/modules/puppet-r10k/spec/acceptance/signature_webhook_spec.rb:43: warning: already initialized constant HMAC_DIGEST
/home/bastelfreak/modulesync_config/modules/puppet-r10k/spec/acceptance/signature_webhook_spec.rb:34: warning: previous definition of HMAC_DIGEST was here
supports style Github payloads via payload end point with signature in header (FAILED - 21)
Service "webhook"
should be enabled (FAILED - 22)
should be running (FAILED - 23)
Destroying vagrant boxes
==> ubuntu-server-1404-x64: Forcing shutdown of VM...
==> ubuntu-server-1404-x64: Destroying VM and associated drives...
Failures:
1) System Ruby with No SSL, Not protected, No mcollective default parameters applies with no errors
Failure/Error: apply_manifest(pp, :catch_failures => true) # rubocop:disable Style/HashSyntax
Beaker::Host::CommandFailure:
Host 'ubuntu-server-1404-x64' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest.pp.Omhctb
Last 10 lines of output were:
Warning: /Stage[main]/R10k::Webhook/Service[webhook]: Skipping because of failed dependencies
Notice: /Stage[main]/R10k::Webhook/Service[webhook]: Triggered 'refresh' from 3 events
Notice: /Stage[main]/Git/Package[git]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Ruby::Dev/Package[pkg-config]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Ruby::Dev/Package[ruby-dev]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Ruby::Dev/Package[ri]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Ruby::Dev/Package[bundler]/ensure: created
Notice: /Stage[main]/Ruby::Dev/Package[rake]/ensure: ensure changed 'purged' to 'present'
Info: Creating state file /var/lib/puppet/state/state.yaml
Notice: Finished catalog run in 62.64 seconds
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/host.rb:366:in `exec'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:83:in `block in on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/puppet_helpers.rb:487:in `block in apply_manifest_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/puppet_helpers.rb:416:in `apply_manifest_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/puppet_helpers.rb:494:in `apply_manifest'
# ./spec/acceptance/basic_webhook_spec.rb:23:in `block (3 levels) in <top (required)>'
2) System Ruby with No SSL, Not protected, No mcollective default parameters is idempotent
Failure/Error: apply_manifest(pp, :catch_changes => true) # rubocop:disable Style/HashSyntax
Beaker::Host::CommandFailure:
Host 'ubuntu-server-1404-x64' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest.pp.Vpxcc6
Last 10 lines of output were:
Info: Loading facts
Notice: Compiled catalog for ubuntu-server-1404-x64.fritz.box in environment production in 0.42 seconds
Info: Applying configuration version '1480546939'
Error: Execution of '/usr/bin/gem install --no-rdoc --no-ri json' returned 1: ERROR: Error installing json:
json requires Ruby version ~> 2.0.
Error: /Stage[main]/R10k::Webhook::Package/Package[json]/ensure: change from absent to present failed: Execution of '/usr/bin/gem install --no-rdoc --no-ri json' returned 1: ERROR: Error installing json:
json requires Ruby version ~> 2.0.
Notice: /Stage[main]/R10k::Webhook/Service[webhook]: Dependency Package[json] has failures: true
Warning: /Stage[main]/R10k::Webhook/Service[webhook]: Skipping because of failed dependencies
Notice: Finished catalog run in 1.31 seconds
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/host.rb:366:in `exec'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:83:in `block in on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/puppet_helpers.rb:487:in `block in apply_manifest_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/puppet_helpers.rb:416:in `apply_manifest_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/puppet_helpers.rb:494:in `apply_manifest'
# ./spec/acceptance/basic_webhook_spec.rb:26:in `block (3 levels) in <top (required)>'
3) System Ruby with No SSL, Not protected, No mcollective default parameters supports style Github payloads via module end point
Failure/Error:
shell('/usr/bin/curl -d \'{ "repository": { "name": "puppetlabs-stdlib" } }\' -H "Accept: application/json" "http://localhost:8088/module" -k -q') do |r|
expect(r.stdout).to match(%r{^.*success.*$})
expect(r.exit_code).to eq(0)
end
Beaker::Host::CommandFailure:
Host 'ubuntu-server-1404-x64' exited with 7 running:
/usr/bin/curl -d '{ "repository": { "name": "puppetlabs-stdlib" } }' -H "Accept: application/json" "http://localhost:8088/module" -k -q
Last 10 lines of output were:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to localhost port 8088: Connection refused
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/host.rb:366:in `exec'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:83:in `block in on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:125:in `shell'
# ./spec/acceptance/basic_webhook_spec.rb:33:in `block (3 levels) in <top (required)>'
4) System Ruby with No SSL, Not protected, No mcollective default parameters supports style Bitbucket payloads via module end point
Failure/Error:
shell('/usr/bin/curl -X POST -d \'{ "repository": { "full_name": "puppetlabs/puppetlabs-stdlib", "name": "PuppetLabs : StdLib" } }\' "http://localhost:8088/module" -k -q') do |r|
expect(r.stdout).to match(%r{^.*success.*$})
expect(r.exit_code).to eq(0)
end
Beaker::Host::CommandFailure:
Host 'ubuntu-server-1404-x64' exited with 7 running:
/usr/bin/curl -X POST -d '{ "repository": { "full_name": "puppetlabs/puppetlabs-stdlib", "name": "PuppetLabs : StdLib" } }' "http://localhost:8088/module" -k -q
Last 10 lines of output were:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to localhost port 8088: Connection refused
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/host.rb:366:in `exec'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:83:in `block in on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:125:in `shell'
# ./spec/acceptance/basic_webhook_spec.rb:39:in `block (3 levels) in <top (required)>'
5) System Ruby with No SSL, Not protected, No mcollective default parameters supports style Github payloads via payload end point
Failure/Error:
shell('/usr/bin/curl -d \'{ "ref": "refs/heads/production" }\' -H "Accept: application/json" "http://localhost:8088/payload" -k -q') do |r|
expect(r.stdout).to match(%r{^.*success.*$})
expect(r.exit_code).to eq(0)
end
Beaker::Host::CommandFailure:
Host 'ubuntu-server-1404-x64' exited with 7 running:
/usr/bin/curl -d '{ "ref": "refs/heads/production" }' -H "Accept: application/json" "http://localhost:8088/payload" -k -q
Last 10 lines of output were:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to localhost port 8088: Connection refused
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/host.rb:366:in `exec'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:83:in `block in on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:125:in `shell'
# ./spec/acceptance/basic_webhook_spec.rb:45:in `block (3 levels) in <top (required)>'
6) System Ruby with No SSL, Not protected, No mcollective default parameters supports style Gitorious payloads via payload end point
Failure/Error:
shell('/usr/bin/curl -X POST -d \'%7b%22ref%22%3a%22master%22%7d\' "http://localhost:8088/payload" -q') do |r|
expect(r.stdout).to match(%r{^.*success.*$})
expect(r.exit_code).to eq(0)
end
Beaker::Host::CommandFailure:
Host 'ubuntu-server-1404-x64' exited with 7 running:
/usr/bin/curl -X POST -d '%7b%22ref%22%3a%22master%22%7d' "http://localhost:8088/payload" -q
Last 10 lines of output were:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to localhost port 8088: Connection refused
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/host.rb:366:in `exec'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:83:in `block in on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:125:in `shell'
# ./spec/acceptance/basic_webhook_spec.rb:51:in `block (3 levels) in <top (required)>'
7) System Ruby with No SSL, Not protected, No mcollective default parameters supports style BitBucket payloads via payload end point
Failure/Error:
shell('/usr/bin/curl -X POST -d \'{ "push": { "changes": [ { "new": { "name": "production" } } ] } }\' "http://localhost:8088/payload" -q') do |r|
expect(r.stdout).to match(%r{^.*success.*$})
expect(r.exit_code).to eq(0)
end
Beaker::Host::CommandFailure:
Host 'ubuntu-server-1404-x64' exited with 7 running:
/usr/bin/curl -X POST -d '{ "push": { "changes": [ { "new": { "name": "production" } } ] } }' "http://localhost:8088/payload" -q
Last 10 lines of output were:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to localhost port 8088: Connection refused
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/host.rb:366:in `exec'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:83:in `block in on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:125:in `shell'
# ./spec/acceptance/basic_webhook_spec.rb:57:in `block (3 levels) in <top (required)>'
8) System Ruby with No SSL, Not protected, No mcollective default parameters Service "webhook" should be enabled
Failure/Error: it { is_expected.to be_enabled }
expected Service "webhook" to be enabled
# ./spec/acceptance/basic_webhook_spec.rb:29:in `block (4 levels) in <top (required)>'
9) System Ruby with No SSL, Not protected, No mcollective default parameters Service "webhook" should be running
Failure/Error: it { is_expected.to be_running }
expected Service "webhook" to be running
# ./spec/acceptance/basic_webhook_spec.rb:30:in `block (4 levels) in <top (required)>'
10) Prefix Enabled,System Ruby with No SSL, Not protected, No mcollective default parameters applies with no errors
Failure/Error: apply_manifest(pp, :catch_failures => true) # rubocop:disable Style/HashSyntax
Beaker::Host::CommandFailure:
Host 'ubuntu-server-1404-x64' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest.pp.fCWRYx
Last 10 lines of output were:
json requires Ruby version ~> 2.0.
Info: Computing checksum on file /etc/webhook.yaml
Info: /Stage[main]/R10k::Webhook::Config/File[webhook.yaml]: Filebucketed /etc/webhook.yaml to puppet with sum dac6fe2458b8e81634ffb722895e7a78
Notice: /Stage[main]/R10k::Webhook::Config/File[webhook.yaml]/content: content changed '{md5}dac6fe2458b8e81634ffb722895e7a78' to '{md5}d99a90558d87495230bb0f1d669acc14'
Info: /Stage[main]/R10k::Webhook::Config/File[webhook.yaml]: Scheduling refresh of Service[webhook]
Info: Class[R10k::Webhook::Config]: Scheduling refresh of Service[webhook]
Notice: /Stage[main]/R10k::Webhook/Service[webhook]: Dependency Package[json] has failures: true
Warning: /Stage[main]/R10k::Webhook/Service[webhook]: Skipping because of failed dependencies
Notice: /Stage[main]/R10k::Webhook/Service[webhook]: Triggered 'refresh' from 2 events
Notice: Finished catalog run in 0.53 seconds
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/host.rb:366:in `exec'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:83:in `block in on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/puppet_helpers.rb:487:in `block in apply_manifest_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/puppet_helpers.rb:416:in `apply_manifest_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/puppet_helpers.rb:494:in `apply_manifest'
# ./spec/acceptance/prefix_webhook_spec.rb:52:in `block (3 levels) in <top (required)>'
11) Prefix Enabled,System Ruby with No SSL, Not protected, No mcollective default parameters is idempotent
Failure/Error: apply_manifest(pp, :catch_changes => true) # rubocop:disable Style/HashSyntax
Beaker::Host::CommandFailure:
Host 'ubuntu-server-1404-x64' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest.pp.MVLC9O
Last 10 lines of output were:
Info: Loading facts
Notice: Compiled catalog for ubuntu-server-1404-x64.fritz.box in environment production in 0.40 seconds
Info: Applying configuration version '1480546949'
Error: Execution of '/usr/bin/gem install --no-rdoc --no-ri json' returned 1: ERROR: Error installing json:
json requires Ruby version ~> 2.0.
Error: /Stage[main]/R10k::Webhook::Package/Package[json]/ensure: change from absent to present failed: Execution of '/usr/bin/gem install --no-rdoc --no-ri json' returned 1: ERROR: Error installing json:
json requires Ruby version ~> 2.0.
Notice: /Stage[main]/R10k::Webhook/Service[webhook]: Dependency Package[json] has failures: true
Warning: /Stage[main]/R10k::Webhook/Service[webhook]: Skipping because of failed dependencies
Notice: Finished catalog run in 0.50 seconds
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/host.rb:366:in `exec'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:83:in `block in on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/puppet_helpers.rb:487:in `block in apply_manifest_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/puppet_helpers.rb:416:in `apply_manifest_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/puppet_helpers.rb:494:in `apply_manifest'
# ./spec/acceptance/prefix_webhook_spec.rb:55:in `block (3 levels) in <top (required)>'
12) Prefix Enabled,System Ruby with No SSL, Not protected, No mcollective default parameters calculates webteam prefix Github payloads via payload end point
Failure/Error:
shell('/usr/bin/curl -d \'{ "ref": "refs/heads/production", "repository": { "name": "puppet-control" , "url": "https://github.com/webteam/somerepo.git"} }\' -H "Accept: application/json" "http://localhost:8088/payload" -k -q') do |r|
expect(r.stdout).to match(%r{^.*webteam_production.*$})
expect(r.exit_code).to eq(0)
end
Beaker::Host::CommandFailure:
Host 'ubuntu-server-1404-x64' exited with 7 running:
/usr/bin/curl -d '{ "ref": "refs/heads/production", "repository": { "name": "puppet-control" , "url": "https://github.com/webteam/somerepo.git"} }' -H "Accept: application/json" "http://localhost:8088/payload" -k -q
Last 10 lines of output were:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to localhost port 8088: Connection refused
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/host.rb:366:in `exec'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:83:in `block in on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:125:in `shell'
# ./spec/acceptance/prefix_webhook_spec.rb:62:in `block (3 levels) in <top (required)>'
13) Prefix Enabled,System Ruby with No SSL, Not protected, No mcollective default parameters calculates secteam prefix with Github payloads via payload end point
Failure/Error:
shell('/usr/bin/curl -d \'{ "ref": "refs/heads/production", "repository": { "name": "puppet-control" , "url": "https://github.com/secteam/someotherrepo.git"} }\' -H "Accept: application/json" "http://localhost:8088/payload" -k -q') do |r|
expect(r.stdout).to match(%r{^.*secteam_production.*$})
expect(r.exit_code).to eq(0)
end
Beaker::Host::CommandFailure:
Host 'ubuntu-server-1404-x64' exited with 7 running:
/usr/bin/curl -d '{ "ref": "refs/heads/production", "repository": { "name": "puppet-control" , "url": "https://github.com/secteam/someotherrepo.git"} }' -H "Accept: application/json" "http://localhost:8088/payload" -k -q
Last 10 lines of output were:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to localhost port 8088: Connection refused
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/host.rb:366:in `exec'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:83:in `block in on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:125:in `shell'
# ./spec/acceptance/prefix_webhook_spec.rb:68:in `block (3 levels) in <top (required)>'
14) Prefix Enabled,System Ruby with No SSL, Not protected, No mcollective default parameters calculates custom prefix with Github payloads via payload end point
Failure/Error:
shell('/usr/bin/curl -d \'{ "ref": "refs/heads/production", "repository": { "name": "puppet-control" , "url": "https://github.com/customprefix/repo.git"} }\' -H "Accept: application/json" "http://localhost:8088/payload" -k -q') do |r|
expect(r.stdout).to match(%r{^.*custom_production.*$})
expect(r.exit_code).to eq(0)
end
Beaker::Host::CommandFailure:
Host 'ubuntu-server-1404-x64' exited with 7 running:
/usr/bin/curl -d '{ "ref": "refs/heads/production", "repository": { "name": "puppet-control" , "url": "https://github.com/customprefix/repo.git"} }' -H "Accept: application/json" "http://localhost:8088/payload" -k -q
Last 10 lines of output were:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to localhost port 8088: Connection refused
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/host.rb:366:in `exec'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:83:in `block in on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:125:in `shell'
# ./spec/acceptance/prefix_webhook_spec.rb:74:in `block (3 levels) in <top (required)>'
15) Prefix Enabled,System Ruby with No SSL, Not protected, No mcollective default parameters calculates no prefix Github payloads via payload end point
Failure/Error:
shell('/usr/bin/curl -d \'{ "ref": "refs/heads/production", "repository": { "name": "puppet-control" , "url": "https://github.com/noprefix/repo.git"} }\' -H "Accept: application/json" "http://localhost:8088/payload" -k -q') do |r|
expect(r.stdout).to match(%r{^.* production.*$})
expect(r.exit_code).to eq(0)
end
Beaker::Host::CommandFailure:
Host 'ubuntu-server-1404-x64' exited with 7 running:
/usr/bin/curl -d '{ "ref": "refs/heads/production", "repository": { "name": "puppet-control" , "url": "https://github.com/noprefix/repo.git"} }' -H "Accept: application/json" "http://localhost:8088/payload" -k -q
Last 10 lines of output were:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to localhost port 8088: Connection refused
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/host.rb:366:in `exec'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:83:in `block in on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:125:in `shell'
# ./spec/acceptance/prefix_webhook_spec.rb:81:in `block (3 levels) in <top (required)>'
16) Prefix Enabled,System Ruby with No SSL, Not protected, No mcollective default parameters Service "webhook" should be enabled
Failure/Error: it { is_expected.to be_enabled }
expected Service "webhook" to be enabled
# ./spec/acceptance/prefix_webhook_spec.rb:58:in `block (4 levels) in <top (required)>'
17) Prefix Enabled,System Ruby with No SSL, Not protected, No mcollective default parameters Service "webhook" should be running
Failure/Error: it { is_expected.to be_running }
expected Service "webhook" to be running
# ./spec/acceptance/prefix_webhook_spec.rb:59:in `block (4 levels) in <top (required)>'
18) GitHub Secret Enabled, System Ruby with No SSL, Not protected, No mcollective default parameters applies with no errors
Failure/Error: apply_manifest(pp, catch_failures: true)
Beaker::Host::CommandFailure:
Host 'ubuntu-server-1404-x64' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest.pp.0KyfM6
Last 10 lines of output were:
Error: Execution of '/usr/bin/gem install --no-rdoc --no-ri json' returned 1: ERROR: Error installing json:
json requires Ruby version ~> 2.0.
Error: /Stage[main]/R10k::Webhook::Package/Package[json]/ensure: change from absent to present failed: Execution of '/usr/bin/gem install --no-rdoc --no-ri json' returned 1: ERROR: Error installing json:
json requires Ruby version ~> 2.0.
Notice: /Stage[main]/R10k::Webhook::Config/File[webhook.yaml]/content: content changed '{md5}d99a90558d87495230bb0f1d669acc14' to '{md5}c3c003b7056ad717dae1293487d53957'
Info: /Stage[main]/R10k::Webhook::Config/File[webhook.yaml]: Scheduling refresh of Service[webhook]
Notice: /Stage[main]/R10k::Webhook/Service[webhook]: Dependency Package[json] has failures: true
Warning: /Stage[main]/R10k::Webhook/Service[webhook]: Skipping because of failed dependencies
Notice: /Stage[main]/R10k::Webhook/Service[webhook]: Triggered 'refresh' from 1 events
Notice: Finished catalog run in 0.51 seconds
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/host.rb:366:in `exec'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:83:in `block in on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/puppet_helpers.rb:487:in `block in apply_manifest_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/puppet_helpers.rb:416:in `apply_manifest_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/puppet_helpers.rb:494:in `apply_manifest'
# ./spec/acceptance/signature_webhook_spec.rb:24:in `block (3 levels) in <top (required)>'
19) GitHub Secret Enabled, System Ruby with No SSL, Not protected, No mcollective default parameters is idempotent
Failure/Error: apply_manifest(pp, catch_changes: true)
Beaker::Host::CommandFailure:
Host 'ubuntu-server-1404-x64' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest.pp.Ade9yo
Last 10 lines of output were:
Info: Loading facts
Notice: Compiled catalog for ubuntu-server-1404-x64.fritz.box in environment production in 0.40 seconds
Info: Applying configuration version '1480546956'
Error: Execution of '/usr/bin/gem install --no-rdoc --no-ri json' returned 1: ERROR: Error installing json:
json requires Ruby version ~> 2.0.
Error: /Stage[main]/R10k::Webhook::Package/Package[json]/ensure: change from absent to present failed: Execution of '/usr/bin/gem install --no-rdoc --no-ri json' returned 1: ERROR: Error installing json:
json requires Ruby version ~> 2.0.
Notice: /Stage[main]/R10k::Webhook/Service[webhook]: Dependency Package[json] has failures: true
Warning: /Stage[main]/R10k::Webhook/Service[webhook]: Skipping because of failed dependencies
Notice: Finished catalog run in 0.49 seconds
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/host.rb:366:in `exec'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:83:in `block in on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/puppet_helpers.rb:487:in `block in apply_manifest_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/puppet_helpers.rb:416:in `apply_manifest_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/puppet_helpers.rb:494:in `apply_manifest'
# ./spec/acceptance/signature_webhook_spec.rb:27:in `block (3 levels) in <top (required)>'
20) GitHub Secret Enabled, System Ruby with No SSL, Not protected, No mcollective default parameters supports style Github payloads via module end point with signature in header
Failure/Error:
shell("/usr/bin/curl -d '{ \"repository\": { \"name\": \"puppetlabs-stdlib\" } }' -H \"Accept: application/json\" \"http://localhost:8088/module\" -H \"X-Hub-Signature: #{signature}\" -k -q") do |r|
expect(r.stdout).to match(%r{^.*success.*$})
expect(r.exit_code).to eq(0)
end
Beaker::Host::CommandFailure:
Host 'ubuntu-server-1404-x64' exited with 7 running:
/usr/bin/curl -d '{ "repository": { "name": "puppetlabs-stdlib" } }' -H "Accept: application/json" "http://localhost:8088/module" -H "X-Hub-Signature: sha1=8ffba77dd6168f73757bcceecf6c8a486fbd9d77" -k -q
Last 10 lines of output were:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to localhost port 8088: Connection refused
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/host.rb:366:in `exec'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:83:in `block in on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:125:in `shell'
# ./spec/acceptance/signature_webhook_spec.rb:37:in `block (3 levels) in <top (required)>'
21) GitHub Secret Enabled, System Ruby with No SSL, Not protected, No mcollective default parameters supports style Github payloads via payload end point with signature in header
Failure/Error:
shell("/usr/bin/curl -d '{ \"ref\": \"refs/heads/production\" }' -H \"Accept: application/json\" -H \"X-Hub-Signature: #{signature}\" \"http://localhost:8088/payload\" -k -q") do |r|
expect(r.stdout).to match(%r{^.*success.*$})
expect(r.exit_code).to eq(0)
end
Beaker::Host::CommandFailure:
Host 'ubuntu-server-1404-x64' exited with 7 running:
/usr/bin/curl -d '{ "ref": "refs/heads/production" }' -H "Accept: application/json" -H "X-Hub-Signature: sha1=9f84f886200620e7a036658b40e64fbc765f82a3" "http://localhost:8088/payload" -k -q
Last 10 lines of output were:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to localhost port 8088: Connection refused
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/host.rb:366:in `exec'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:83:in `block in on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
# ./.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:125:in `shell'
# ./spec/acceptance/signature_webhook_spec.rb:46:in `block (3 levels) in <top (required)>'
22) GitHub Secret Enabled, System Ruby with No SSL, Not protected, No mcollective default parameters Service "webhook" should be enabled
Failure/Error: it { is_expected.to be_enabled }
expected Service "webhook" to be enabled
# ./spec/acceptance/signature_webhook_spec.rb:30:in `block (4 levels) in <top (required)>'
23) GitHub Secret Enabled, System Ruby with No SSL, Not protected, No mcollective default parameters Service "webhook" should be running
Failure/Error: it { is_expected.to be_running }
expected Service "webhook" to be running
# ./spec/acceptance/signature_webhook_spec.rb:31:in `block (4 levels) in <top (required)>'
Finished in 2 minutes 31.8 seconds (files took 1 minute 12.76 seconds to load)
23 examples, 23 failures
Failed examples:
rspec ./spec/acceptance/basic_webhook_spec.rb:22 # System Ruby with No SSL, Not protected, No mcollective default parameters applies with no errors
rspec ./spec/acceptance/basic_webhook_spec.rb:25 # System Ruby with No SSL, Not protected, No mcollective default parameters is idempotent
rspec ./spec/acceptance/basic_webhook_spec.rb:32 # System Ruby with No SSL, Not protected, No mcollective default parameters supports style Github payloads via module end point
rspec ./spec/acceptance/basic_webhook_spec.rb:38 # System Ruby with No SSL, Not protected, No mcollective default parameters supports style Bitbucket payloads via module end point
rspec ./spec/acceptance/basic_webhook_spec.rb:44 # System Ruby with No SSL, Not protected, No mcollective default parameters supports style Github payloads via payload end point
rspec ./spec/acceptance/basic_webhook_spec.rb:50 # System Ruby with No SSL, Not protected, No mcollective default parameters supports style Gitorious payloads via payload end point
rspec ./spec/acceptance/basic_webhook_spec.rb:56 # System Ruby with No SSL, Not protected, No mcollective default parameters supports style BitBucket payloads via payload end point
rspec ./spec/acceptance/basic_webhook_spec.rb:29 # System Ruby with No SSL, Not protected, No mcollective default parameters Service "webhook" should be enabled
rspec ./spec/acceptance/basic_webhook_spec.rb:30 # System Ruby with No SSL, Not protected, No mcollective default parameters Service "webhook" should be running
rspec ./spec/acceptance/prefix_webhook_spec.rb:51 # Prefix Enabled,System Ruby with No SSL, Not protected, No mcollective default parameters applies with no errors
rspec ./spec/acceptance/prefix_webhook_spec.rb:54 # Prefix Enabled,System Ruby with No SSL, Not protected, No mcollective default parameters is idempotent
rspec ./spec/acceptance/prefix_webhook_spec.rb:61 # Prefix Enabled,System Ruby with No SSL, Not protected, No mcollective default parameters calculates webteam prefix Github payloads via payload end point
rspec ./spec/acceptance/prefix_webhook_spec.rb:67 # Prefix Enabled,System Ruby with No SSL, Not protected, No mcollective default parameters calculates secteam prefix with Github payloads via payload end point
rspec ./spec/acceptance/prefix_webhook_spec.rb:73 # Prefix Enabled,System Ruby with No SSL, Not protected, No mcollective default parameters calculates custom prefix with Github payloads via payload end point
rspec ./spec/acceptance/prefix_webhook_spec.rb:80 # Prefix Enabled,System Ruby with No SSL, Not protected, No mcollective default parameters calculates no prefix Github payloads via payload end point
rspec ./spec/acceptance/prefix_webhook_spec.rb:58 # Prefix Enabled,System Ruby with No SSL, Not protected, No mcollective default parameters Service "webhook" should be enabled
rspec ./spec/acceptance/prefix_webhook_spec.rb:59 # Prefix Enabled,System Ruby with No SSL, Not protected, No mcollective default parameters Service "webhook" should be running
rspec ./spec/acceptance/signature_webhook_spec.rb:23 # GitHub Secret Enabled, System Ruby with No SSL, Not protected, No mcollective default parameters applies with no errors
rspec ./spec/acceptance/signature_webhook_spec.rb:26 # GitHub Secret Enabled, System Ruby with No SSL, Not protected, No mcollective default parameters is idempotent
rspec ./spec/acceptance/signature_webhook_spec.rb:33 # GitHub Secret Enabled, System Ruby with No SSL, Not protected, No mcollective default parameters supports style Github payloads via module end point with signature in header
rspec ./spec/acceptance/signature_webhook_spec.rb:42 # GitHub Secret Enabled, System Ruby with No SSL, Not protected, No mcollective default parameters supports style Github payloads via payload end point with signature in header
rspec ./spec/acceptance/signature_webhook_spec.rb:30 # GitHub Secret Enabled, System Ruby with No SSL, Not protected, No mcollective default parameters Service "webhook" should be enabled
rspec ./spec/acceptance/signature_webhook_spec.rb:31 # GitHub Secret Enabled, System Ruby with No SSL, Not protected, No mcollective default parameters Service "webhook" should be running
/usr/bin/ruby -I/home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/lib:/home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-support-3.5.0/lib /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/exe/rspec spec/acceptance --color failed
bastelfreak@bastelfreak-ws ~/modulesync_config/modules/puppet-r10k $ bundle exec rake beaker:ubuntu-server-1604-x64
/usr/bin/ruby -I/home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/lib:/home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-support-3.5.0/lib /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/exe/rspec spec/acceptance --color
/home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-rspec-6.0.0/lib/beaker-rspec/helpers/serverspec.rb:43: warning: already initialized constant Module::VALID_OPTIONS_KEYS
/home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/specinfra-2.66.0/lib/specinfra/configuration.rb:4: warning: previous definition of VALID_OPTIONS_KEYS was here
Beaker::Hypervisor, found some vagrant boxes to create
==> ubuntu-server-1604-x64: Destroying VM and associated drives...
Bringing machine 'ubuntu-server-1604-x64' up with 'virtualbox' provider...
==> ubuntu-server-1604-x64: Importing base box 'puppetlabs/ubuntu-16.04-64-nocm'...
Progress: 10%Progress: 20%Progress: 30%Progress: 40%Progress: 50%Progress: 70%Progress: 80%Progress: 90%==> ubuntu-server-1604-x64: Matching MAC address for NAT networking...
==> ubuntu-server-1604-x64: Checking if box 'puppetlabs/ubuntu-16.04-64-nocm' is up to date...
==> ubuntu-server-1604-x64: Setting the name of the VM: ubuntu-server-1604-x64yml_ubuntu-server-1604-x64_1480547007229_59171
==> ubuntu-server-1604-x64: Clearing any previously set network interfaces...
==> ubuntu-server-1604-x64: Preparing network interfaces based on configuration...
ubuntu-server-1604-x64: Adapter 1: nat
ubuntu-server-1604-x64: Adapter 2: hostonly
==> ubuntu-server-1604-x64: Forwarding ports...
ubuntu-server-1604-x64: 22 (guest) => 2222 (host) (adapter 1)
==> ubuntu-server-1604-x64: Running 'pre-boot' VM customizations...
==> ubuntu-server-1604-x64: Booting VM...
==> ubuntu-server-1604-x64: Waiting for machine to boot. This may take a few minutes...
ubuntu-server-1604-x64: SSH address: 127.0.0.1:2222
ubuntu-server-1604-x64: SSH username: vagrant
ubuntu-server-1604-x64: SSH auth method: private key
==> ubuntu-server-1604-x64: Machine booted and ready!
==> ubuntu-server-1604-x64: Checking for guest additions in VM...
ubuntu-server-1604-x64: The guest additions on this VM do not match the installed version of
ubuntu-server-1604-x64: VirtualBox! In most cases this is fine, but in rare cases it can
ubuntu-server-1604-x64: prevent things such as shared folders from working properly. If you see
ubuntu-server-1604-x64: shared folder errors, please make sure the guest additions within the
ubuntu-server-1604-x64: virtual machine match the version of VirtualBox you have installed on
ubuntu-server-1604-x64: your host and reload your VM.
ubuntu-server-1604-x64:
ubuntu-server-1604-x64: Guest Additions Version: 5.0.20
ubuntu-server-1604-x64: VirtualBox Version: 5.1
==> ubuntu-server-1604-x64: Setting hostname...
==> ubuntu-server-1604-x64: Configuring and enabling network interfaces...
==> ubuntu-server-1604-x64: Mounting shared folders...
ubuntu-server-1604-x64: /vagrant => /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vagrant/beaker_vagrant_files/ubuntu-server-1604-x64.yml
Disabling updates.puppetlabs.com by modifying hosts file to resolve updates to 127.0.0.1 on ubuntu-server-1604-x64
/home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/host.rb:366:in `exec': Host 'ubuntu-server-1604-x64' exited with 8 running: (Beaker::Host::CommandFailure)
wget -O /tmp/puppet.deb http://apt.puppetlabs.com/puppetlabs-release-xenial.deb
Last 10 lines of output were:
--2016-11-30 15:03:57-- http://apt.puppetlabs.com/puppetlabs-release-xenial.deb
Resolving apt.puppetlabs.com (apt.puppetlabs.com)... 192.155.89.90, 2600:3c03::f03c:91ff:fedb:6b1d
Connecting to apt.puppetlabs.com (apt.puppetlabs.com)|192.155.89.90|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-11-30 15:03:57 ERROR 404: Not Found.
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:83:in `block in on'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/install_utils/foss_utils.rb:911:in `block in install_puppetlabs_release_repo_on'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/install_utils/foss_utils.rb:876:in `install_puppetlabs_release_repo_on'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/install_utils/foss_utils.rb:467:in `block in install_puppet_from_deb_on'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/install_utils/foss_utils.rb:466:in `install_puppet_from_deb_on'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/install_utils/foss_utils.rb:273:in `block in install_puppet_on'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:127:in `run_block_on'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:115:in `block in run_block_on'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:114:in `map'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/shared/host_manager.rb:114:in `run_block_on'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/install_utils/foss_utils.rb:265:in `install_puppet_on'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/beaker-3.5.0/lib/beaker/dsl/install_utils/foss_utils.rb:207:in `install_puppet'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/spec/spec_helper_acceptance.rb:11:in `block in <top (required)>'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/spec/spec_helper_acceptance.rb:6:in `each'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/spec/spec_helper_acceptance.rb:6:in `<top (required)>'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/spec/acceptance/basic_webhook_spec.rb:1:in `require'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/spec/acceptance/basic_webhook_spec.rb:1:in `<top (required)>'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/lib/rspec/core/configuration.rb:1435:in `load'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/lib/rspec/core/configuration.rb:1435:in `block in load_spec_files'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/lib/rspec/core/configuration.rb:1433:in `each'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/lib/rspec/core/configuration.rb:1433:in `load_spec_files'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:100:in `setup'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:86:in `run'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:71:in `run'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:45:in `invoke'
from /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/exe/rspec:4:in `<main>'
/usr/bin/ruby -I/home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/lib:/home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-support-3.5.0/lib /home/bastelfreak/modulesync_config/modules/puppet-r10k/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/exe/rspec spec/acceptance --color failed
bastelfreak@bastelfreak-ws ~/modulesync_config/modules/puppet-r10k $
I would like to revisit this when removing Puppet 3 support; the acceptance tests are out of date but don't think there is a lot of value in rewriting for things that will be removed soon.
See also #346
I think this issue can be closed, since we dropped Puppet 3 and the acceptance test do not fail anymore.
Hi @rnelson0,
I did the following on the modulesync branch: