features.steps.r_003_steps¶

Python steps file for R_003.

Functions¶

step_certificate_near_expiration(context, certificate_id)

Sets up a certificate that is near expiration.

step_certificate_active(context, certificate_id)

Ensures a certificate exists in an active state.

step_certificate_revoked(context, certificate_id)

Ensures a certificate exists and is in a revoked state.

step_navigate_certificate_management(context, ...)

Navigates to the certificate management page for a given certificate.

step_initiate_certificate_renewal(context)

Initiates the renewal process for a certificate.

step_initiate_certificate_revocation(context)

Initiates the revocation process for a certificate.

step_certificate_updated_expiration(context, ...)

Verifies the certificate's expiration date has been updated.

step_certificate_status_revoked(context, certificate_id)

Verifies the certificate's status is marked as "revoked".

step_attempt_nonexistent_certificate(context, ...)

Attempts to renew or revoke a non-existent certificate.

step_attempt_certificate_action(context, renew_revoke, ...)

Attempts to renew or revoke a certificate.

Module Contents¶

features.steps.r_003_steps.step_certificate_near_expiration(context, certificate_id)[source]¶

Sets up a certificate that is near expiration.

Parameters:
  • context (runner.Context) – Behave context.

  • certificate_id (str) – The ID of the certificate.

Return type:

None

features.steps.r_003_steps.step_certificate_active(context, certificate_id)[source]¶

Ensures a certificate exists in an active state.

Parameters:
  • context (runner.Context) – Behave context.

  • certificate_id (str) – The ID of the certificate.

Return type:

None

features.steps.r_003_steps.step_certificate_revoked(context, certificate_id)[source]¶

Ensures a certificate exists and is in a revoked state.

Parameters:
  • context (runner.Context) – Behave context.

  • certificate_id (str) – The ID of the certificate.

Return type:

None

features.steps.r_003_steps.step_navigate_certificate_management(context, certificate_id)[source]¶

Navigates to the certificate management page for a given certificate.

Parameters:
  • context (runner.Context) – Behave context.

  • certificate_id (str) – The ID of the certificate.

Return type:

None

features.steps.r_003_steps.step_initiate_certificate_renewal(context)[source]¶

Initiates the renewal process for a certificate.

Parameters:

context (runner.Context) – Behave context.

Return type:

None

features.steps.r_003_steps.step_initiate_certificate_revocation(context)[source]¶

Initiates the revocation process for a certificate.

Parameters:

context (runner.Context) – Behave context.

Return type:

None

features.steps.r_003_steps.step_certificate_updated_expiration(context, certificate_id)[source]¶

Verifies the certificate’s expiration date has been updated.

Parameters:
  • context (runner.Context) – Behave context.

  • certificate_id (str) – The ID of the certificate.

Return type:

None

features.steps.r_003_steps.step_certificate_status_revoked(context, certificate_id)[source]¶

Verifies the certificate’s status is marked as “revoked”.

Parameters:
  • context (runner.Context) – Behave context.

  • certificate_id (str) – The ID of the certificate.

Return type:

None

features.steps.r_003_steps.step_attempt_nonexistent_certificate(context, renew_revoke, non_existent)[source]¶

Attempts to renew or revoke a non-existent certificate.

Parameters:
  • context (runner.Context) – Behave context.

  • renew_revoke (str) – Action to perform (renew or revoke).

  • non_existent (str) – The non-existent certificate ID.

Return type:

None

features.steps.r_003_steps.step_attempt_certificate_action(context, renew_revoke, cert)[source]¶

Attempts to renew or revoke a certificate.

Parameters:
  • context (runner.Context) – Behave context.

  • renew_revoke (str) – Action to perform (renew or revoke).

  • cert (str) – The certificate ID.

Return type:

None