mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-12 18:47:45 +00:00
fix(cli): don't use /api in gms url (#12083)
This commit is contained in:
parent
355a7e69aa
commit
ff7ac48021
@ -327,6 +327,8 @@ def _ensure_valid_gms_url_acryl_cloud(url: str) -> str:
|
||||
url = f"{url}/gms"
|
||||
elif url.endswith("acryl.io/"):
|
||||
url = f"{url}gms"
|
||||
if url.endswith("acryl.io/api/gms"):
|
||||
url = url.replace("acryl.io/api/gms", "acryl.io/gms")
|
||||
|
||||
return url
|
||||
|
||||
|
||||
@ -66,6 +66,10 @@ def test_fixup_gms_url():
|
||||
assert cli_utils.fixup_gms_url("http://localhost:8080") == "http://localhost:8080"
|
||||
assert cli_utils.fixup_gms_url("http://localhost:8080/") == "http://localhost:8080"
|
||||
assert cli_utils.fixup_gms_url("http://abc.acryl.io") == "https://abc.acryl.io/gms"
|
||||
assert (
|
||||
cli_utils.fixup_gms_url("http://abc.acryl.io/api/gms")
|
||||
== "https://abc.acryl.io/gms"
|
||||
)
|
||||
|
||||
|
||||
def test_guess_frontend_url_from_gms_url():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user