features.steps.r_013_steps

Python steps file for R_013.

Attributes

Functions

step_given_issued_credential_exists(context)

Ensures a (mocked) issued credential exists.

step_when_admin_visits_the_given_view(context)

Ensures the admin visits the given view.

step_then_an_otp_is_displayed(context)

Ensures that a one-time password is displayed which can be used to download the credential from a remote device.

step_given_an_otp(context)

Ensures that a correct one-time password is given.

step_when_user_visits_endpoint(context)

Ensures that the user visits the "/devices/browser" endpoint and enters the OTP.

step_then_they_will_receive_page_to_select_the_format(context)

Ensures that they will receive a page to select the format for the credential download.

step_given_an_incorrect_otp(context)

Ensures that an incorrect one-time password is given.

step_then_they_will_receive_a_warning(context)

Ensures that they will receive a warning saying the OTP is incorrect.

step_given_the_user_is_on_the_page(context)

Ensures that the user is on the credential download page.

step_given_the_download_is_not_yet_expired(context)

Ensures that the download token is not yet expired.

step_when_the_user_enters_a_pw_to_encrypt_the_cred_priv_key(context)

Ensures that the user enters a password to encrypt the credential private key.

step_when_user_selects_a_file(context)

Ensures that the user selects a file format.

step_then_the_cred_will_be_downloaded(context)

Ensures that the credential will be downloaded to their browser in the requested format.

Module Contents

features.steps.r_013_steps.HTTP_OK = 200[source]
features.steps.r_013_steps.HTTP_FOUND = 302[source]
features.steps.r_013_steps.logger[source]
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.MIN_OTP_LENGTH = 8[source]
features.steps.r_013_steps.MAX_OTP_LENGTH = 32[source]
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

features.steps.r_013_steps.step_when_user_selects_a_file(context)[source]

Ensures that the user selects a file format.

Parameters:

context (runner.Context) – Behave context.

Return type:

None

features.steps.r_013_steps.step_then_the_cred_will_be_downloaded(context)[source]

Ensures that the credential will be downloaded to their browser in the requested format.

Parameters:

context (runner.Context) – Behave context.

Return type:

None