cfssl.tests package

Submodules

cfssl.tests.test_certificate_request module

class cfssl.tests.test_certificate_request.TestCertificateRequest(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]
test_to_api()[source]

It should return the correctly compatible obj

test_to_api_partial()[source]

It should handle when no CN and no key are defined

cfssl.tests.test_cfssl module

class cfssl.tests.test_cfssl.TestCFSSL(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]
test_auth_sign(*args, **keywargs)[source]

It should call with proper args

test_bundle(*args, **keywargs)[source]

It should call with proper args

test_call_error(*args, **keywargs)[source]

It should raise on non-success response

test_call_request(*args, **keywargs)[source]

It should call requests with proper args

test_call_success(*args, **keywargs)[source]

It should return result on success response

test_info(*args, **keywargs)[source]

It should call with proper args

test_init_ca(*args, **keywargs)[source]

It should call with proper args

test_log_messages(*args, **keywargs)[source]

It should return result on success response

test_new_cert(*args, **keywargs)[source]

It should call with proper args

test_new_key(*args, **keywargs)[source]

It should call with proper args

test_revoke(*args, **keywargs)[source]

It should call with proper args

test_scan(*args, **keywargs)[source]

It should call with proper args

test_scan_info(*args, **keywargs)[source]

It should call with proper args

test_sign(*args, **keywargs)[source]

It should call with proper args

test_uri_base_http()[source]

It should have an HTTP URI if someone decides to be crazy

test_uri_base_https()[source]

It should have an HTTP URI by default

cfssl.tests.test_config_client module

class cfssl.tests.test_config_client.TestConfigClient(methodName='runTest')[source]

Bases: cfssl.tests.test_config_mixer.TestConfigMixer

model
setUp()[source]
test_to_api()[source]

It should return the correctly compatible obj

cfssl.tests.test_config_key module

class cfssl.tests.test_config_key.TestConfigKey(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]
test_to_api()[source]

It should return the correctly compatible obj

cfssl.tests.test_config_mixer module

class cfssl.tests.test_config_mixer.TestConfigMixer(methodName='runTest')[source]

Bases: unittest.case.TestCase

model
setUp()[source]
test_to_api()[source]

It should return the correctly compatible obj

cfssl.tests.test_host module

class cfssl.tests.test_host.TestHost(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]
test_to_api()[source]

It should return the correctly compatible obj

test_to_api_no_port()[source]

It should return the correctly compatible obj

cfssl.tests.test_policy_auth module

class cfssl.tests.test_policy_auth.TestPolicyAuth(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]
test_to_api()[source]

It should return the correctly compatible obj

cfssl.tests.test_policy_sign module

class cfssl.tests.test_policy_sign.TestPolicySign(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]
test_to_api()[source]

It should return the correctly compatible obj

cfssl.tests.test_policy_use module

class cfssl.tests.test_policy_use.TestPolicyUse(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]
test_to_api()[source]

It should return the correctly compatible obj

cfssl.tests.test_subject_info module

class cfssl.tests.test_subject_info.TestSubjectInfo(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]
test_to_api()[source]

It should return the correctly compatible obj

cfssl.tests.test_utils module

class cfssl.tests.test_utils.TestUtils(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_to_api_native_structure()[source]

It should return the same object when it doesn’t implement to_api.

test_to_api_object()[source]

It should delegate to to_api() method of a supported object.

Module contents