fix(test): url encode urn (#13626)

This commit is contained in:
Aseem Bansal 2025-05-27 12:00:13 +05:30 committed by GitHub
parent 79ff05abcd
commit 2b2f6e7d82
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,3 +1,5 @@
from urllib.parse import quote
import pytest
from tests.test_result_msg import add_datahub_stats
@ -145,7 +147,8 @@ def test_openapi_v3_entity(auth_session, entity_type):
first_urn = entities[0]["entity"]["urn"]
url = f"{BASE_URL_V3}/entity/{entity_type}/{first_urn}"
encoded_urn = quote(first_urn, safe="")
url = f"{BASE_URL_V3}/entity/{entity_type}/{encoded_urn}"
response = auth_session.get(url, headers=default_headers)
response.raise_for_status()
actual_data = response.json()