voxpupuli / puppet-confluence

A puppet module to install confluence
https://forge.puppet.com/puppet/confluence
MIT License
21 stars 76 forks source link

Fix Beaker setup because of the migration to puppet-archive #97

Closed dhoppe closed 7 years ago

bastelfreak commented 7 years ago

I'm not able to test it on centos. I never know if thats an issue with beaker or with the tests itself:

$ bundle exec rake beaker:centos-72-x64
/usr/bin/ruby -I/home/bastelfreak/modulesync_config/modules/puppet-confluence/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/lib:/home/bastelfreak/modulesync_config/modules/puppet-confluence/.vendor/ruby/2.3.0/gems/rspec-support-3.5.0/lib /home/bastelfreak/modulesync_config/modules/puppet-confluence/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/exe/rspec spec/acceptance --color
/home/bastelfreak/modulesync_config/modules/puppet-confluence/.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-confluence/.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
Bringing machine 'centos-72-x64' up with 'virtualbox' provider...
==> centos-72-x64: Importing base box 'puppetlabs/centos-7.2-64-nocm'...
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_1480189230678_37544
==> 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-confluence/.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-confluence centos-72-x64:/etc/puppet/modules {:ignore => ["spec/fixtures/*", ".git/*", ".vagrant/*", ".", ".."]}

confluence
localhost $ scp /tmp/beaker20161126-8095-1n2qrvq centos-72-x64:/tmp/apply_manifest.pp.F51ewI {:ignore => }
  installs with defaults (FAILED - 1)
  Process "java"
    should be running
  Port "8090"
    should be listening
  Service "confluence"
    should be enabled
  User "confluence"
    should exist
  User "confluence"
    should belong to group "confluence"
  User "confluence"
    should have login shell "/bin/true"
  Command "wget -q --tries=240 --retry-connrefused --read-timeout=10 -O- localhost:8090"
    stdout
      should match /http:\/\/www.atlassian.com\// (FAILED - 2)

confluence
localhost $ scp /tmp/beaker20161126-8095-1cfw00b centos-72-x64:/tmp/apply_manifest.pp.EU0kYF {:ignore => }
  upgrades with defaults (FAILED - 3)
  Process "java"
    should be running
  Port "8090"
    should be listening
  Service "confluence"
    should be enabled
  User "confluence"
    should exist
  User "confluence"
    should belong to group "confluence"
  User "confluence"
    should have login shell "/bin/true"
  Command "wget -q --tries=240 --retry-connrefused --read-timeout=10 -O- localhost:8090"
    stdout
      should match /http:\/\/www.atlassian.com\// (FAILED - 4)

confluence
localhost $ scp /tmp/beaker20161126-8095-xbs0u0 centos-72-x64:/tmp/apply_manifest.pp.A2HiyC {:ignore => }
^Crake aborted!
Interrupt: 
/home/bastelfreak/modulesync_config/modules/puppet-confluence/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/lib/rspec/core/rake_task.rb:79:in `system'
/home/bastelfreak/modulesync_config/modules/puppet-confluence/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/lib/rspec/core/rake_task.rb:79:in `run_task'
/home/bastelfreak/modulesync_config/modules/puppet-confluence/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/lib/rspec/core/rake_task.rb:96:in `block (2 levels) in define'
/home/bastelfreak/modulesync_config/modules/puppet-confluence/.vendor/ruby/2.3.0/gems/rspec-core-3.5.4/lib/rspec/core/rake_task.rb:94:in `block in define'
/home/bastelfreak/modulesync_config/modules/puppet-confluence/.vendor/ruby/2.3.0/gems/puppetlabs_spec_helper-1.2.2/lib/puppetlabs_spec_helper/rake_tasks.rb:387:in `block (2 levels) in <top (required)>'
/home/bastelfreak/modulesync_config/modules/puppet-confluence/.vendor/ruby/2.3.0/gems/rake-11.3.0/exe/rake:27:in `<top (required)>'
/home/bastelfreak/.gem/ruby/2.3.0/gems/bundler-1.13.3/lib/bundler/cli/exec.rb:74:in `load'
/home/bastelfreak/.gem/ruby/2.3.0/gems/bundler-1.13.3/lib/bundler/cli/exec.rb:74:in `kernel_load'
/home/bastelfreak/.gem/ruby/2.3.0/gems/bundler-1.13.3/lib/bundler/cli/exec.rb:27:in `run'
/home/bastelfreak/.gem/ruby/2.3.0/gems/bundler-1.13.3/lib/bundler/cli.rb:332:in `exec'
/home/bastelfreak/.gem/ruby/2.3.0/gems/bundler-1.13.3/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/home/bastelfreak/.gem/ruby/2.3.0/gems/bundler-1.13.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/home/bastelfreak/.gem/ruby/2.3.0/gems/bundler-1.13.3/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
/home/bastelfreak/.gem/ruby/2.3.0/gems/bundler-1.13.3/lib/bundler/cli.rb:20:in `dispatch'
/home/bastelfreak/.gem/ruby/2.3.0/gems/bundler-1.13.3/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
/home/bastelfreak/.gem/ruby/2.3.0/gems/bundler-1.13.3/lib/bundler/cli.rb:11:in `start'
/home/bastelfreak/.gem/ruby/2.3.0/gems/bundler-1.13.3/exe/bundle:34:in `block in <top (required)>'
/home/bastelfreak/.gem/ruby/2.3.0/gems/bundler-1.13.3/lib/bundler/friendly_errors.rb:100:in `with_friendly_errors'
/home/bastelfreak/.gem/ruby/2.3.0/gems/bundler-1.13.3/exe/bundle:26:in `<top (required)>'
/home/bastelfreak/.gem/ruby/2.3.0/bin/bundle:23:in `load'
/home/bastelfreak/.gem/ruby/2.3.0/bin/bundle:23:in `<main>'
Tasks: TOP => beaker
(See full trace by running task with --trace)
dhoppe commented 7 years ago

That is a known issue. For some reason I do not get a proper response from the url:port, but is better than the current setup which is not able to download Java (because deploy::file does not exist).