The heat_integrationtests.functional.test_heat_autoscaling
Module¶
-
class
heat_integrationtests.functional.test_heat_autoscaling.
AutoScalingGroupUpdateWithNoChanges
(*args, **kwargs)[source]¶ Bases:
heat_integrationtests.functional.functional_base.FunctionalTestsBase
-
template
= ‘\nheat_template_version: 2013-05-23\n\nresources:\n test_group:\n type: OS::Heat::AutoScalingGroup\n properties:\n desired_capacity: 0\n max_size: 0\n min_size: 0\n resource:\n type: OS::Heat::RandomString\n test_policy:\n type: OS::Heat::ScalingPolicy\n properties:\n adjustment_type: change_in_capacity\n auto_scaling_group_id: { get_resource: test_group }\n scaling_adjustment: 1\n’¶
-
-
class
heat_integrationtests.functional.test_heat_autoscaling.
HeatAutoscalingTest
(*args, **kwargs)[source]¶ Bases:
heat_integrationtests.functional.functional_base.FunctionalTestsBase
-
template
= ‘\nheat_template_version: 2014-10-16\n\nresources:\n random_group:\n type: OS::Heat::AutoScalingGroup\n properties:\n cooldown: 0\n desired_capacity: 3\n max_size: 5\n min_size: 2\n resource:\n type: OS::Heat::RandomString\n\n scale_up_policy:\n type: OS::Heat::ScalingPolicy\n properties:\n adjustment_type: change_in_capacity\n auto_scaling_group_id: { get_resource: random_group }\n scaling_adjustment: 1\n\n scale_down_policy:\n type: OS::Heat::ScalingPolicy\n properties:\n adjustment_type: change_in_capacity\n auto_scaling_group_id: { get_resource: random_group }\n scaling_adjustment: -1\n\noutputs:\n all_values:\n value: {get_attr: [random_group, outputs_list, value]}\n value_0:\n value: {get_attr: [random_group, resource.0.value]}\n value_1:\n value: {get_attr: [random_group, resource.1.value]}\n value_2:\n value: {get_attr: [random_group, resource.2.value]}\n asg_size:\n value: {get_attr: [random_group, current_size]}\n’¶
-
template_nested
= ‘\nheat_template_version: 2014-10-16\n\nresources:\n random_group:\n type: OS::Heat::AutoScalingGroup\n properties:\n desired_capacity: 3\n max_size: 5\n min_size: 2\n resource:\n type: randomstr.yaml\n\noutputs:\n all_values:\n value: {get_attr: [random_group, outputs_list, random_str]}\n value_0:\n value: {get_attr: [random_group, resource.0.random_str]}\n value_1:\n value: {get_attr: [random_group, resource.1.random_str]}\n value_2:\n value: {get_attr: [random_group, resource.2.random_str]}\n’¶
-
template_randomstr
= ‘\nheat_template_version: 2013-05-23\n\nresources:\n random_str:\n type: OS::Heat::RandomString\n\noutputs:\n random_str:\n value: {get_attr: [random_str, value]}\n’¶
-