Remove assertion on number of loadbalancers

Heat charm when configured with traefik-route
can have multiple loadbalancers (for heat-api
and heat-api-cfn).
So remove the assertion in wait_for_traefik on
number of loadbalancers. Check on number of units
against number of servers should be sufficient.
This commit is contained in:
Hemanth Nakkina
2023-11-03 15:21:53 +05:30
parent d6ada8976c
commit 82ba0944d5

View File

@@ -214,7 +214,6 @@ class TempestTestScaleK8SBase(TempestTestBase):
loadBalancers = [
lb['loadBalancer']
for lb in service_config['http']['services'].values()]
assert len(loadBalancers) == 1
unit_count_in_lb = len(loadBalancers[0]['servers'])
logging.info("Traefik LB server count: {} unit count: {}".format(
unit_count_in_lb,