Source code for pki.tests
"""Test module for the PKI app."""
# General constant for tests
[docs]
COMMON_NAME = 'example common name'
[docs]
ORGANIZATION_NAME = 'Example Org'
# GeneralName Values
[docs]
RFC822_EMAIL = 'user@example.com'
[docs]
DNS_NAME_VALUE = 'example.com'
[docs]
URI_VALUE = 'http://example.com'
[docs]
REGISTERED_ID_OID = '1.2.3.4.5'
[docs]
IP_ADDRESS_VALUE = '192.168.0.1'
[docs]
OTHER_NAME_OID = '1.3.6.1.4.1.311.20.2.3'
[docs]
OTHER_NAME_CONTENT = 'Trustpoint to the top'
[docs]
INHIBIT_ANY_POLICY_VALUE = 5
[docs]
INHIBIT_POLICY_MAPPING = 4
[docs]
REQUIRE_EXPLICIT_POLICY = 5
[docs]
KEY_USAGE_FLAGS = {
'digital_signature': True,
'content_commitment': True,
'key_encipherment': True,
'data_encipherment': True,
'key_agreement': True,
'key_cert_sign': True,
'crl_sign': True,
'encipher_only': True,
'decipher_only': True,
}