Skip to content

LG-10779 Add a specific test case for a profile that cannot pass fraud review#9235

Merged
jmhooper merged 2 commits intomainfrom
jmhooper-cleanup-review-profile-rake-test-case
Sep 19, 2023
Merged

LG-10779 Add a specific test case for a profile that cannot pass fraud review#9235
jmhooper merged 2 commits intomainfrom
jmhooper-cleanup-review-profile-rake-test-case

Conversation

@jmhooper
Copy link
Contributor

The review profile rake task is used to pass or reject users after fraud review. We have a test case for users who running that task against a user who is not pending fraud review because they have undergone a more recent verification. Previously that test case actually tested a case where a user had an invalid profile state that was pending GPO verification. This should not be possible and raises an exception. It also did not match the spec description.

This commit cleans up the spec to cover the case described in the spec description. In this case the user has reset their password and deactivated the fraud pending profile. Then they have created a new profile that is GPO pending.

A new spec is also introduced to cover the code paths covered by the old test: a case where the profile is in an unexpected state and an exception is raised.

[skip changelog]

…d review

The review profile rake task is used to pass or reject users after fraud review. We have a test case for users who running that task against a user who is not pending fraud review because they have undergone a more recent verification. Previously that test case actually tested a case where a user had an invalid profile state that was pending GPO verification. This should not be possible and raises an exception. It also did not match the spec description.

This commit cleans up the spec to cover the case described in the spec description. In this case the user has reset their password and deactivated the fraud pending profile. Then they have created a new profile that is GPO pending.

A new spec is also introduced to cover the code paths covered by the old test: a case where the profile is in an unexpected state and an exception is raised.

[skip changelog]
@jmhooper jmhooper requested a review from a team September 19, 2023 18:43
Copy link
Contributor

@soniaconnolly soniaconnolly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Co-authored-by: Sonia Connolly <sonia.connolly@gsa.gov>
@jmhooper jmhooper merged commit d426842 into main Sep 19, 2023
@jmhooper jmhooper deleted the jmhooper-cleanup-review-profile-rake-test-case branch September 19, 2023 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants