File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ async def validate_kong_config(config: dict) -> ValidationResponse:
37
37
message = "Gateway configuration is compatible with Kong 3."
38
38
else :
39
39
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 "
41
41
"APS will soon be updated to use Kong Gateway version 3.\n "
42
42
"Kong 3 requires that regular expressions in route paths start with a '~' character.\n \n "
43
43
"For more information, please visit:\n "
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ def test_validate_kong3_compatibility_fail(mock_convert):
60
60
assert response .status_code == 200
61
61
data = response .json ()
62
62
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" ]
64
64
assert "example-route" in data ["failed_routes" ]
65
65
assert data ["kong3_output" ]["services" ][0 ]["routes" ][0 ]["paths" ][0 ].startswith ("~" )
66
66
Original file line number Diff line number Diff line change @@ -315,7 +315,7 @@ def json(self):
315
315
message = (
316
316
"Gateway configuration is compatible with Kong 3."
317
317
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 "
319
319
"APS will soon be updated to use Kong Gateway version 3.\n "
320
320
"Kong 3 requires that regular expressions in route paths start with a '~' character.\n \n "
321
321
"For more information, please visit:\n "
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ def test_kong3_compatibility_warning(client):
197
197
198
198
# Verify warning message and failed routes are in results
199
199
results = response_data ["results" ]
200
- assert "WARNING: Kong 3 incompatible routes found" in results
200
+ assert "Kong 3 incompatible routes found" in results
201
201
assert "route-1" in results
202
202
assert "route-2" in results
203
203
# Routes should only be listed once even if multiple incompatible paths
You can’t perform that action at this time.
0 commit comments