devices.tests.test_forms.test_device_creation_formsΒΆ
Tests for device creation forms.
ClassesΒΆ
Tests for NoOnboardingCreateForm. |
|
Tests for OnboardingCreateForm. |
|
Tests for RevokeIssuedCredentialForm. |
|
Tests for RevokeDevicesForm. |
|
Tests for DeleteDevicesForm. |
|
Tests for OpcUaGdsPushCreateForm. |
|
Tests for OpcUaGdsPushTruststoreAssociationForm. |
Module ContentsΒΆ
- class devices.tests.test_forms.test_device_creation_forms.TestNoOnboardingCreateForm[source]ΒΆ
Tests for NoOnboardingCreateForm.
- test_valid_form_data(device_instance)[source]ΒΆ
Test form with valid data.
- Parameters:
device_instance (dict[str, Any])
- Return type:
None
- test_duplicate_common_name(device_instance)[source]ΒΆ
Test that duplicate common_name is rejected.
- Parameters:
device_instance (dict[str, Any])
- Return type:
None
- test_form_without_domain()[source]ΒΆ
Test form submission without a domain (domain is optional).
- Return type:
None
- test_multiple_pki_protocols(device_instance)[source]ΒΆ
Test form with multiple PKI protocols selected.
- Parameters:
device_instance (dict[str, Any])
- Return type:
None
- test_save_creates_device(device_instance)[source]ΒΆ
Test that save() method creates a DeviceModel.
- Parameters:
device_instance (dict[str, Any])
- Return type:
None
Test that CMP shared secret is generated when protocol is selected.
- Parameters:
device_instance (dict[str, Any])
- Return type:
None
- class devices.tests.test_forms.test_device_creation_forms.TestOnboardingCreateForm[source]ΒΆ
Tests for OnboardingCreateForm.
- test_valid_form_data(device_instance)[source]ΒΆ
Test form with valid onboarding data.
- Parameters:
device_instance (dict[str, Any])
- Return type:
None
- test_duplicate_common_name(device_instance)[source]ΒΆ
Test that duplicate common_name is rejected in onboarding form.
- Parameters:
device_instance (dict[str, Any])
- Return type:
None
- test_save_creates_device_with_onboarding(device_instance)[source]ΒΆ
Test that save() creates a device with onboarding config.
- Parameters:
device_instance (dict[str, Any])
- Return type:
None
- class devices.tests.test_forms.test_device_creation_forms.TestRevokeIssuedCredentialForm[source]ΒΆ
Tests for RevokeIssuedCredentialForm.
- class devices.tests.test_forms.test_device_creation_forms.TestRevokeDevicesForm[source]ΒΆ
Tests for RevokeDevicesForm.
- class devices.tests.test_forms.test_device_creation_forms.TestDeleteDevicesForm[source]ΒΆ
Tests for DeleteDevicesForm.
- class devices.tests.test_forms.test_device_creation_forms.TestOpcUaGdsPushCreateForm[source]ΒΆ
Tests for OpcUaGdsPushCreateForm.
- test_valid_form_data(device_instance)[source]ΒΆ
Test form with valid data.
- Parameters:
device_instance (dict[str, Any])
- Return type:
None
- class devices.tests.test_forms.test_device_creation_forms.TestOpcUaGdsPushTruststoreAssociationForm[source]ΒΆ
Tests for OpcUaGdsPushTruststoreAssociationForm.