Skip to content

Commit

Permalink
CI: add call to stop async tool when expecting failure (#1651)
Browse files Browse the repository at this point in the history
  • Loading branch information
kgiusti authored Oct 25, 2024
1 parent b1ebb12 commit e2305af
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions tests/system_tests_ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1151,10 +1151,11 @@ def test_ssl_client_profile_update(self):
'allowed_mechs': "EXTERNAL",
'ssl_domain': ssl_domain}
with self.assertRaises(AsyncTestReceiver.TestReceiverException) as exc:
AsyncTestReceiver(f"amqps://localhost:{self.listener1_port}",
source="test/addr",
container_id="FooRx2",
conn_args=conn_args)
atr = AsyncTestReceiver(f"amqps://localhost:{self.listener1_port}",
source="test/addr",
container_id="FooRx2",
conn_args=conn_args)
atr.stop()
self.assertIn("certificate verify failed", str(exc.exception), f"{exc.exception}")

ssl_domain = SSLDomain(SSLDomain.MODE_CLIENT)
Expand All @@ -1165,10 +1166,11 @@ def test_ssl_client_profile_update(self):
'allowed_mechs': "EXTERNAL",
'ssl_domain': ssl_domain}
with self.assertRaises(AsyncTestReceiver.TestReceiverException) as exc:
AsyncTestReceiver(f"amqps://localhost:{self.listener2_port}",
source="test/addr",
container_id="FooRx3",
conn_args=conn_args)
atr = AsyncTestReceiver(f"amqps://localhost:{self.listener2_port}",
source="test/addr",
container_id="FooRx3",
conn_args=conn_args)
atr.stop()
self.assertIn("certificate verify failed", str(exc.exception), f"{exc.exception}")

#
Expand Down

0 comments on commit e2305af

Please sign in to comment.