8ba6c8ffe8
This allows functional tests to be written for each individual template. See the test_Wordpress_Single_Instance for an example, but the basic form to follow is: import util def test_template(): func_utils = util.FuncUtils() func_utils.create_stack(template, 'F17') func_utils.check_cfntools() func_utils.wait_for_provisioning() func_utils.check_user_data(template) ssh = func_utils.get_ssh_client() # test stuff here func_utils.cleanup() Functional test changes: Changed jeos creation to use new tool. Added distribution to heat stack creation. Improved IP parsing from glance. Improve SSH connection exception handling. Changed cfntools SHA check to match installed copy instead of locally. Fixed stack parsing to check correct file and handle user-data injection. Clean up run_tests a little to make it clear default execution is on host. Add a short option for unit test running only (may be important due to not wanting to run functional tests locally). Also added paramiko to test-requires. Change-Id: Ib2ae1be32801cb0ee3d1937c4f82ab9f574b4591 Signed-off-by: Jeff Peeler <jpeeler@redhat.com> |
||
---|---|---|
.. | ||
experimental_ssh_eventlet.py | ||
glance-jeos-add-from-github.sh | ||
heat-db-drop | ||
heat-keystone-service | ||
heat-keystone-service-devstack | ||
install_venv.py | ||
integration.sh | ||
nova_create_flavors.sh | ||
openstack | ||
pip-requires | ||
README | ||
rst2script.sed | ||
test-requires | ||
uninstall-heat | ||
with_venv.sh |
Files in this directory are general developer tools or examples of how to do certain activities. If you're running on F16, make sure you first enable the preview yum repository http://fedoraproject.org/wiki/Getting_started_with_OpenStack_on_Fedora_17#Preview_Repository_for_Fedora_16 ----- Tools ----- + experimental_ssh_eventlet.py - Example of using ssh inside python with eventlets. + openstack - WARNING COULD DESTROY DATA - Installs, Uninstalls, starts, and stops openstack from the RPM repository on F16 or F17. This provides a consistent way for developers to deploy openstack in a consistent painless way. THIS IS NOT INTENDED FOR END USERS AS IT COULD PERMANENTLY DESTROY DATA AND DOES NOT PROPERLY SECURE THE INSTALLATION. note: This tool does not create a network. Creating a network depends on the specific environment, but an example network creation: sudo nova-manage network create demonet 10.0.0.0/24 1 256 --bridge=demonetbr0 + heat-keystone-setup - This tool configures keystone for use with the heat service the first time openstack is installed. + heat-db-drop - This script drops the heat database from mysql in the case of developer data corruption or erasing heat. + glance-jeos-add-from-github.sh - Register all JEOS images from github prebuilt repositories. This takes about 1 hour on a typical wireless connection.