datahub/smoke-test/tests/telemetry/telemetry_test.py

14 lines
327 B
Python
Raw Normal View History

import json
from datahub.cli.cli_utils import get_aspects_for_entity
def test_no_clientID():
client_id_urn = "urn:li:telemetry:clientId"
aspect = ["telemetryClientId"]
2023-10-10 16:08:34 +05:30
res_data = json.dumps(
get_aspects_for_entity(entity_urn=client_id_urn, aspects=aspect, typed=False)
)
assert res_data == "{}"