Skip to content

LG-11885: Expand mock proofer to support selfie capture#9882

Merged
night-jellyfish merged 11 commits intomainfrom
brittany/lg-11885-mock-proofer-to-accept-selfie
Jan 11, 2024
Merged

LG-11885: Expand mock proofer to support selfie capture#9882
night-jellyfish merged 11 commits intomainfrom
brittany/lg-11885-mock-proofer-to-accept-selfie

Conversation

@night-jellyfish
Copy link
Contributor

🎫 Ticket

LG-11885

🛠 Summary of changes

This change should allow you to use yml files with a portrait_match_results entry to mock various states of selfie additions:

  • pass
  • fail with no liveness
  • fail with poor quality
  • fail with a face match fail

📜 Testing Plan

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This seems to me the best place to test that if we're not checking the selfie, we don't have the portrait_match_results key, rather than building a whole new test for the negative condition. I thought making the opposite example of including the key above was then also warranted, and doing that changed the setup.

@night-jellyfish night-jellyfish requested review from a team and dawei-nava and removed request for a team January 9, 2024 16:13
Copy link
Contributor

@dawei-nava dawei-nava left a comment

Choose a reason for hiding this comment

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

LGTM.

Brittany Greaner and others added 11 commits January 11, 2024 08:28
- used compact as a way to get around having a nil value when selfie
isn't used. Unsure if that was the right method

Sending selfie_captured and face match value, rename needed

Testing fixes, updates

- adds tests for other failures
- removes unneeded setup
- adds testing for exact error keys
- adds face_result_match to the result_response

yml files

updates for yml and client

- create selfie yml files that have:
    - passing doc auth
    - `portrait_match_results` hash
- update client to return `portrait_match_results` hash
Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
@night-jellyfish night-jellyfish force-pushed the brittany/lg-11885-mock-proofer-to-accept-selfie branch from b0335d5 to 4debbee Compare January 11, 2024 16:29
@night-jellyfish night-jellyfish merged commit 512479b into main Jan 11, 2024
@night-jellyfish night-jellyfish deleted the brittany/lg-11885-mock-proofer-to-accept-selfie branch January 11, 2024 16: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.

3 participants