The heat_integrationtests.functional.test_resource_group Module

The heat_integrationtests.functional.test_resource_group Module

class heat_integrationtests.functional.test_resource_group.ResourceGroupAdoptTest(*args, **kwargs)[source]

Bases: heat_integrationtests.functional.functional_base.FunctionalTestsBase

Prove that we can do resource group adopt.

main_template = '\nheat_template_version: "2013-05-23"\nresources:\n group1:\n type: OS::Heat::ResourceGroup\n properties:\n count: 2\n resource_def:\n type: OS::Heat::RandomString\noutputs:\n test0:\n value: {get_attr: [group1, resource.0.value]}\n test1:\n value: {get_attr: [group1, resource.1.value]}\n'
test_adopt()[source]
class heat_integrationtests.functional.test_resource_group.ResourceGroupErrorResourceTest(*args, **kwargs)[source]

Bases: heat_integrationtests.functional.functional_base.FunctionalTestsBase

nested_templ = '\nheat_template_version: "2013-05-23"\nresources:\n oops:\n type: OS::Heat::TestResource\n properties:\n fail: true\n wait_secs: 2\n'
template = '\nheat_template_version: "2013-05-23"\nresources:\n group1:\n type: OS::Heat::ResourceGroup\n properties:\n count: 2\n resource_def:\n type: fail.yaml\n'
test_fail()[source]
class heat_integrationtests.functional.test_resource_group.ResourceGroupTest(*args, **kwargs)[source]

Bases: heat_integrationtests.functional.functional_base.FunctionalTestsBase

template = '\nheat_template_version: 2013-05-23\nresources:\n random_group:\n type: OS::Heat::ResourceGroup\n properties:\n count: 0\n resource_def:\n type: My::RandomString\n properties:\n length: 30\n salt: initial\noutputs:\n random1:\n value: {get_attr: [random_group, resource.0.value]}\n random2:\n value: {get_attr: [random_group, resource.1.value]}\n all_values:\n value: {get_attr: [random_group, value]}\n'
test_create()[source]
test_props_update()[source]

Test update of resource_def properties behaves as expected.

test_resource_group_zero_novalidate()[source]
test_update_increase_decrease_count()[source]
test_update_nochange()[source]

Test update with no properties change.

test_update_nochange_resource_needs_update()[source]

Test update when the resource definition has changed.

Test the scenario when the ResourceGroup update happens without any changed properties, this can happen if the definition of a contained provider resource changes (files map changes), then the group and underlying nested stack should end up updated.

test_update_removal_policies()[source]
class heat_integrationtests.functional.test_resource_group.ResourceGroupTestNullParams(*args, **kwargs)[source]

Bases: heat_integrationtests.functional.functional_base.FunctionalTestsBase

nested_template_file = '\nheat_template_version: 2013-05-23\nparameters:\n param:\n type: empty\noutputs:\n val:\n value: {get_param: param}\n'
scenarios = [('string_empty', {'p_type': 'string', 'param': ''}), ('boolean_false', {'p_type': 'boolean', 'param': False}), ('number_zero', {'p_type': 'number', 'param': 0}), ('comma_delimited_list', {'p_type': 'comma_delimited_list', 'param': []}), ('json_empty', {'p_type': 'json', 'param': {}})]
template = '\nheat_template_version: 2013-05-23\nparameters:\n param:\n type: empty\nresources:\n random_group:\n type: OS::Heat::ResourceGroup\n properties:\n count: 1\n resource_def:\n type: My::RandomString\n properties:\n param: {get_param: param}\noutputs:\n val:\n value: {get_attr: [random_group, val]}\n'
test_create_pass_zero_parameter()[source]
class heat_integrationtests.functional.test_resource_group.ResourceGroupUpdatePolicyTest(*args, **kwargs)[source]

Bases: heat_integrationtests.functional.functional_base.FunctionalTestsBase

template = "\nheat_template_version: '2015-04-30'\nresources:\n random_group:\n type: OS::Heat::ResourceGroup\n update_policy:\n rolling_update:\n min_in_service: 1\n max_batch_size: 2\n pause_time: 1\n properties:\n count: 10\n resource_def:\n type: OS::Heat::TestResource\n properties:\n value: initial\n update_replace: False\n"
test_resource_group_update()[source]

Test rolling update with no conflict.

Simple rolling update with no conflict in batch size and minimum instances in service.

test_resource_group_update_adjusted()[source]

Test rolling update with enough available resources

Update with capacity adjustment with enough resources.

test_resource_group_update_huge_batch_size()[source]

Test rolling update with huge batch size.

Rolling Update with a huge batch size(more than current size).

test_resource_group_update_huge_min_in_service()[source]

Test rolling update with huge minimum capacity.

Rolling Update with a huge number of minimum instances in service.

test_resource_group_update_replace()[source]

Test rolling update(replace)with no conflict.

Simple rolling update replace with no conflict in batch size and minimum instances in service.

test_resource_group_update_scaledown()[source]

Test rolling update with scaledown.

Simple rolling update with reduced size.

test_resource_group_update_scaleup()[source]

Test rolling update with scaleup.

Simple rolling update with increased size.

test_resource_group_update_with_adjusted_capacity()[source]

Test rolling update with capacity adjustment.

Rolling update with capacity adjustment due to conflict in batch size and minimum instances in service.

update_resource_group(update_template, updated, created, deleted)[source]
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.