add methods for testing swift and deploying a master
This commit is contained in:
		
							
								
								
									
										7
									
								
								Rakefile
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								Rakefile
									
									
									
									
									
								
							@@ -140,7 +140,7 @@ namespace :test do
 | 
				
			|||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  desc 'Checkout fresh master environment and test a two node deployment'
 | 
					  desc 'Checkout fresh master environment and test a two node deployment'
 | 
				
			||||||
  task 'master' do
 | 
					  task 'openstack_master' do
 | 
				
			||||||
    refresh_modules
 | 
					    refresh_modules
 | 
				
			||||||
    system "bash -c 'rspec spec/test_two_node.rb;echo $?' 2>&1 | tee #{log_file}"
 | 
					    system "bash -c 'rspec spec/test_two_node.rb;echo $?' 2>&1 | tee #{log_file}"
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
@@ -177,6 +177,11 @@ namespace :test do
 | 
				
			|||||||
    test_two_node(['redhat', 'ubuntu'])
 | 
					    test_two_node(['redhat', 'ubuntu'])
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  desc 'test swift cluster'
 | 
				
			||||||
 | 
					  task 'swift_proxy' do
 | 
				
			||||||
 | 
					    test_swift
 | 
				
			||||||
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  desc 'test all in one deployment on redhat/ubuntu (not yet implemented)'
 | 
					  desc 'test all in one deployment on redhat/ubuntu (not yet implemented)'
 | 
				
			||||||
  task 'all_in_one' do
 | 
					  task 'all_in_one' do
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -52,6 +52,16 @@ module Puppetlabs
 | 
				
			|||||||
        )
 | 
					        )
 | 
				
			||||||
      end
 | 
					      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
 | 
					  end
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user