Fix traefik config filename

Traefik config file names are of format
juju_ingress_ingress_<id>_<app>.yaml for
ingress interface. However if traefik_route
interface is used, the file name format
is juju_ingress_traefik-route_<id>_<app>.yamlwq

In tempest tests, wait_for_traefik, change the
filename format to support both ingress and
traefik-route interfaces.
This commit is contained in:
Hemanth Nakkina
2023-11-03 13:17:49 +05:30
parent 18e735ce6d
commit 6d9d712310
+1 -1
View File
@@ -198,7 +198,7 @@ class TempestTestScaleK8SBase(TempestTestBase):
"determine when traefik has processed all requests")
units_count = len(zaza.model.get_units(application_name))
container_cmd = (
"cat /opt/traefik/juju/juju_ingress_ingress_*_{}.yaml").format(
"cat /opt/traefik/juju/juju_ingress_*_*_{}.yaml").format(
application_name)
container_name = "traefik"
for unit in zaza.model.get_units("traefik"):