Skip to content

Only allow SSNs in the 900 group to proof with the mock proofer#5576

Merged
mitchellhenke merged 10 commits intomainfrom
jmhooper-ssn-validation
Nov 24, 2021
Merged

Only allow SSNs in the 900 group to proof with the mock proofer#5576
mitchellhenke merged 10 commits intomainfrom
jmhooper-ssn-validation

Conversation

@jmhooper
Copy link
Contributor

@jmhooper jmhooper commented Nov 3, 2021

Why: So only real data i.e. not PII can be used in the int environment

@mitchellhenke mitchellhenke force-pushed the jmhooper-ssn-validation branch 2 times, most recently from 0fb4186 to af2ae93 Compare November 3, 2021 20:16
Copy link
Contributor

Choose a reason for hiding this comment

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

Rubocop suggested start_with? is faster than doing match?(/\A900/)

Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

1-900-SHIP-IT ☎️ 🚢

LGTM

Copy link
Contributor

@orenyk orenyk left a comment

Choose a reason for hiding this comment

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

:shipit:

Copy link
Contributor

Choose a reason for hiding this comment

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

question: is this supposed to start with 900?

Copy link
Contributor

Choose a reason for hiding this comment

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

this is a weird test that I think was written to fail on duplicate SSNs, but we don't do that, so it fails for another reason so the test passes? 🤷🏼

I can probably set any test using this as a skip instead

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, it looks like we dropped that in #3647, so we could probably even delete these tests...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, let's pull these

Copy link
Contributor

Choose a reason for hiding this comment

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

Love to delete feature tests. Dropped them in 4129bed99

Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@orenyk orenyk left a comment

Choose a reason for hiding this comment

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

One testing suggestion but otherwise looks good! :shipit:

raise Proofing::TimeoutError, 'resolution mock timeout'

elsif applicant[:ssn].match?(/6666/)
elsif !ssn.start_with?('900') && !IdentityConfig.store.test_ssn_allowed_list.include?(ssn)
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion: it would be great to add a test for this branch (e.g. stub out IdentityConfig.store or something)

Copy link
Contributor

Choose a reason for hiding this comment

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

good call, thank you.

added test in 4214fce

@mitchellhenke mitchellhenke merged commit 521b438 into main Nov 24, 2021
@mitchellhenke mitchellhenke deleted the jmhooper-ssn-validation branch November 24, 2021 15:41
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.

4 participants