Set up an "integration test" environment with Blimpy

This commit is contained in:
R. Tyler Croy 2012-06-21 13:06:08 -07:00
parent 9c227c0e2e
commit 38b3755066
3 changed files with 30 additions and 11 deletions

View File

@ -4,5 +4,7 @@
Blimpy.fleet do |fleet|
fleet.add(:aws) do |ship|
ship.name = 'sauceconnector'
ship.livery = :cwd
ship.flavor = 'm1.small'
end
end

18
bootstrap.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/sh -x
export PATH=/var/lib/gems/1.8/bin:$PATH
which puppet
if [ $? -ne 0 ]; then
apt-get update
apt-get install -y ruby1.8 \
ruby1.8-dev \
libopenssl-ruby1.8 \
rubygems
gem install puppet --no-ri --no-rdoc
fi
puppet apply --verbose --modulepath=../ tests/init.pp

View File

@ -1,11 +1,10 @@
# The baseline for module testing used by Puppet Labs is that each manifest
# should have a corresponding test manifest that declares that class or defined
# type.
#
# Tests are then run by using puppet apply --noop (to check for compilation errors
# and view a log of events) or by fully applying the test in a virtual environment
# (to compare the resulting system state to the desired state).
#
# Learn more about module testing here: http://docs.puppetlabs.com/guides/tests_smoke.html
#
include sauceconnect
node default {
group {
'puppet' :
ensure => present;
}
class {
'sauceconnect' : ;
}
}