Merge "Define new test_endpoints_object_removal config option"
This commit is contained in:
commit
fd9ced52b3
@ -96,6 +96,9 @@ kuryr_k8s_opts = [
|
|||||||
cfg.BoolOpt("test_services_without_selector", default=False,
|
cfg.BoolOpt("test_services_without_selector", default=False,
|
||||||
help="Whether or not service without selector tests will be "
|
help="Whether or not service without selector tests will be "
|
||||||
"running"),
|
"running"),
|
||||||
|
cfg.BoolOpt("test_endpoints_object_removal", default=True,
|
||||||
|
help="Whether to check that LB members are deleted upon "
|
||||||
|
"endpoints object removal or not"),
|
||||||
cfg.BoolOpt("test_configurable_listener_timeouts", default=False,
|
cfg.BoolOpt("test_configurable_listener_timeouts", default=False,
|
||||||
help="Whether or not listener timeout values are "
|
help="Whether or not listener timeout values are "
|
||||||
"configurable"),
|
"configurable"),
|
||||||
|
@ -156,9 +156,10 @@ class TestServiceWithoutSelectorScenario(base.BaseKuryrScenarioTest):
|
|||||||
pool_query = "loadbalancer_id=%s" % klb_crd_id
|
pool_query = "loadbalancer_id=%s" % klb_crd_id
|
||||||
pool = self.wait_for_status(timeout, 15, self.pool_client.list_pools,
|
pool = self.wait_for_status(timeout, 15, self.pool_client.list_pools,
|
||||||
query_params=pool_query)
|
query_params=pool_query)
|
||||||
pool_id = pool[0].get('id')
|
|
||||||
|
|
||||||
# Check that there no pool members after endpoint deletion
|
if CONF.kuryr_kubernetes.test_endpoints_object_removal:
|
||||||
|
# Check that there are no pool members after endpoint deletion
|
||||||
|
pool_id = pool[0].get('id')
|
||||||
self.delete_endpoint(ep_name=self.endpoint.metadata.name,
|
self.delete_endpoint(ep_name=self.endpoint.metadata.name,
|
||||||
namespace=ns_name)
|
namespace=ns_name)
|
||||||
self.check_lb_members(pool_id, 0)
|
self.check_lb_members(pool_id, 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user