heat/heat/tests
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
..
examples Adding resource initialization test 2012-04-23 08:17:10 -04:00
functional Split functional test into standalone and utility class 2012-08-23 13:31:42 -04:00
unit Teach CheckedSchema to do nested schemas 2012-07-03 10:03:09 +10:00
v1_1 Allowed the database call to return no parsed template. 2012-05-10 15:31:31 -04:00
__init__.py Allowed the database call to return no parsed template. 2012-05-10 15:31:31 -04:00
fakes.py heat tests : Add missing headers to tests 2012-07-05 18:08:40 +01:00
test_api_aws.py heat API : Move aws api common code into aws/utils.py 2012-08-21 11:54:18 +01:00
test_api_v1.py heat API : Move aws api common code into aws/utils.py 2012-08-21 11:54:18 +01:00
test_cfn.py heat tests : Add missing headers to tests 2012-07-05 18:08:40 +01:00
test_dependencies.py heat tests : Add missing headers to tests 2012-07-05 18:08:40 +01:00
test_engine_api_utils.py heat engine/API : Internal API rework 2012-07-16 17:21:11 +01:00
test_instance.py heat : Make instance flavors consistent 2012-08-02 17:52:24 +01:00
test_parser.py heat api/engine : Implement UpdateStack functionality 2012-07-20 15:31:03 +01:00
test_resource.py Make timestamps available in Stack/Resource objects 2012-07-13 16:46:19 -04:00
test_rpcapi.py Implements a client side engine RPC API. 2012-08-03 10:00:07 +12:00
test_stacks.py heat : Make instance flavors consistent 2012-08-02 17:52:24 +01:00
test_validate.py Don't require user params on template validation 2012-07-18 12:33:09 +02:00
test_waitcondition.py heat tests : Add missing headers to tests 2012-07-05 18:08:40 +01:00
test_watch.py heat tests : Add missing headers to tests 2012-07-05 18:08:40 +01:00
testing-overview.txt Update virtual-env requires and documentation 2012-04-24 14:17:40 -04:00
utils.py heat tests : Add missing headers to tests 2012-07-05 18:08:40 +01:00