features.steps.r_013_steps¶
Python steps file for R_013.
Attributes¶
Functions¶
|
Ensures a (mocked) issued credential exists. |
Ensures the admin visits the given view. |
|
|
Ensures that a one-time password is displayed which can be used to download the credential from a remote device. |
|
Ensures that a correct one-time password is given. |
|
Ensures that the user visits the "/devices/browser" endpoint and enters the OTP. |
|
Ensures that they will receive a page to select the format for the credential download. |
|
Ensures that an incorrect one-time password is given. |
Ensures that they will receive a warning saying the OTP is incorrect. |
|
|
Ensures that the user is on the credential download page. |
Ensures that the download token is not yet expired. |
|
|
Ensures that the user enters a password to encrypt the credential private key. |
|
Ensures that the user selects a file format. |
Ensures that the credential will be downloaded to their browser in the requested format. |
Module Contents¶
- features.steps.r_013_steps.step_given_issued_credential_exists(context)[source]¶
Ensures a (mocked) issued credential exists.
- Parameters:
context (runner.Context) – Behave context.
- Return type:
None
- features.steps.r_013_steps.step_when_admin_visits_the_given_view(context)[source]¶
Ensures the admin visits the given view.
- Parameters:
context (runner.Context) – Behave context.
- Return type:
None
- features.steps.r_013_steps.step_then_an_otp_is_displayed(context)[source]¶
Ensures that a one-time password is displayed which can be used to download the credential from a remote device.
- Parameters:
context (runner.Context) – Behave context.
- Return type:
None
- features.steps.r_013_steps.step_given_an_otp(context)[source]¶
Ensures that a correct one-time password is given.
- Parameters:
context (runner.Context) – Behave context.
- Return type:
None
- features.steps.r_013_steps.step_when_user_visits_endpoint(context)[source]¶
Ensures that the user visits the “/devices/browser” endpoint and enters the OTP.
- Parameters:
context (runner.Context) – Behave context.
- Return type:
None
- features.steps.r_013_steps.step_then_they_will_receive_page_to_select_the_format(context)[source]¶
Ensures that they will receive a page to select the format for the credential download.
- Parameters:
context (runner.Context) – Behave context.
- Return type:
None
- features.steps.r_013_steps.step_given_an_incorrect_otp(context)[source]¶
Ensures that an incorrect one-time password is given.
- Parameters:
context (runner.Context) – Behave context.
- Return type:
None
- features.steps.r_013_steps.step_then_they_will_receive_a_warning(context)[source]¶
Ensures that they will receive a warning saying the OTP is incorrect.
- Parameters:
context (runner.Context) – Behave context.
- Return type:
None
- features.steps.r_013_steps.step_given_the_user_is_on_the_page(context)[source]¶
Ensures that the user is on the credential download page.
- Parameters:
context (runner.Context) – Behave context.
- Return type:
None
- features.steps.r_013_steps.step_given_the_download_is_not_yet_expired(context)[source]¶
Ensures that the download token is not yet expired.
- Parameters:
context (runner.Context) – Behave context.
- Return type:
None
- features.steps.r_013_steps.step_when_the_user_enters_a_pw_to_encrypt_the_cred_priv_key(context)[source]¶
Ensures that the user enters a password to encrypt the credential private key.
- Parameters:
context (runner.Context) – Behave context.
- Return type:
None