Skip to content

Commit

Permalink
fix test for gatewayApi
Browse files Browse the repository at this point in the history
  • Loading branch information
rustyjux committed Nov 5, 2024
1 parent 7689124 commit 6450143
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion microservices/gatewayApi/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Expand Down
1 change: 1 addition & 0 deletions microservices/gatewayApi/v2/routes/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 6450143

Please sign in to comment.