Skip to content

Commit

Permalink
[DPE-3333] Add integration test for broken tls (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
Batalex authored Apr 18, 2024
1 parent 085775d commit 364edab
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/integration/test_tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,3 +270,13 @@ async def test_pod_reschedule_tls(ops_test: OpsTest):
idle_period=30,
timeout=2000,
)


async def test_tls_removed(ops_test: OpsTest):
await ops_test.model.remove_application(TLS_NAME, block_until_done=True)
await ops_test.model.wait_for_idle(
apps=[APP_NAME, ZK_NAME], timeout=3600, idle_period=30, status="active"
)

kafka_address = await get_address(ops_test=ops_test, app_name=APP_NAME)
assert not check_tls(ip=kafka_address, port=SECURITY_PROTOCOL_PORTS["SASL_SSL"].client)

0 comments on commit 364edab

Please sign in to comment.