Skip to content

Commit

Permalink
Add access-certificates integration
Browse files Browse the repository at this point in the history
  • Loading branch information
saltiyazan committed Oct 11, 2024
1 parent 673d83f commit db0d7dd
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/integration/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,10 @@ async def test_given_application_deployed_when_related_to_traefik_k8s_then_all_s
relation1=f"{TLS_PROVIDER_APPLICATION_NAME}:certificates",
relation2=f"{TRAEIK_K8S_APPLICATION_NAME}",
)
await ops_test.model.integrate(
relation1=f"{TLS_PROVIDER_APPLICATION_NAME}:certificates",
relation2=f"{APP_NAME}:access-certificates",
)
await ops_test.model.integrate(
relation1=f"{APP_NAME}:ingress",
relation2=f"{TRAEIK_K8S_APPLICATION_NAME}:ingress",
Expand All @@ -217,13 +221,10 @@ async def test_given_application_deployed_when_related_to_traefik_k8s_then_all_s
timeout=1000,
raise_on_error=True,
)
endpoint = await get_external_notary_endpoint(ops_test)
assert ops_test.model
admin_credentials = await get_notary_credentials(ops_test)
token = admin_credentials.get("token")
assert token
endpoint = await get_external_notary_endpoint(ops_test)
client = Notary(url=endpoint)
assert client.token_is_valid(token)
assert client.is_api_available()


async def get_notary_endpoint(ops_test: OpsTest) -> str:
Expand Down

0 comments on commit db0d7dd

Please sign in to comment.