Skip to content

Commit

Permalink
evilly enable log on unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Oct 12, 2023
1 parent fcf2a9d commit 841a781
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/test_mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
# SPDX-License-Identifier: Apache-2.0.

from awscrt.io import ClientBootstrap, ClientTlsContext, DefaultHostResolver, EventLoopGroup, Pkcs11Lib, TlsContextOptions
from awscrt import http
from awscrt import http, io
from awscrt.mqtt import Client, Connection, QoS, Will, OnConnectionClosedData, OnConnectionFailureData, OnConnectionSuccessData, ConnectReturnCode
from test import NativeResourceTest
from concurrent.futures import Future
import os
import unittest
import uuid
import time
import sys

TIMEOUT = 100.0

Expand Down Expand Up @@ -72,6 +73,8 @@ def test_connect_disconnect(self):
connection.disconnect().result(TIMEOUT)

def test_ecc_connect_disconnect(self):
io.init_logging(io.LogLevel.Debug, "stdout")

test_input_endpoint = _get_env_variable("AWS_TEST_MQTT311_IOT_CORE_HOST")
test_input_cert = _get_env_variable("AWS_TEST_MQTT311_IOT_CORE_ECC_CERT")
test_input_key = _get_env_variable("AWS_TEST_MQTT311_IOT_CORE_ECC_KEY")
Expand All @@ -84,6 +87,7 @@ def test_ecc_connect_disconnect(self):
connection.disconnect().result(TIMEOUT)

def test_pkcs11(self):

test_input_endpoint = _get_env_variable("AWS_TEST_MQTT311_IOT_CORE_HOST")
test_input_pkcs11_lib = _get_env_variable("AWS_TEST_PKCS11_LIB")
test_input_pkcs11_pin = _get_env_variable("AWS_TEST_PKCS11_PIN")
Expand Down

0 comments on commit 841a781

Please sign in to comment.