mirror of
https://github.com/laurivosandi/certidude
synced 2025-09-06 22:00:56 +00:00
tests: Lazier const import to prevent early FQDN lookup
This commit is contained in:
@@ -5,7 +5,6 @@ import subprocess
|
||||
import tempfile
|
||||
from base64 import b64encode
|
||||
from datetime import datetime, timedelta
|
||||
from certidude import errors, const
|
||||
from configparser import ConfigParser
|
||||
|
||||
def selinux_fixup(path):
|
||||
@@ -22,6 +21,7 @@ def certidude_request_certificate(server, system_keytab_required, key_path, requ
|
||||
Exchange CSR for certificate using Certidude HTTP API server
|
||||
"""
|
||||
import requests
|
||||
from certidude import errors, const
|
||||
from cryptography import x509
|
||||
from cryptography.hazmat.primitives.asymmetric import rsa, padding
|
||||
from cryptography.hazmat.backends import default_backend
|
||||
|
Reference in New Issue
Block a user