heat/heat
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
..
api heat API : Move aws api common code into aws/utils.py 2012-08-21 11:54:18 +01:00
cloudinit Log all startup operations to /var/log/heat-startup.log 2012-08-03 16:43:59 -07:00
common Port existing rpc calls to use the new RPC client API. 2012-08-03 10:00:07 +12:00
db Add encryption support for authentication information in db. 2012-07-26 18:40:18 -07:00
engine heat engine : Fix engine.api variable shadowing 2012-08-21 10:48:33 +01:00
metadata Port existing rpc calls to use the new RPC client API. 2012-08-03 10:00:07 +12:00
openstack Update openstack-common 2012-07-17 17:38:50 -07:00
testing Add execute bits to executable scripts manage.py and runner.py 2012-06-18 09:13:25 -07:00
tests Split functional test into standalone and utility class 2012-08-23 13:31:42 -04:00
__init__.py Sync cfg from openstack-common 2012-03-16 11:49:46 -04:00
boto_client.py heat cli : Workaround inconsistent boto return type 2012-08-16 13:02:09 +01:00
client.py heat cli : Workaround inconsistent boto return type 2012-08-16 13:02:09 +01:00
cloudformations.py Tidy up create timeout code 2012-06-28 18:02:08 +02:00
manager.py Import openstack.common.rpc 2012-07-17 08:27:19 -07:00
service.py Import openstack.common.rpc 2012-07-17 08:27:19 -07:00
utils.py Import openstack.common.log and use inside heat infrastructure 2012-07-14 13:51:38 -07:00
version.py Bump to v6 2012-07-31 14:51:55 +02:00