From 6450143a19052cbc6746bf0fbb29e1f8a4f60492 Mon Sep 17 00:00:00 2001 From: Russell Vinegar Date: Mon, 4 Nov 2024 17:24:00 -0800 Subject: [PATCH] fix test for gatewayApi --- microservices/gatewayApi/tests/conftest.py | 6 +++++- microservices/gatewayApi/v2/routes/gateway.py | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/microservices/gatewayApi/tests/conftest.py b/microservices/gatewayApi/tests/conftest.py index bdf6a355..e82dac43 100644 --- a/microservices/gatewayApi/tests/conftest.py +++ b/microservices/gatewayApi/tests/conftest.py @@ -150,7 +150,11 @@ class Response: 'hosts': ['myapi.api.gov.bc.ca'], 'ns_attributes': {'perm-domains': ['.api.gov.bc.ca', '.cluster.local']}, 'overrides': { - 'aps.route.session.cookie.enabled': ['myapi.api.gov.bc.ca'] + 'aps.route.session.cookie.enabled': ['myapi.api.gov.bc.ca'], + "aps.route.dataclass.low": [], + "aps.route.dataclass.medium": [], + "aps.route.dataclass.high": [], + "aps.route.dataclass.public": [] }, 'select_tag': 'ns.sescookie.dev' } diff --git a/microservices/gatewayApi/v2/routes/gateway.py b/microservices/gatewayApi/v2/routes/gateway.py index 54030672..c897809b 100644 --- a/microservices/gatewayApi/v2/routes/gateway.py +++ b/microservices/gatewayApi/v2/routes/gateway.py @@ -343,6 +343,7 @@ def write_config(namespace: str) -> object: "aps.route.dataclass.low": get_route_overrides(tempFolder, "aps.route.dataclass.low"), "aps.route.dataclass.medium": get_route_overrides(tempFolder, "aps.route.dataclass.medium"), "aps.route.dataclass.high": get_route_overrides(tempFolder, "aps.route.dataclass.high"), + "aps.route.dataclass.public": get_route_overrides(tempFolder, "aps.route.dataclass.public"), } } log.debug("[%s] - Initiating request to kube API %s" % (dp, route_payload))