setup_wizard.tests.test_views.test_setupwizardcryptostorageviewΒΆ
Tests for the SetupWizardCryptoStorageView.
ClassesΒΆ
Test cases for SetupWizardCryptoStorageView. |
Module ContentsΒΆ
- class setup_wizard.tests.test_views.test_setupwizardcryptostorageview.SetupWizardCryptoStorageViewTestCase(methodName='runTest')[source]ΒΆ
Bases:
django.test.TestCaseTest cases for SetupWizardCryptoStorageView.
- test_dispatch_non_docker_redirects_to_login(mock_get_state)[source]ΒΆ
Test that dispatch redirects to login when not in Docker container.
- test_dispatch_wrong_wizard_state_redirects(mock_redirect, mock_get_state)[source]ΒΆ
Test that dispatch redirects when wizard state is incorrect.
- test_dispatch_correct_wizard_state_allows_access(mock_get_state)[source]ΒΆ
Test that dispatch allows access when wizard state is correct.
- test_get_request_renders_form(mock_get_state)[source]ΒΆ
Test that a GET request renders the form correctly.
- test_form_valid_software_storage_success(mock_execute, mock_get_state)[source]ΒΆ
Test successful form submission with SOFTWARE storage type.
- test_form_valid_softhsm_storage_success(mock_execute, mock_get_state)[source]ΒΆ
Test successful form submission with SOFTHSM storage type.
- test_form_valid_physical_hsm_storage_not_supported(mock_execute, mock_get_state)[source]ΒΆ
Test form submission with PHYSICAL_HSM storage type shows coming soon message.
- test_form_valid_script_failure(mock_execute, mock_get_state)[source]ΒΆ
Test form submission when script execution fails.
- test_form_valid_script_not_found(mock_execute, mock_get_state)[source]ΒΆ
Test form submission when script is not found.
- test_form_valid_unexpected_exception(mock_execute, mock_get_state)[source]ΒΆ
Test form submission when unexpected exception occurs.
- test_form_invalid_shows_error_message(mock_get_state)[source]ΒΆ
Test that invalid form submission shows error message.
- test_map_exit_code_to_message_known_codes()[source]ΒΆ
Test mapping of known exit codes to error messages.
- test_form_saves_config_to_database(mock_execute, mock_get_state)[source]ΒΆ
Test that form submission saves configuration to database.
- test_storage_type_routing_logic(mock_execute, mock_get_state)[source]ΒΆ
Test that different storage types route to correct next steps.
- test_inheritance_structure(mock_get_state)[source]ΒΆ
Test that view properly inherits from required mixins.
- test_success_message_contains_storage_type_display(mock_execute, mock_get_state)[source]ΒΆ
Test that success message contains human-readable storage type.
- test_logger_integration(mock_execute, mock_get_state)[source]ΒΆ
Test that view properly logs operations using client approach.
- test_script_parameters_format()[source]ΒΆ
Test that storage type values are passed correctly to the script.