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
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@
import os
import uuid

from scripts.create_x509_chain_pipeline import (
from scripts.create_x509_chain_crypto import (
before_cert_creation_from_pipeline,
call_intermediate_cert_creation_from_pipeline,
create_device_certs,
call_intermediate_cert_and_device_cert_creation_from_pipeline,
delete_directories_certs_created_from_pipeline,
)

Expand Down Expand Up @@ -58,14 +57,11 @@
def before_all_tests(request):
logging.info("set up certificates before cert related tests")
before_cert_creation_from_pipeline()
call_intermediate_cert_creation_from_pipeline(
common_name=intermediate_common_name,
call_intermediate_cert_and_device_cert_creation_from_pipeline(
intermediate_common_name=intermediate_common_name,
device_common_name=device_common_name,
ca_password=os.getenv("PROVISIONING_ROOT_PASSWORD"),
intermediate_password=intermediate_password,
)
create_device_certs(
common_name=device_common_name,
intermediate_password=intermediate_password,
device_password=device_password,
device_count=8,
)
Expand Down
16 changes: 6 additions & 10 deletions azure_provisioning_e2e/tests/test_sync_certificate_enrollments.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@
import os
import uuid

from scripts.create_x509_chain_pipeline import (
from scripts.create_x509_chain_crypto import (
before_cert_creation_from_pipeline,
call_intermediate_cert_creation_from_pipeline,
create_device_certs,
call_intermediate_cert_and_device_cert_creation_from_pipeline,
delete_directories_certs_created_from_pipeline,
)

Expand Down Expand Up @@ -56,16 +55,13 @@
def before_all_tests(request):
logging.info("set up certificates before cert related tests")
before_cert_creation_from_pipeline()
call_intermediate_cert_creation_from_pipeline(
common_name=intermediate_common_name,
call_intermediate_cert_and_device_cert_creation_from_pipeline(
intermediate_common_name=intermediate_common_name,
device_common_name=device_common_name,
ca_password=os.getenv("PROVISIONING_ROOT_PASSWORD"),
intermediate_password=intermediate_password,
)
create_device_certs(
common_name=device_common_name,
intermediate_password=intermediate_password,
device_password=device_password,
device_count=certificate_count,
device_count=8,
)

def after_module():
Expand Down
Loading