features.steps.r_010_r_11_steps¶
Python steps file for R_010 and R_011.
Attributes¶
Functions¶
|
Ensures that the endpoint is accessible before testing. |
|
Simulates a new device before sending a CMP request. |
|
Simulates a new device requesting a certificate via the CMP endpoint. |
|
Ensures that the system issues a certificate for a requesting device. |
|
Ensures that the device successfully stores its issued certificate. |
|
Ensures that a device is onboarded and has an active certificate. |
|
Simulates a device requesting a certificate renewal. |
Ensures that the device updates its certificate upon renewal. |
|
|
Simulates a device with incorrect authentication details. |
|
Simulates an unauthorized device attempting to access the CMP endpoint. |
Ensures that the system rejects the request. |
|
|
Ensures that a device is registered and has a valid certificate. |
|
Simulates an admin revoking a device's certificate. |
|
Ensures that the system updates its revocation list upon certificate revocation. |
Ensures that the device should no longer authenticate using its certificate. |
|
|
A number of device are requesting certificates simultaneously. |
The protocol processes the request. |
|
All certificates should be issued within a given time. |
Module Contents¶
- features.steps.r_010_r_11_steps.step_given_endpoint_available(context, endpoint)[source]¶
Ensures that the endpoint is accessible before testing.
- Parameters:
context (runner.Context) – Behave context.
endpoint (str) – The endpoint.
- Return type:
None
- features.steps.r_010_r_11_steps.step_given_new_device(context, device_id)[source]¶
Simulates a new device before sending a CMP request.
- Parameters:
context (runner.Context) – Behave context.
device_id (str) – Unique identifier for the new device.
- Return type:
None
- features.steps.r_010_r_11_steps.step_when_device_requests_certificate(context, onboarding_protocol)[source]¶
Simulates a new device requesting a certificate via the CMP endpoint.
- Parameters:
context (runner.Context) – Behave context.
onboarding_protocol (OnboardingProtocol) – The onboarding protocol.
- Return type:
None
- features.steps.r_010_r_11_steps.step_then_system_issues_certificate(context, device_id)[source]¶
Ensures that the system issues a certificate for a requesting device.
- Parameters:
context (runner.Context) – Behave context.
device_id (str) – Unique identifier for the device.
- Return type:
None
- features.steps.r_010_r_11_steps.step_then_device_stores_certificate(context)[source]¶
Ensures that the device successfully stores its issued certificate.
- Parameters:
context (runner.Context) – Behave context.
- Return type:
None
- features.steps.r_010_r_11_steps.step_given_onboarded_device(context, device_id)[source]¶
Ensures that a device is onboarded and has an active certificate.
- Parameters:
context (runner.Context) – Behave context.
device_id (str) – Unique identifier for the onboarded device.
- Return type:
None
- features.steps.r_010_r_11_steps.step_when_device_renews_certificate(context, onboarding_protocol)[source]¶
Simulates a device requesting a certificate renewal.
- Parameters:
context (runner.Context) – Behave context.
onboarding_protocol (OnboardingProtocol) – The onboarding protocol.
- Return type:
None
- features.steps.r_010_r_11_steps.step_then_device_replaces_certificate(context)[source]¶
Ensures that the device updates its certificate upon renewal.
- Parameters:
context (runner.Context) – Behave context.
- Return type:
None
- features.steps.r_010_r_11_steps.step_given_invalid_device(context)[source]¶
Simulates a device with incorrect authentication details.
- Parameters:
context (runner.Context) – Behave context.
- Return type:
None
- features.steps.r_010_r_11_steps.step_when_invalid_device_requests(context, onboarding_protocol)[source]¶
Simulates an unauthorized device attempting to access the CMP endpoint.
- Parameters:
context (runner.Context) – Behave context.
onboarding_protocol (OnboardingProtocol) – The onboarding protocol.
- Return type:
None
- features.steps.r_010_r_11_steps.step_then_reject_unauthorized_request(context)[source]¶
Ensures that the system rejects the request.
- Parameters:
context (runner.Context) – Behave context.
- Return type:
None
- features.steps.r_010_r_11_steps.step_given_registered_device(context, device_id)[source]¶
Ensures that a device is registered and has a valid certificate.
- Parameters:
context (runner.Context) – Behave context.
device_id (str) – Unique identifier for the device.
- Return type:
None
- features.steps.r_010_r_11_steps.step_when_admin_revokes_certificate(context, device_id)[source]¶
Simulates an admin revoking a device’s certificate.
- Parameters:
context (runner.Context) – Behave context.
device_id (str) – Unique identifier for the device.
- Return type:
None
- features.steps.r_010_r_11_steps.step_then_revocation_list_updated(context)[source]¶
Ensures that the system updates its revocation list upon certificate revocation.
- Parameters:
context (runner.Context) – Behave context.
- Return type:
None
- features.steps.r_010_r_11_steps.step_then_device_should_no_longer_auth_using_cert(context)[source]¶
Ensures that the device should no longer authenticate using its certificate.
- Parameters:
context (runner.Context) – Behave context.
- Return type:
None
- features.steps.r_010_r_11_steps.step_given_devices_requesting_certs(context, num_devices, onboarding_protocol)[source]¶
A number of device are requesting certificates simultaneously.
- Parameters:
context (runner.Context) – Behave context.
num_devices (int) – The number of devices.
onboarding_protocol (OnboardingProtocol) – The onboarding protocol.
- Return type:
None
- features.steps.r_010_r_11_steps.step_when_the_protocol_endpoint_processes_the_req(context, onboarding_protocol)[source]¶
The protocol processes the request.
- Parameters:
context (runner.Context) – Behave context.
onboarding_protocol (OnboardingProtocol) – The onboarding protocol.
- Return type:
None