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

OPPS-225 Worldpay Idempotency key fix #5359

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

jherreraa
Copy link
Collaborator

Unit tests

Finished in 0.418613 seconds.

138 tests, 756 assertions, 0 failures, 0 errors,
0 pendings, 0 omissions, 0 notifications
100% passed

Remote Tests

Finished in 118.498554 seconds.

117 tests, 500 assertions, 0 failures, 0 errors,
0 pendings, 0 omissions, 0 notifications
100% passed

Copy link
Contributor

@Buitragox Buitragox left a comment

Choose a reason for hiding this comment

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

Couple of things to fix. I also think it may be worth it to make a test that checks that it's actually changing the idempotency key between requests. Maybe something similar to the test test_optional_idempotency_key_header (that test is also missing an assert_equal, it's just comparing strings with ==).
https://github.com/activemerchant/active_merchant/blob/master/test/unit/gateways/worldpay_test.rb#L1505

lib/active_merchant/billing/gateways/worldpay.rb Outdated Show resolved Hide resolved
test/unit/gateways/worldpay_test.rb Outdated Show resolved Hide resolved
@jherreraa jherreraa force-pushed the OPPS-225_Worldpay_Idempotency_key_fix branch from 6973ba3 to c35f701 Compare December 4, 2024 20:32
@jherreraa jherreraa requested a review from Buitragox December 4, 2024 20:34
Copy link
Contributor

@Buitragox Buitragox left a comment

Choose a reason for hiding this comment

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

I have retested and everything looks good. Unit tests and remote tests are good.

@jherreraa jherreraa force-pushed the OPPS-225_Worldpay_Idempotency_key_fix branch from c35f701 to 9191189 Compare December 4, 2024 20:45
@jherreraa jherreraa merged commit 9191189 into master Dec 4, 2024
5 checks passed
@jherreraa jherreraa deleted the OPPS-225_Worldpay_Idempotency_key_fix branch December 4, 2024 20:46
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.

2 participants