Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/e2e/provisioning_e2e/pytest.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[pytest]
timeout=30
timeout=60
testdox_format=plaintext
asyncio_mode=auto
addopts=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
delete_directories_certs_created_from_pipeline,
)


logging.basicConfig(level=logging.DEBUG)


Expand All @@ -53,6 +52,12 @@
"group_intermediate": [3, 4, 5],
"group_ca": [6, 7, 8],
}
# Allow 40 seconds per serial registration and derive each group limit from its device list.
REGISTRATION_TIMEOUT_PER_DEVICE = 40


def group_registration_timeout(group_type):
return REGISTRATION_TIMEOUT_PER_DEVICE * len(type_to_device_indices[group_type])


@pytest.fixture(scope="module", autouse=True)
Expand Down Expand Up @@ -133,6 +138,7 @@ async def test_device_register_with_no_device_id_for_a_x509_individual_enrollmen
"A group of devices get provisioned to the linked IoTHub with device_ids equal to the individual registration_ids inside a group enrollment that has been created with intermediate X509 authentication"
)
@pytest.mark.parametrize("protocol", ["mqtt", "mqttws"])
@pytest.mark.timeout(group_registration_timeout("group_intermediate"))
async def test_group_of_devices_register_with_no_device_id_for_a_x509_intermediate_authentication_group_enrollment(
protocol,
):
Expand Down Expand Up @@ -196,6 +202,7 @@ async def test_group_of_devices_register_with_no_device_id_for_a_x509_intermedia
"A group of devices get provisioned to the linked IoTHub with device_ids equal to the individual registration_ids inside a group enrollment that has been created with an already uploaded ca cert X509 authentication"
)
@pytest.mark.parametrize("protocol", ["mqtt", "mqttws"])
@pytest.mark.timeout(group_registration_timeout("group_ca"))
async def test_group_of_devices_register_with_no_device_id_for_a_x509_ca_authentication_group_enrollment(
protocol,
):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
delete_directories_certs_created_from_pipeline,
)


logging.basicConfig(level=logging.DEBUG)


Expand All @@ -52,6 +51,12 @@
"group_intermediate": [3, 4, 5],
"group_ca": [6, 7, 8],
}
# Allow 40 seconds per serial registration and derive each group limit from its device list.
REGISTRATION_TIMEOUT_PER_DEVICE = 40


def group_registration_timeout(group_type):
return REGISTRATION_TIMEOUT_PER_DEVICE * len(type_to_device_indices[group_type])


@pytest.fixture(scope="module", autouse=True)
Expand Down Expand Up @@ -132,6 +137,7 @@ def test_device_register_with_no_device_id_for_a_x509_individual_enrollment(prot
"A group of devices get provisioned to the linked IoTHub with device_ids equal to the individual registration_ids inside a group enrollment that has been created with intermediate X509 authentication"
)
@pytest.mark.parametrize("protocol", ["mqtt", "mqttws"])
@pytest.mark.timeout(group_registration_timeout("group_intermediate"))
def test_group_of_devices_register_with_no_device_id_for_a_x509_intermediate_authentication_group_enrollment(
protocol,
):
Expand Down Expand Up @@ -196,6 +202,7 @@ def test_group_of_devices_register_with_no_device_id_for_a_x509_intermediate_aut
"A group of devices get provisioned to the linked IoTHub with device_ids equal to the individual registration_ids inside a group enrollment that has been created with an already uploaded ca cert X509 authentication"
)
@pytest.mark.parametrize("protocol", ["mqtt", "mqttws"])
@pytest.mark.timeout(group_registration_timeout("group_ca"))
def test_group_of_devices_register_with_no_device_id_for_a_x509_ca_authentication_group_enrollment(
protocol,
):
Expand Down