Skip to content

Instantly share code, notes, and snippets.

@justinstoller
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinstoller/fd1085ce5f11f9d3a8b4 to your computer and use it in GitHub Desktop.
Save justinstoller/fd1085ce5f11f9d3a8b4 to your computer and use it in GitHub Desktop.
require 'spec_helper_acceptance'
describe 'a basic test' do
it 'does very little' do
puppet_run = apply_manifest("notify {'Hello Bar': }", :catch_failures => true)
expect(puppet_run.stdout).to include('Hello Bar')
end
end
#!/bin/bash
. /usr/local/rvm/scripts/rvm; rvm use ruby-1.9.3-p484
set -e
echo
echo "Extracting build artifact"
tar -xf sqlserver.tgz
source ./version.properties
export PKG_VERSION
export SPEC_VERSION=$PKG_VERSION
#export BEAKER_FORGE_HOST="module-staging.puppetlabs.com"
export BEAKER_keyfile="$HOME/.ssh/id_rsa-acceptance"
export BEAKER_setfile="$PWD/acceptance/nodesets/${PLATFORM_CONFIG}.yml"
export BEAKER_destroy=true
export BEAKER_debug=true
export BEAKER_PE_DIR="http://enterprise.delivery.puppetlabs.net/archives/releases/3.8.0"
export BUNDLE_PATH="$GEMDEP_PATH"
export BUNDLE_BIN="$GEMBIN_PATH"
export INSTALLATION_TYPE=pe
echo
echo "Printing Environment"
env | sort
echo
echo "Running tests"
bundle exec rspec spec/acceptance
RESULT=$?
echo
echo "Removing Dependency Bundle"
rm -rf $BUNDLE_PATH
exit $RESULT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment