Skip to content

Commit d6788c1

Browse files
committed
cert and key added to test
1 parent 8880193 commit d6788c1

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

test/test_mqtt5.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,8 @@ def test_connect_with_incorrect_basic_authentication_credentials(self):
629629

630630
def test_double_client_id_failure(self):
631631
input_host_name = _get_env_variable("AWS_TEST_MQTT5_IOT_CORE_HOST")
632+
input_cert = _get_env_variable("AWS_TEST_MQTT5_IOT_CORE_RSA_CERT")
633+
input_key = _get_env_variable("AWS_TEST_MQTT5_IOT_CORE_RSA_KEY")
632634
input_port = int(8883)
633635
shared_client_id = create_client_id()
634636

@@ -638,6 +640,11 @@ def test_double_client_id_failure(self):
638640
port=input_port,
639641
connect_options=connect_options
640642
)
643+
tls_ctx_options = io.TlsContextOptions.create_client_with_mtls_from_path(
644+
input_cert,
645+
input_key
646+
)
647+
client_options.tls_ctx = io.ClientTlsContext(tls_ctx_options)
641648
callbacks = Mqtt5TestCallbacks()
642649
client1 = self._create_client(client_options=client_options, callbacks=callbacks)
643650

0 commit comments

Comments
 (0)