devices.tests.test_revocation.test_device_credential_revocationΒΆ

Tests for the DeviceCredentialRevocation model.

FunctionsΒΆ

test_revoke_certificate_success(...)

Test that a TLS client credential is successfully revoked for a valid issued credential.

test_revoke_certificate_already_revoked(...)

Test that revoking a certificate that is already revoked returns the appropriate message.

test_revoke_certificate_invalid_id()

Test that revoking a certificate with an invalid issued_credential_id fails with the appropriate error.

Module ContentsΒΆ

devices.tests.test_revocation.test_device_credential_revocation.test_revoke_certificate_success(tls_client_credential_instance)[source]ΒΆ

Test that a TLS client credential is successfully revoked for a valid issued credential.

Parameters:

tls_client_credential_instance (dict[str, Any])

Return type:

None

devices.tests.test_revocation.test_device_credential_revocation.test_revoke_certificate_already_revoked(tls_client_credential_instance)[source]ΒΆ

Test that revoking a certificate that is already revoked returns the appropriate message.

Parameters:

tls_client_credential_instance (dict[str, Any])

Return type:

None

devices.tests.test_revocation.test_device_credential_revocation.test_revoke_certificate_invalid_id()[source]ΒΆ

Test that revoking a certificate with an invalid issued_credential_id fails with the appropriate error.

Return type:

None