Mark Vanderwiel | 6d8e086 | 2015-10-15 12:51:07 -0500 | [diff] [blame] | 1 | # |
| 2 | # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 3 | # not use this file except in compliance with the License. You may obtain |
| 4 | # a copy of the License at |
| 5 | # |
| 6 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | # |
| 8 | # Unless required by applicable law or agreed to in writing, software |
| 9 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 10 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 11 | # License for the specific language governing permissions and limitations |
| 12 | # under the License. |
| 13 | |
| 14 | from heat_integrationtests.scenario import scenario_base |
| 15 | |
| 16 | |
| 17 | class AutoscalingLoadBalancerv2Test(scenario_base.ScenarioTestsBase): |
| 18 | """The class is responsible for testing ASG + LBv2 scenario. |
| 19 | |
| 20 | The very common use case tested is an autoscaling group |
| 21 | of some web application servers behind a loadbalancer. |
| 22 | """ |
| 23 | |
| 24 | def setUp(self): |
| 25 | super(AutoscalingLoadBalancerv2Test, self).setUp() |
| 26 | self.template_name = 'test_autoscaling_lbv2_neutron.yaml' |
| 27 | self.app_server_template_name = 'app_server_lbv2_neutron.yaml' |
| 28 | self.webapp_template_name = 'netcat-webapp.yaml' |
| 29 | if not self.is_network_extension_supported('lbaasv2'): |
| 30 | self.skipTest('LBaasv2 extension not available, skipping') |
| 31 | |
| 32 | def test_autoscaling_loadbalancer_neutron(self): |
| 33 | """Check work of AutoScaing and Neutron LBaaS v2 resource in Heat. |
| 34 | |
| 35 | The scenario is the following: |
| 36 | 1. Launch a stack with a load balancer and autoscaling group |
| 37 | of one server, wait until stack create is complete. |
| 38 | 2. Check that there is only one distinctive response from |
| 39 | loadbalanced IP. |
| 40 | 3. Signal the scale_up policy, wait until all resources in |
| 41 | autoscaling group are complete. |
| 42 | 4. Check that now there are two distinctive responses from |
| 43 | loadbalanced IP. |
| 44 | """ |
| 45 | |
| 46 | # TODO(MRV): Place holder for AutoScaing and Neutron LBaaS v2 test |
| 47 | pass |