Skip to content

Commit

Permalink
fix: fix apigw version validate
Browse files Browse the repository at this point in the history
  • Loading branch information
Han-Ya-Jun committed Jun 6, 2024
1 parent 33306f8 commit 59c2aae
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions sdks/apigw-manager/tests/apigw_manager/apigw/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,16 @@ def test_jwt_provider_cls(self, settings, faker):
("kwargs", "expected"),
[
(
{},
"",
{},
"",
),
(
{"host": "http://apigw.svc/api/test/prod/"},
"http://apigw.svc/api/test/prod",
{"host": "http://apigw.svc/api/test/prod/"},
"http://apigw.svc/api/test/prod",
),
(
{"host": "http://apigw.svc/api/test/prod"},
"http://apigw.svc/api/test/prod",
{"host": "http://apigw.svc/api/test/prod"},
"http://apigw.svc/api/test/prod",
),
],
)
Expand All @@ -77,24 +77,24 @@ def test_host_by_kwargs(self, settings, kwargs, expected):
("fake_settings", "expected"),
[
(
{},
"",
{},
"",
),
(
{
"BK_APIGATEWAY_API_STAGE_URL": "http://apigw.svc/api/bk-apigateway/prod",
},
"http://apigw.svc/api/bk-apigateway/prod",
{
"BK_APIGATEWAY_API_STAGE_URL": "http://apigw.svc/api/bk-apigateway/prod",
},
"http://apigw.svc/api/bk-apigateway/prod",
),
(
{"BK_API_URL_TMPL": "http://apigw.svc/api/{api_name}/"},
"http://apigw.svc/api/bk-apigateway/prod",
{"BK_API_URL_TMPL": "http://apigw.svc/api/{api_name}/"},
"http://apigw.svc/api/bk-apigateway/prod",
),
(
{
"BK_API_URL_TMPL": "http://apigw.svc/api/{api_name}",
},
"http://apigw.svc/api/bk-apigateway/prod",
{
"BK_API_URL_TMPL": "http://apigw.svc/api/{api_name}",
},
"http://apigw.svc/api/bk-apigateway/prod",
),
],
)
Expand Down

0 comments on commit 59c2aae

Please sign in to comment.