mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
ci(postman): Fix Adyen_UK, Checkout collections and disable Globalpay from running indefinitely (#1920)
This commit is contained in:
@ -16,7 +16,7 @@ env:
|
||||
RUSTUP_MAX_RETRIES: 10
|
||||
RUST_BACKTRACE: short
|
||||
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
|
||||
CONNECTORS: aci, adyen_uk, airwallex, authorizedotnet, bambora, bambora_3ds, bluesnap, checkout, forte, globalpay, mollie, nexinets, nmi, payme, paypal, powertranz, rapyd, shift4, stripe, trustpay, worldline
|
||||
CONNECTORS: aci, adyen_uk, airwallex, authorizedotnet, bambora, bambora_3ds, bluesnap, checkout, forte, mollie, nexinets, nmi, payme, paypal, powertranz, rapyd, shift4, stripe, trustpay, worldline
|
||||
|
||||
jobs:
|
||||
runner:
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"info": {
|
||||
"_postman_id": "9854961f-581b-4d76-a5d1-c92c822ce0d4",
|
||||
"_postman_id": "43194172-5a11-4ffb-b733-1823bdf5b7e0",
|
||||
"name": "Adyen UK Collection",
|
||||
"description": "## Get started\n\nJuspay Router provides a collection of APIs that enable you to process and manage payments. Our APIs accept and return JSON in the HTTP body, and return standard HTTP response codes. \nYou can consume the APIs directly using your favorite HTTP/REST library. \nWe have a testing environment referred to \"sandbox\", which you can setup to test API calls without affecting production data.\n\n### Base URLs\n\nUse the following base URLs when making requests to the APIs:\n\n| Environment | Base URL |\n| --- | --- |\n| Sandbox | [https://sandbox.hyperswitch.io](https://sandbox.hyperswitch.io) |\n| Production | [https://router.juspay.io](https://router.juspay.io) |\n\n# Authentication\n\nWhen you sign up for an account, you are given a secret key (also referred as api-key). You may authenticate all API requests with Juspay server by providing the appropriate key in the request Authorization header. \nNever share your secret api keys. Keep them guarded and secure.\n\nContact Support: \nName: Juspay Support \nEmail: [support@juspay.in](mailto:support@juspay.in)",
|
||||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
|
||||
@ -8226,8 +8226,8 @@
|
||||
"",
|
||||
"// Response body should have value \"invalid_request\" for \"error type\"",
|
||||
"if (jsonData?.error?.message) {",
|
||||
"pm.test(\"[POST]::/payments - Content check if value for 'error.message' matches 'This Payment could not be captured because it has a payment.status of requires_customer_action. The expected state is requires_capture'\", function() {",
|
||||
" pm.expect(jsonData.error.message).to.eql(\"This Payment could not be captured because it has a payment.status of requires_customer_action. The expected state is requires_capture\");",
|
||||
"pm.test(\"[POST]::/payments - Content check if value for 'error.message' matches 'This Payment could not be captured because it has a payment.status of requires_customer_action. The expected state is requires_capture, partially captured'\", function() {",
|
||||
" pm.expect(jsonData.error.message).to.eql(\"This Payment could not be captured because it has a payment.status of requires_customer_action. The expected state is requires_capture, partially captured\");",
|
||||
"})};",
|
||||
"",
|
||||
"",
|
||||
@ -8236,6 +8236,13 @@
|
||||
],
|
||||
"type": "text/javascript"
|
||||
}
|
||||
},
|
||||
{
|
||||
"listen": "prerequest",
|
||||
"script": {
|
||||
"exec": [],
|
||||
"type": "text/javascript"
|
||||
}
|
||||
}
|
||||
],
|
||||
"request": {
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"info": {
|
||||
"_postman_id": "78a39113-93a6-4297-ac31-705a5d6510e4",
|
||||
"_postman_id": "e53ab22a-5f53-4d37-8db7-2be27ea5e0d3",
|
||||
"name": "Checkout Collection",
|
||||
"description": "## Get started\n\nJuspay Router provides a collection of APIs that enable you to process and manage payments. Our APIs accept and return JSON in the HTTP body, and return standard HTTP response codes. \nYou can consume the APIs directly using your favorite HTTP/REST library. \nWe have a testing environment referred to \"sandbox\", which you can setup to test API calls without affecting production data.\n\n### Base URLs\n\nUse the following base URLs when making requests to the APIs:\n\n| Environment | Base URL |\n| --- | --- |\n| Sandbox | [https://sandbox.hyperswitch.io](https://sandbox.hyperswitch.io) |\n| Production | [https://router.juspay.io](https://router.juspay.io) |\n\n# Authentication\n\nWhen you sign up for an account, you are given a secret key (also referred as api-key). You may authenticate all API requests with Juspay server by providing the appropriate key in the request Authorization header. \nNever share your secret api keys. Keep them guarded and secure.\n\nContact Support: \nName: Juspay Support \nEmail: [support@juspay.in](mailto:support@juspay.in)",
|
||||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
|
||||
@ -5549,7 +5549,7 @@
|
||||
"// Response body should have value \"This Payment could not be captured because it has a payment.status of succeeded. The expected state is requires_capture\" for \"error message\"",
|
||||
"if (jsonData?.error?.message) {",
|
||||
"pm.test(\"[POST]::/payments/:id/confirm - Content check if value for 'error.type' matches 'invalid_request'\", function() {",
|
||||
" pm.expect(jsonData.error.message).to.eql(\"This Payment could not be captured because it has a payment.status of succeeded. The expected state is requires_capture\");",
|
||||
" pm.expect(jsonData.error.message).to.eql(\"This Payment could not be captured because it has a payment.status of succeeded. The expected state is requires_capture, partially captured\");",
|
||||
"})};",
|
||||
"",
|
||||
"",
|
||||
@ -5558,6 +5558,13 @@
|
||||
],
|
||||
"type": "text/javascript"
|
||||
}
|
||||
},
|
||||
{
|
||||
"listen": "prerequest",
|
||||
"script": {
|
||||
"exec": [],
|
||||
"type": "text/javascript"
|
||||
}
|
||||
}
|
||||
],
|
||||
"request": {
|
||||
|
||||
Reference in New Issue
Block a user