devices.tests.test_model_delete¶
Test cases for Trustpoint model deletion.
Functions¶
|
Tests that credentials issued to a device are deleted and certificates revoked on device deletion. |
|
Tests that multiple devices can be deleted and pre_delete is called even on a QuerySet of DeviceModels. |
|
Tests that a domain can be deleted only if it has no associated devices. |
|
Tests that a CA can be deleted only if it has no associated domains and no issued unexpired certificates. |
Module Contents¶
- devices.tests.test_model_delete.test_device_delete_revocation(mock_models)[source]¶
Tests that credentials issued to a device are deleted and certificates revoked on device deletion.
- Parameters:
mock_models (dict[str, Any])
- Return type:
None
- devices.tests.test_model_delete.test_multi_device_delete(mock_models)[source]¶
Tests that multiple devices can be deleted and pre_delete is called even on a QuerySet of DeviceModels.
- Parameters:
mock_models (dict[str, Any])
- Return type:
None