Skip to content

Instantly share code, notes, and snippets.

View TheMeier's full-sized avatar

Christoph Maser TheMeier

  • Munich
  • 07:26 (UTC +02:00)
View GitHub Profile

Ideas and things concerning puppet acceptance test

replicate a failing test locally

grep the beaker hostgenerator sting from test output. this is something like archlinuxrolling-64{hostname=archlinuxrolling-64.example.com} can usually be found on the first page of the test output

install gem deps bundle config set --local without 'development release'; note this does not exclude system_tests, then do bundle install/update

example command to run acceptance test: BEAKER_DESTROY=yes BEAKER_HYPERVISOR=docker BEAKER_SETFILE="debian11-64{hostname=debian11-64-puppet7.example.com}" bundle exec rake beaker

oracle8-64-puppet8.example.com executed in 0.05 seconds
setting local environment on oracle8-64-puppet8.example.com
oracle8-64-puppet8.example.com 16:47:57$ mktemp -dt .XXXXXX
/tmp/.Ce3nF3
oracle8-64-puppet8.example.com executed in 0.05 seconds
oracle8-64-puppet8.example.com 16:47:57$ echo 'PermitUserEnvironment yes' | cat - /etc/ssh/sshd_config > /tmp/.Ce3nF3/sshd_config.permit