Create a script that kicks off function tests that exercise openstackclient commands against a cloud. If no keystone/openstack process is detected, a devstack instance is spun up and the tests are run against that. There is also a hook added to tox.ini so that we can run these tests easily from a gate job. Change-Id: I3cc8b2b800de7ca74af506d2c7e8ee481fa985f0
		
			
				
	
	
		
			16 lines
		
	
	
		
			496 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			496 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
 | 
						|
# This is a script that kicks off a series of functional tests against an
 | 
						|
# OpenStack cloud. It will attempt to create an instance if one is not
 | 
						|
# available. Do not run this script unless you know what you're doing.
 | 
						|
# For more information refer to:
 | 
						|
# http://docs.openstack.org/developer/python-openstackclient/
 | 
						|
 | 
						|
set -xe
 | 
						|
 | 
						|
OPENSTACKCLIENT_DIR=$(cd $(dirname "$0") && pwd)
 | 
						|
 | 
						|
cd $OPENSTACKCLIENT_DIR
 | 
						|
echo "Running openstackclient functional test suite"
 | 
						|
sudo -H -u stack tox -e functional
 |