Skip to content

Commit 10cf41b

Browse files
committed
match warning format to existing version warning
1 parent 23bf977 commit 10cf41b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

microservices/compatibilityApi/routers/routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async def validate_kong_config(config: dict) -> ValidationResponse:
3737
message = "Gateway configuration is compatible with Kong 3."
3838
else:
3939
message = (
40-
"\033[1;33m⚠️ WARNING: Kong 3 incompatible routes found.\033[0m\n\n" # Yellow bold text
40+
"\033[1;33m[ Warning ]\033[0m \033[34mKong 3 incompatible routes found.\033[0m\n"
4141
"APS will soon be updated to use Kong Gateway version 3.\n"
4242
"Kong 3 requires that regular expressions in route paths start with a '~' character.\n\n"
4343
"For more information, please visit:\n"

microservices/compatibilityApi/tests/test_routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def test_validate_kong3_compatibility_fail(mock_convert):
6060
assert response.status_code == 200
6161
data = response.json()
6262
assert not data["kong3_compatible"]
63-
assert "WARNING: Kong 3 incompatible routes found" in data["message"]
63+
assert "Kong 3 incompatible routes found" in data["message"]
6464
assert "example-route" in data["failed_routes"]
6565
assert data["kong3_output"]["services"][0]["routes"][0]["paths"][0].startswith("~")
6666

microservices/gatewayApi/tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def json(self):
315315
message = (
316316
"Gateway configuration is compatible with Kong 3."
317317
if not has_incompatible else
318-
"\033[1;33m⚠️ WARNING: Kong 3 incompatible routes found.\033[0m\n\n"
318+
"\033[1;33m[ Warning ]\033[0m \033[34mKong 3 incompatible routes found.\033[0m\n"
319319
"APS will soon be updated to use Kong Gateway version 3.\n"
320320
"Kong 3 requires that regular expressions in route paths start with a '~' character.\n\n"
321321
"For more information, please visit:\n"

microservices/gatewayApi/tests/routes/v2/test_gateway.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def test_kong3_compatibility_warning(client):
197197

198198
# Verify warning message and failed routes are in results
199199
results = response_data["results"]
200-
assert "WARNING: Kong 3 incompatible routes found" in results
200+
assert "Kong 3 incompatible routes found" in results
201201
assert "route-1" in results
202202
assert "route-2" in results
203203
# Routes should only be listed once even if multiple incompatible paths

0 commit comments

Comments
 (0)