heat/tools
Jeff Peeler 8ba6c8ffe8 Split functional test into standalone and utility class
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>
2012-08-23 13:31:42 -04:00
..
experimental_ssh_eventlet.py Allowed the database call to return no parsed template. 2012-05-10 15:31:31 -04:00
glance-jeos-add-from-github.sh heat tools : glance-jeos-add-from-github avoid duplicates 2012-08-20 13:02:46 +01:00
heat-db-drop heat tools : heat-db-drop prompt for missing password 2012-07-05 10:46:53 +01:00
heat-keystone-service Make heat-keystone-service a tad more robust 2012-06-08 11:24:04 +02:00
heat-keystone-service-devstack Add keystone create script for devstack 2012-06-25 12:47:23 -04:00
install_venv.py Add unit test framework nose and associated helper scripts 2012-04-13 17:10:30 -04:00
integration.sh Add an integration test script 2012-05-21 23:41:17 +02:00
nova_create_flavors.sh heat : Make instance flavors consistent 2012-08-02 17:52:24 +01:00
openstack heat : Make instance flavors consistent 2012-08-02 17:52:24 +01:00
pip-requires Use cached keystoneclient 2012-08-16 10:50:18 -07:00
README Add a tool to register prebuilt JEOS images into glance from github 2012-08-17 10:11:43 -07:00
rst2script.sed Add Getting Started guide to repo 2012-05-11 18:56:12 +02:00
test-requires Split functional test into standalone and utility class 2012-08-23 13:31:42 -04:00
uninstall-heat Document Metadata server in Getting Started guide 2012-07-15 17:49:35 -04:00
with_venv.sh Add unit test framework nose and associated helper scripts 2012-04-13 17:10:30 -04:00

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.