test_device_views_clmΒΆ

Additional tests for CLM POST operations and credential management.

ClassesΒΆ

TestCLMPostOperations

Test POST operations on CLM view.

TestCredentialExpiration

Test credential expiration display in CLM view.

TestCLMContextUrls

Test that CLM view provides correct URL context.

TestDeviceViewSetAPI

Test DeviceViewSet API endpoints.

TestOpcUaGdsCLMView

Test OPC UA GDS CLM view specific functionality.

TestOpcUaGdsPushCLMView

Test OPC UA GDS Push CLM view specific functionality.

TestDeviceTableFiltering

Test device table filtering functionality.

TestNoOnboardingCredentialSections

Test that credential issuance sections show correct protocol status.

TestDeviceCreateOnboardingProtocols

Test device creation with different onboarding protocols.

TestCLMViewWithoutDomain

Test CLM view behavior for devices without domain.

Module ContentsΒΆ

class test_device_views_clm.TestCLMPostOperations[source]ΒΆ

Test POST operations on CLM view.

test_clm_post_handles_form_submission(admin_client, domain_instance)[source]ΒΆ

Test that POST to CLM view processes form correctly.

Parameters:
  • admin_client (django.test.Client)

  • domain_instance (dict[str, Any])

Return type:

None

class test_device_views_clm.TestCredentialExpiration[source]ΒΆ

Test credential expiration display in CLM view.

test_clm_view_has_credentials_context(admin_client, device_instance)[source]ΒΆ

Test that CLM view provides credentials in context.

Parameters:
  • admin_client (django.test.Client)

  • device_instance (dict[str, Any])

Return type:

None

class test_device_views_clm.TestCLMContextUrls[source]ΒΆ

Test that CLM view provides correct URL context.

test_clm_view_provides_main_url(admin_client, device_instance)[source]ΒΆ

Test that CLM view provides main_url in context.

Parameters:
  • admin_client (django.test.Client)

  • device_instance (dict[str, Any])

Return type:

None

test_clm_view_with_est_onboarding_provides_domain_cred_url(admin_client, domain_instance)[source]ΒΆ

Test CLM view with EST onboarding provides domain credential URL.

Parameters:
  • admin_client (django.test.Client)

  • domain_instance (dict[str, Any])

Return type:

None

class test_device_views_clm.TestDeviceViewSetAPI[source]ΒΆ

Test DeviceViewSet API endpoints.

test_device_viewset_list(admin_client, device_instance)[source]ΒΆ

Test API list endpoint for devices.

Parameters:
  • admin_client (django.test.Client)

  • device_instance (dict[str, Any])

Return type:

None

class test_device_views_clm.TestOpcUaGdsCLMView[source]ΒΆ

Test OPC UA GDS CLM view specific functionality.

test_opcua_gds_clm_view_provides_correct_main_url(admin_client, domain_instance)[source]ΒΆ

Test that OPC UA GDS CLM view provides correct main_url.

Parameters:
  • admin_client (django.test.Client)

  • domain_instance (dict[str, Any])

Return type:

None

class test_device_views_clm.TestOpcUaGdsPushCLMView[source]ΒΆ

Test OPC UA GDS Push CLM view specific functionality.

test_opcua_gds_push_clm_view_provides_correct_main_url(admin_client, device_instance_onboarding)[source]ΒΆ

Test that OPC UA GDS Push CLM view provides correct main_url.

Parameters:
  • admin_client (django.test.Client)

  • device_instance_onboarding (dict[str, Any])

Return type:

None

class test_device_views_clm.TestDeviceTableFiltering[source]ΒΆ

Test device table filtering functionality.

test_device_table_with_search_filter(admin_client, device_instance)[source]ΒΆ

Test device table with search filter.

Parameters:
  • admin_client (django.test.Client)

  • device_instance (dict[str, Any])

Return type:

None

class test_device_views_clm.TestNoOnboardingCredentialSections[source]ΒΆ

Test that credential issuance sections show correct protocol status.

test_sections_show_disabled_protocols(admin_client, domain_instance)[source]ΒΆ

Test that sections correctly show disabled protocols.

Parameters:
  • admin_client (django.test.Client)

  • domain_instance (dict[str, Any])

Return type:

None

class test_device_views_clm.TestDeviceCreateOnboardingProtocols[source]ΒΆ

Test device creation with different onboarding protocols.

test_create_device_with_manual_onboarding(admin_client, domain_instance)[source]ΒΆ

Test creating device with MANUAL onboarding protocol.

Parameters:
  • admin_client (django.test.Client)

  • domain_instance (dict[str, Any])

Return type:

None

class test_device_views_clm.TestCLMViewWithoutDomain[source]ΒΆ

Test CLM view behavior for devices without domain.

test_clm_view_device_without_domain_no_issue_urls(admin_client)[source]ΒΆ

Test that device without domain has empty issue credential URLs.

Parameters:

admin_client (django.test.Client)

Return type:

None