setup_wizard.tests.test_views.test_hsmsetupmixinΒΆ
Tests for the HsmSetupMixin class.
ClassesΒΆ
Concrete implementation of HsmSetupMixin for testing purposes. |
|
Test cases for HsmSetupMixin. |
Module ContentsΒΆ
- class setup_wizard.tests.test_views.test_hsmsetupmixin.ConcreteHsmSetupMixin[source]ΒΆ
Bases:
setup_wizard.views.HsmSetupMixin,django.views.generic.FormView[setup_wizard.forms.HsmSetupForm]Concrete implementation of HsmSetupMixin for testing purposes.
- class setup_wizard.tests.test_views.test_hsmsetupmixin.HsmSetupMixinTestCase(methodName='runTest')[source]ΒΆ
Bases:
django.test.TestCaseTest cases for HsmSetupMixin.
- test_validate_hsm_inputs_invalid_module_path()[source]ΒΆ
Test that invalid module path fails validation.
- test_run_hsm_setup_script_success(mock_subprocess)[source]ΒΆ
Test successful HSM setup script execution.
- test_assign_token_to_crypto_storage_softhsm(mock_get_config)[source]ΒΆ
Test assigning SoftHSM token to crypto storage.
- test_raise_called_process_error()[source]ΒΆ
Test raising CalledProcessError with correct parameters.
- test_map_exit_code_to_message_known_codes()[source]ΒΆ
Test mapping of known exit codes to error messages.
- test_handle_hsm_setup_exception_called_process_error()[source]ΒΆ
Test handling of CalledProcessError exception.