-
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
test(connector): [Globalpay] Fix unit tests #1217
Conversation
Signed-off-by: chikke srujan <[email protected]>
Signed-off-by: chikke srujan <[email protected]>
Signed-off-by: chikke srujan <[email protected]>
Signed-off-by: chikke srujan <[email protected]>
Cargo.lock
Outdated
@@ -364,7 +364,6 @@ name = "api_models" | |||
version = "0.1.0" | |||
dependencies = [ | |||
"actix-web", | |||
"cards", |
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.
undo all the changes in this file
Signed-off-by: chikke srujan <[email protected]>
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.
@srujanchikke There are changes in the connector auth please add the label api contract changes. So that we can mark dashboard dependency while releasing this changes in the release announcements
.make_payment( | ||
Some(types::PaymentsAuthorizeData { | ||
payment_method_data: types::api::PaymentMethodData::Card(api::Card { | ||
card_number: cards::CardNumber::from_str("").unwrap(), |
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 test fails for empty card number can you rerun and check this?
.make_payment( | ||
Some(types::PaymentsAuthorizeData { | ||
payment_method_data: types::api::PaymentMethodData::Card(api::Card { | ||
card_number: cards::CardNumber::from_str("13241313413").unwrap(), |
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.
Same here, this would fail because of Kuhn check we have. Please rerun and check
Signed-off-by: chikke srujan <[email protected]>
Type of Change
Description
This PR contains following changes
1)unit tests for globalpay
2)expiry year fix
Additional Changes
Motivation and Context
unit tests for globalpay
How did you test it?
unit tests
Note :
should_fail_void_payment_for_auto_capture
is failing from connector end .Checklist
cargo +nightly fmt --all
cargo clippy