add methods for testing swift and deploying a master

This commit is contained in:
Dan Bode
2013-01-15 11:57:23 -08:00
parent dc9b1774c1
commit 35d1079726
2 changed files with 16 additions and 1 deletions

View File

@@ -140,7 +140,7 @@ namespace :test do
end
desc 'Checkout fresh master environment and test a two node deployment'
task 'master' do
task 'openstack_master' do
refresh_modules
system "bash -c 'rspec spec/test_two_node.rb;echo $?' 2>&1 | tee #{log_file}"
end
@@ -177,6 +177,11 @@ namespace :test do
test_two_node(['redhat', 'ubuntu'])
end
desc 'test swift cluster'
task 'swift_proxy' do
test_swift
end
desc 'test all in one deployment on redhat/ubuntu (not yet implemented)'
task 'all_in_one' do

View File

@@ -52,6 +52,16 @@ module Puppetlabs
)
end
# test that our swift cluster if functional
def test_swift
on_box('swift_proxy', 'ruby /tmp/swift_test_file.rb;exit $?')
end
# deploys a puppetmaster. this is required for deploying swift
def deploy_puppetmaster
vagrant_command('up', 'puppetmaster')
end
end
end
end