Skip to content

Commit

Permalink
tests(smoke): introducing first isolated smoke test: updating tags & …
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe-lyons authored and shirshanka committed Nov 6, 2021
1 parent 3493582 commit 697f870
Show file tree
Hide file tree
Showing 8 changed files with 929 additions and 672 deletions.
9 changes: 9 additions & 0 deletions metadata-ingestion/src/datahub/cli/cli_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import requests
import yaml
from pydantic import BaseModel, ValidationError
from requests.sessions import Session

log = logging.getLogger(__name__)

Expand Down Expand Up @@ -179,6 +180,14 @@ def post_delete_endpoint(
session, gms_host = get_session_and_host()
url = gms_host + path

return post_delete_endpoint_with_session_and_url(session, url, payload_obj)


def post_delete_endpoint_with_session_and_url(
session: Session,
url: str,
payload_obj: dict,
) -> typing.Tuple[str, int]:
payload = json.dumps(payload_obj)

response = session.post(url, payload)
Expand Down
Loading

0 comments on commit 697f870

Please sign in to comment.