setup_wizard.tests.test_urlsΒΆ

Tests for the setup_wizard URL configuration.

ClassesΒΆ

SetupWizardUrlsTestCase

Test cases for setup_wizard URL patterns.

Module ContentsΒΆ

class setup_wizard.tests.test_urls.SetupWizardUrlsTestCase(methodName='runTest')[source]ΒΆ

Bases: django.test.TestCase

Test cases for setup_wizard URL patterns.

test_app_name_configuration()[source]ΒΆ

Test that app_name is correctly configured.

test_crypto_storage_setup_url()[source]ΒΆ

Test crypto storage setup URL pattern.

test_hsm_setup_url_with_parameter()[source]ΒΆ

Test HSM setup URL pattern with hsm_type parameter.

test_setup_mode_url()[source]ΒΆ

Test setup mode URL pattern.

test_select_tls_server_credential_url()[source]ΒΆ

Test select TLS server credential URL pattern.

test_backup_password_url()[source]ΒΆ

Test backup password URL pattern.

test_generate_tls_server_credential_url()[source]ΒΆ

Test generate TLS server credential URL pattern.

test_restore_options_url()[source]ΒΆ

Test restore options URL pattern.

test_tls_server_credential_apply_url_without_parameter()[source]ΒΆ

Test TLS server credential apply URL without file_format parameter.

test_tls_server_credential_apply_url_with_parameter()[source]ΒΆ

Test TLS server credential apply URL with file_format parameter.

test_tls_server_credential_apply_cancel_url()[source]ΒΆ

Test TLS server credential apply cancel URL pattern.

test_demo_data_url()[source]ΒΆ

Test demo data URL pattern.

test_create_super_user_url()[source]ΒΆ

Test create super user URL pattern.

test_restore_url()[source]ΒΆ

Test restore URL pattern.

test_auto_restore_password_url()[source]ΒΆ

Test auto restore password URL pattern.

test_all_urls_resolve_correctly()[source]ΒΆ

Test that all URL patterns resolve to their correct views.

test_hsm_setup_url_parameter_validation()[source]ΒΆ

Test HSM setup URL with various parameter types.

test_url_pattern_consistency()[source]ΒΆ

Test that URL patterns follow consistent naming conventions.

test_url_namespacing()[source]ΒΆ

Test that all URLs are properly namespaced.

test_url_integration_with_views()[source]ΒΆ

Test that URLs integrate properly with their corresponding views.

test_parameter_extraction_in_urls()[source]ΒΆ

Test that URL parameters are correctly extracted.

test_url_trailing_slash_consistency()[source]ΒΆ

Test that URL patterns are consistent with trailing slashes.

test_special_characters_in_parameters()[source]ΒΆ

Test URL patterns with special characters in parameters.

test_url_pattern_security()[source]ΒΆ

Test that URL patterns don’t allow potentially dangerous input.

test_hsm_setup_requires_parameter()[source]ΒΆ

Test that hsm_setup URL requires hsm_type parameter.

test_tls_server_credential_apply_optional_parameter()[source]ΒΆ

Test that tls_server_credential_apply URL works with and without file_format parameter.

test_url_view_class_consistency()[source]ΒΆ

Test that all URL patterns resolve to the expected view classes.

test_setup_wizard_url_prefix_consistency()[source]ΒΆ

Test that all setup wizard URLs use consistent prefix.