help_pages.tests.test_devices_help_viewsΒΆ
Test cases for devices help views.
ClassesΒΆ
Test cases for BaseHelpView in devices app. |
|
Test cases for NoOnboardingCmpSharedSecretStrategy. |
|
Test cases for DeviceNoOnboardingCmpSharedSecretHelpView. |
|
Test cases for NoOnboardingEstUsernamePasswordStrategy. |
|
Test cases for DeviceNoOnboardingEstUsernamePasswordHelpView. |
|
Test cases for OnboardingDomainCredentialCmpSharedSecretStrategy. |
|
|
Test cases for DeviceOnboardingDomainCredentialCmpSharedSecretHelpView. |
Test cases for OnboardingDomainCredentialEstUsernamePasswordStrategy. |
|
|
Test cases for DeviceOnboardingDomainCredentialEstUsernamePasswordHelpView. |
|
Test cases for DeviceApplicationCertificateWithCmpDomainCredentialHelpView. |
|
Test cases for DeviceApplicationCertificateWithEstDomainCredentialHelpView. |
Test cases for OpcUaGdsPushOnboardingStrategy. |
|
Test cases for OpcUaGdsPushApplicationCertificateHelpView. |
|
Test cases for OpcUaGdsPushOnboardingHelpView. |
Module ContentsΒΆ
- class help_pages.tests.test_devices_help_views.BaseHelpViewTests(methodName='runTest')[source]ΒΆ
Bases:
django.test.TestCaseTest cases for BaseHelpView in devices app.
- test_make_context_success(mock_get_ip, mock_filter)[source]ΒΆ
Test _make_context creates HelpContext successfully.
- Parameters:
mock_get_ip (unittest.mock.Mock)
mock_filter (unittest.mock.Mock)
- Return type:
None
- test_make_context_no_domain()[source]ΒΆ
Test _make_context raises Http404 when domain is missing.
- Return type:
None
- test_make_context_no_public_key_info(mock_filter)[source]ΒΆ
Test _make_context raises Http404 when public_key_info is missing.
- Parameters:
mock_filter (unittest.mock.Mock)
- Return type:
None
Bases:
django.test.TestCaseTest cases for NoOnboardingCmpSharedSecretStrategy.
Set up test fixtures.
- Return type:
None
Test build_sections for first credential.
- Parameters:
mock_cmp_signer (unittest.mock.Mock)
mock_keygen (unittest.mock.Mock)
mock_profile (unittest.mock.Mock)
- Return type:
None
Test build_sections raises Http404 when no_onboarding_config is missing.
- Return type:
None
Bases:
django.test.TestCaseTest cases for DeviceNoOnboardingCmpSharedSecretHelpView.
Test that strategy is properly configured.
- Return type:
None
- class help_pages.tests.test_devices_help_views.NoOnboardingEstUsernamePasswordStrategyTests(methodName='runTest')[source]ΒΆ
Bases:
django.test.TestCaseTest cases for NoOnboardingEstUsernamePasswordStrategy.
- class help_pages.tests.test_devices_help_views.DeviceNoOnboardingEstUsernamePasswordHelpViewTests(methodName='runTest')[source]ΒΆ
Bases:
django.test.TestCaseTest cases for DeviceNoOnboardingEstUsernamePasswordHelpView.
Bases:
django.test.TestCaseTest cases for OnboardingDomainCredentialCmpSharedSecretStrategy.
Set up test fixtures.
- Return type:
None
Test build_sections creates all required sections.
- Parameters:
mock_keygen (unittest.mock.Mock)
- Return type:
None
Test build_sections raises Http404 when onboarding_config is missing.
- Return type:
None
Bases:
django.test.TestCaseTest cases for DeviceOnboardingDomainCredentialCmpSharedSecretHelpView.
Test that strategy is properly configured.
- Return type:
None
- class help_pages.tests.test_devices_help_views.OnboardingDomainCredentialEstUsernamePasswordStrategyTests(methodName='runTest')[source]ΒΆ
Bases:
django.test.TestCaseTest cases for OnboardingDomainCredentialEstUsernamePasswordStrategy.
- class help_pages.tests.test_devices_help_views.DeviceOnboardingDomainCredentialEstUsernamePasswordHelpViewTests(methodName='runTest')[source]ΒΆ
Bases:
django.test.TestCaseTest cases for DeviceOnboardingDomainCredentialEstUsernamePasswordHelpView.
- class help_pages.tests.test_devices_help_views.DeviceApplicationCertificateWithCmpDomainCredentialHelpViewTests(methodName='runTest')[source]ΒΆ
Bases:
django.test.TestCaseTest cases for DeviceApplicationCertificateWithCmpDomainCredentialHelpView.
- class help_pages.tests.test_devices_help_views.DeviceApplicationCertificateWithEstDomainCredentialHelpViewTests(methodName='runTest')[source]ΒΆ
Bases:
django.test.TestCaseTest cases for DeviceApplicationCertificateWithEstDomainCredentialHelpView.
- class help_pages.tests.test_devices_help_views.OpcUaGdsPushOnboardingStrategyTests(methodName='runTest')[source]ΒΆ
Bases:
django.test.TestCaseTest cases for OpcUaGdsPushOnboardingStrategy.
- test_build_sections_with_domain_credential(mock_reverse, mock_filter)[source]ΒΆ
Test build_sections when device has domain credential.
- Parameters:
mock_reverse (unittest.mock.Mock)
mock_filter (unittest.mock.Mock)
- Return type:
None
- test_build_sections_without_domain_credential(mock_reverse, mock_filter)[source]ΒΆ
Test build_sections when device does not have domain credential.
- Parameters:
mock_reverse (unittest.mock.Mock)
mock_filter (unittest.mock.Mock)
- Return type:
None
- test_build_sections_no_onboarding_config()[source]ΒΆ
Test build_sections raises Http404 when onboarding_config is missing.
- Return type:
None
- test_build_ca_hierarchy_section_with_ca_and_crl(mock_x509, mock_reverse, mock_filter)[source]ΒΆ
Test _build_ca_hierarchy_section with CA and valid CRL.
- Parameters:
mock_x509 (unittest.mock.Mock)
mock_reverse (unittest.mock.Mock)
mock_filter (unittest.mock.Mock)
- Return type:
None
- test_build_ca_hierarchy_section_missing_crl(mock_x509, mock_reverse, mock_filter)[source]ΒΆ
Test _build_ca_hierarchy_section with missing CRL.
- Parameters:
mock_x509 (unittest.mock.Mock)
mock_reverse (unittest.mock.Mock)
mock_filter (unittest.mock.Mock)
- Return type:
None
- test_build_ca_hierarchy_section_no_ca()[source]ΒΆ
Test _build_ca_hierarchy_section when no CA is configured.
- Return type:
None