Last active
August 29, 2015 14:21
-
-
Save justinstoller/fd1085ce5f11f9d3a8b4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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