Skip to content

Commit

Permalink
Update how we get subscription handler endpoint in integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
ceholden committed Dec 12, 2024
1 parent c718a27 commit 88f909e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions integration_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,12 @@ def db_session(monkeypatch, ssm_parameter: Callable[[str], str]) -> Iterable[Ses


@pytest.fixture
def link_subscription_endpoint_url(ssm_parameter: Callable[[str], str]):
return ssm_parameter("link_subscription_endpoint_url")
def link_subscription_endpoint_url(ssm_client: SSMClient, identifier: str):
qname = f"/hls-s2-downloader-serverless/{identifier}/link_subscription_endpoint_url"
result = ssm_client.get_parameter(Name=qname)
value = result["Parameter"].get("Value")
assert value is not None, f"No such SSM parameter: {qname}"
return value


@pytest.fixture
Expand Down

0 comments on commit 88f909e

Please sign in to comment.