The heat_integrationtests.common.test Module

The heat_integrationtests.common.test Module

class heat_integrationtests.common.test.HeatIntegrationTest(*args, **kwargs)[source]

Bases: testscenarios.testcase.WithScenarios, testtools.testcase.TestCase

assert_resource_is_a_stack(stack_identifier, res_name, wait=False)[source]
assign_keypair()[source]
cancel_update_stack(stack_identifier, rollback=True, expected_status='ROLLBACK_COMPLETE')[source]
check_autoscale_complete(stack_id, expected_num, parent_stack, group_name)[source]
check_connectivity(check_ip)[source]
check_input_values(group_resources, key, value)[source]
create_keypair(client=None, name=None)[source]
get_physical_resource_id(stack_identifier, resource_name)[source]
get_resource_stack_id(r)[source]
get_stack_output(stack_identifier, output_key, validate_errors=True)[source]
group_nested_identifier(stack_identifier, group_name)[source]
is_service_available(service_type)[source]
list_group_resources(stack_identifier, group_name, minimal=True)[source]
list_resources(stack_identifier, filter_func=None)[source]
preview_update_stack(stack_identifier, template, environment=None, files=None, parameters=None, tags=None, disable_rollback=True, show_nested=False)[source]
setUp()[source]
setup_clients(conf, admin_credentials=False)[source]
setup_clients_for_admin()[source]
signal_resources(resources)[source]
stack_abandon(stack_id)[source]
stack_adopt(stack_name=None, files=None, parameters=None, environment=None, adopt_data=None, wait_for_status='ADOPT_COMPLETE')[source]
stack_create(stack_name=None, template=None, files=None, parameters=None, environment=None, tags=None, expected_status='CREATE_COMPLETE', disable_rollback=True, enable_cleanup=True, environment_files=None, timeout=None)[source]
stack_restore(stack_id, snapshot_id, wait_for_status='RESTORE_COMPLETE')[source]
stack_resume(stack_identifier)[source]
stack_snapshot(stack_id, wait_for_status='SNAPSHOT_COMPLETE')[source]
stack_suspend(stack_identifier)[source]
update_stack(stack_identifier, template=None, environment=None, files=None, parameters=None, tags=None, expected_status='UPDATE_COMPLETE', disable_rollback=True, existing=False)[source]
verify_resource_status(stack_identifier, resource_name, status='CREATE_COMPLETE')[source]
wait_for_event_with_reason(stack_identifier, reason, rsrc_name=None, num_expected=1)[source]
heat_integrationtests.common.test.call_until_true(duration, sleep_for, func, *args, **kwargs)[source]

Call the function until it returns True or the duration elapsed.

Call the given function until it returns True (and return True) or until the specified duration (in seconds) elapses (and return False).

Parameters:
  • func – A zero argument callable that returns True on success.
  • duration – The number of seconds for which to attempt a successful call of the function.
  • sleep_for – The number of seconds to sleep after an unsuccessful invocation of the function.
heat_integrationtests.common.test.rand_name(name='')[source]
heat_integrationtests.common.test.requires_convergence(test_method)[source]

Decorator for convergence-only tests.

The decorated test will be skipped when convergence is disabled.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.