-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
ci: add tests that make use of locker #6735
base: main
Are you sure you want to change the base?
Conversation
Changed Files |
Can you handle all the connectors for the connector agnostic change ? |
good catch. by the looks of it (re: stripe), this will require a bit of time and a bit of refactoring in mca create call since we're creating mca independently multiple times in connector agnostic. |
marking this pr as draft since there exist a lot of blockers when working with ntid flows |
9290469
to
667357a
Compare
MITAutoCapture: getCustomExchange({ | ||
Configs: { | ||
CONNECTOR_CREDENTIAL: { | ||
specName: ["connectorAgnostic"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the use of this specName: ["connectorAgnostic"] array?
when do you use this specName config, is there a way to make it intuitive and self explanatory?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
glad you asked!
we pass specName
within Configs
when we want to restrict a connector credential to a specific request / exchange.
in this case, connectorAgnostic
file (00024
) will have connector_2
passed in every MITAutoCapture
call that is made. and in mandates, if used, connector_2
will not be passed and hence the default will be sent (connector_1
).
edit:
i intentionally made it an array because it allows us to pass multiple files...
fixtures.businessProfile.bpCreate, | ||
globalState, | ||
"profile" + i | ||
{ nextConnector: true } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This object makes only 2 creds to work right ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes. keeping scalibility in mind, i've made it an object. so, once the need arrives, we can directly make it accept more credentials without much hassle as explained the other day
cypress-tests/cypress/e2e/PaymentTest/00024-ConnectorAgnosticNTID.cy.js
Outdated
Show resolved
Hide resolved
cypress-tests/cypress/e2e/PaymentTest/00024-ConnectorAgnosticNTID.cy.js
Outdated
Show resolved
Hide resolved
06d09b2
to
6c170a6
Compare
this is allow us to see the error message directly in the screenshot without us manually running the test
edit: fixed with #6899 |
This reverts commit 098d999.
…ete-pm * 'main' of github.com:juspay/hyperswitch: refactor(dynamic_routing): add col payment_method_type in dynamic_routing_stats (#6853) refactor(customers_v2): include minor fixes for customer v2 flows (#6876) fix: cypress reports generation (#6894) fix(connector): Paypal BankRedirects (Ideal/EPS) (#6864) chore(version): 2024.12.19.1 fix(connector): [UNIFIED_AUTHENTICATION_SERVICE] change url path to `pre_authentication_processing` in pre-auth flow (#6885) refactor(users): move roles schema to global interface (#6862) feat(payment_methods): add support to pass apple pay recurring details to obtain apple pay merchant token (#6770) feat(payments): [Payment links] Add config for changing button text for payment links (#6860) feat(core): added customer phone_number and email to session token response for click to pay (#6863) FEAT(klarna): Klarna Kustom Checkout Integration (#6839) feat(users): handle email url for users in different tenancies (#6809) chore(version): 2024.12.19.0 refactor(dynamic_routing): update the authentication for update config to include JWT type (#6785) chore(env): remove unified_authentication_service base_url from integ, sandbox and production toml (#6865)
…ete-pm * 'main' of github.com:juspay/hyperswitch: chore(version): 2024.12.23.0 feat(connector): [JPMORGAN] add Payment flows for cards (#6668) refactor(grpc): send `x-tenant-id` and `x-request-id` in grpc headers (#6904) feat(payment_methods_v2): Added Ephemeral auth for v2 (#6813) chore(cypress): payout - fix test cases for adyenplatform bank (#6887) refactor(connector): [Airwallex] add device_data in payment request (#6881) feat(router): add db interface for `/relay` (#6879) feat(payments_v2): implement payments capture v2 (#6722) feat(router): add /relay endpoint (#6870)
Type of Change
Description
This PR introduces necessary refactoring to add support for locker specific tests. This includes
addition of delete payment method
(which is restricted to work only on hosted environments and not local giventartarus
is unavailable and is complicated to setup things) but not limited to:getCustomExchange
Additional Changes
Motivation and Context
How did you test it?
delete payment method:
5xx
is expected since this requires locker to be set up locally which is not optimal2xx
is expected since locker is already setupntid with mit based on payment token:
Checklist
prettier . --write
cargo clippy