Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration Tests with Trulioo SDK #22

Open
flavio-cadete-cko opened this issue Jul 2, 2024 · 1 comment
Open

Integration Tests with Trulioo SDK #22

flavio-cadete-cko opened this issue Jul 2, 2024 · 1 comment

Comments

@flavio-cadete-cko
Copy link

flavio-cadete-cko commented Jul 2, 2024

Hi Trulioo Dev team,
Which approach do you advise us to run integration tests?
Goal: call our simulator (with pre-defined results) and not Trulioo API.

Previously we were injecting a different Message Handler when simulator flag was enabled, but new SDK v3 service doesn't receive HttpClient/Factory.


Also, do we need to use GZipDecompressionHandler if we only use the verification client/endpoint?

@jason-attai-trulioo
Copy link
Contributor

Hi Flavio,

We put a "MockedIdvVerificationTest" here that shows how to mock the client responses using a VerificationHandler.

Is this what you were hoping to achieve with your simulator? Please let us know if you'd like more information about how to fake the results.

The GZipDecompressionHandler is only used to handle the processing of PDF documents so you don't need it if you aren't downloading documents.

Regards,
Jason.

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

No branches or pull requests

2 participants