Skip to content

Commit

Permalink
Add relation NRF TLS relation in setup
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielArndt committed Oct 4, 2023
1 parent 18680c3 commit c3860c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/integration/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class TestUDROperatorCharm:
async def setup(self, ops_test: OpsTest):
await ops_test.model.set_config({"update-status-hook-interval": "5s"}) # type: ignore[union-attr] # noqa: E501
await self._deploy_mongodb(ops_test)
await self._deploy_sdcore_nrf_operator(ops_test)
await self._deploy_tls_provider(ops_test)
await self._deploy_sdcore_nrf_operator(ops_test)

@pytest.fixture(scope="module")
@pytest.mark.abort_on_fail
Expand Down Expand Up @@ -68,6 +68,9 @@ async def _deploy_sdcore_nrf_operator(ops_test: OpsTest):
await ops_test.model.add_relation( # type: ignore[union-attr]
relation1=DB_APPLICATION_NAME, relation2=NRF_APPLICATION_NAME
)
await ops_test.model.add_relation( # type: ignore[union-attr]
relation1=TLS_PROVIDER_CHARM_NAME, relation2=NRF_APPLICATION_NAME
)

@pytest.mark.abort_on_fail
async def test_wait_for_blocked_status(self, ops_test: OpsTest, setup, build_and_deploy_charm):
Expand All @@ -83,9 +86,6 @@ async def test_relate_and_wait_for_idle(
await ops_test.model.add_relation( # type: ignore[union-attr]
relation1=f"{APPLICATION_NAME}:fiveg_nrf", relation2=NRF_APPLICATION_NAME
)
await ops_test.model.add_relation( # type: ignore[union-attr]
relation1=f"{NRF_APPLICATION_NAME}:certificates", relation2=TLS_PROVIDER_CHARM_NAME
)
await ops_test.model.add_relation( # type: ignore[union-attr]
relation1=f"{APPLICATION_NAME}:certificates",
relation2=f"{TLS_PROVIDER_CHARM_NAME}:certificates",
Expand Down

0 comments on commit c3860c5

Please sign in to comment.