diff --git a/vmware_nsx_tempest_plugin/tests/nsxv3/scenario/test_octavia_loadbalancers.py b/vmware_nsx_tempest_plugin/tests/nsxv3/scenario/test_octavia_loadbalancers.py index 8702aeb..3d959df 100644 --- a/vmware_nsx_tempest_plugin/tests/nsxv3/scenario/test_octavia_loadbalancers.py +++ b/vmware_nsx_tempest_plugin/tests/nsxv3/scenario/test_octavia_loadbalancers.py @@ -593,3 +593,66 @@ class OctaviaRoundRobin(feature_manager.FeatureManager): max_retries=self.hm_max_retries, delay=self.hm_delay) self.check_project_lbaas() + + @decorators.attr(type='nsxv3') + @decorators.idempotent_id('c5ac8546-6867-4b7a-8704-3844b11b1b43') + def test_verify_octavia_lb_vip_net_id_ROUND_ROBIN_default_pool(self): + """ + This testcase is for verifying the loadbalancer with net-id and + the pool is created using lb option and attached to a listener + with default-pool option + """ + diction = self.deploy_octavia_topology() + self.start_web_servers(constants.HTTP_PORT) + net_id = diction['network']['id'] + self.create_project_octavia(protocol_type="HTTP", protocol_port="80", + lb_algorithm="ROUND_ROBIN", + vip_net_id=net_id, hm_type='PING', + timeout=self.hm_timeout, + max_retries=self.hm_max_retries, + delay=self.hm_delay, default_pool=True) + self.check_project_lbaas() + + @decorators.attr(type='nsxv3') + @decorators.idempotent_id('c5ac8546-6867-4b7a-8704-3844b11a1b34') + def test_verify_octavia_lb_vip_subnet_id_rr_default_pool(self): + """ + This testcase is for verifying the loadbalancer with subnet-id and + the pool is created using lb option and attached to a listener + with default-pool option + + """ + diction = self.deploy_octavia_topology() + self.start_web_servers(constants.HTTP_PORT) + subnet_id = diction['subnet']['subnet']['id'] + self.create_project_octavia(protocol_type="HTTP", protocol_port="80", + lb_algorithm="ROUND_ROBIN", + vip_subnet_id=subnet_id, hm_type='PING', + timeout=self.hm_timeout, + max_retries=self.hm_max_retries, + delay=self.hm_delay, default_pool=True) + self.check_project_lbaas() + + @decorators.attr(type='nsxv3') + @decorators.idempotent_id('c5ac8546-6867-4b7a-8704-3843a11b1a34') + def test_verify_octavia_lb_port_id_rr_default_pool(self): + """ + This testcase is for verifying the loadbalancer with port-id and + the pool is created using lb option and attached to a listener + with default-pool option + + """ + diction = self.deploy_octavia_topology() + self.start_web_servers(constants.HTTP_PORT) + net_id = diction['network']['id'] + port_id = self.cmgr_adm.ports_client.create_port( + network_id=net_id)['port']['id'] + self.addCleanup(test_utils.call_and_ignore_notfound_exc, + self.cmgr_adm.ports_client.delete_port, port_id) + self.create_project_octavia(protocol_type="HTTP", protocol_port="80", + lb_algorithm="ROUND_ROBIN", + vip_port_id=port_id, hm_type='PING', + timeout=self.hm_timeout, + max_retries=self.hm_max_retries, + delay=self.hm_delay, default_pool=True) + self.check_project_lbaas()