Skip to content

Commit 0a06ad9

Browse files
ci(postman): fix archipel configs and test cases (#8360)
1 parent c5c0e67 commit 0a06ad9

File tree

258 files changed

+5388
-655
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

258 files changed

+5388
-655
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"childrenOrder": [
33
"Health check",
4-
"Flow Testcases"
4+
"Flow Testcases",
5+
"Netcetera Testcases"
56
]
67
}

postman/collection-dir/archipel/.variable.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,31 @@
8383
{
8484
"key": "archipel_transaction_uuid",
8585
"value": ""
86+
},
87+
{
88+
"key": "netcetera_certificate",
89+
"value": "",
90+
"type": "string"
91+
},
92+
{
93+
"key": "netcetera_private_key",
94+
"value": "",
95+
"type": "string"
96+
},
97+
{
98+
"key": "netcetera_merchant_configuration_id",
99+
"value": "",
100+
"type": "string"
101+
},
102+
{
103+
"key": "netcetera_requestor_url",
104+
"value": "",
105+
"type": "string"
106+
},
107+
{
108+
"key": "netcetera_requestor_app_url",
109+
"value": "",
110+
"type": "string"
86111
}
87112
]
88113
}

postman/collection-dir/archipel/Flow Testcases/Happy Cases/.meta.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,19 @@
55
"Scenario3a-Create payment with Manual capture",
66
"Scenario3b-Create payment with partial capture",
77
"Scenario3c-Create payment with confirm false and manual capture",
8-
"Scenario4-Zero auth mandates",
9-
"Scenario5-Create a mandate and recurring payment",
10-
"Scenario6-Saved card flow",
8+
"Scenario4a-Void a payment",
9+
"Scenario4b-Void a partially captured payment",
10+
"Scenario4c-Void a successful payment",
11+
"Scenario5a-Create a zero auth mandate and recurring payment (using mandate_id)",
12+
"Scenario5b-Create a zero auth mandate and recurring payment (using connector agnostic)",
13+
"Scenario6a-Create a mandate and recurring payment (using mandate_id)",
14+
"Scenario6b-Create a mandate and recurring payment (using connector agnostic)",
15+
"Scenario7-Save card flow",
1116
"Scenario8a-Incremental authorization",
1217
"Scenario8b-Incremental authorization with partial capture",
1318
"Scenario9a-Refund full payment",
1419
"Scenario9b-Refund partial payment",
1520
"Scenario9c-Refund full incremented payment",
16-
"Scenario10-Create 3DS payment"
21+
"Scenario10-Create 3DS payment without external 3ds authentication"
1722
]
1823
}

postman/collection-dir/archipel/Flow Testcases/Happy Cases/Scenario10-Create 3DS payment/.meta.json renamed to postman/collection-dir/archipel/Flow Testcases/Happy Cases/Scenario10-Create 3DS payment without external 3ds authentication /.meta.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
"childrenOrder": [
33
"Payments - Create",
44
"Payments - Confirm",
5-
"Payments - External 3ds authentication",
6-
"Payments - Authorize request intent",
75
"Payments - Retrieve after confirm"
86
]
97
}
File renamed without changes.
File renamed without changes.
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
// Validate status 400
2+
pm.test("[POST]::/payments/:id/confirm - Status code is 400", function () {
3+
pm.response.to.have.status(400);
4+
});
5+
6+
// Validate if response header has matching content-type
7+
pm.test(
8+
"[POST]::/payments/:id/confirm - Content-Type is application/json",
9+
function () {
10+
pm.expect(pm.response.headers.get("Content-Type")).to.include(
11+
"application/json",
12+
);
13+
},
14+
);
15+
16+
// Validate if response has JSON Body
17+
pm.test("[POST]::/payments/:id/confirm - Response has JSON Body", function () {
18+
pm.response.to.have.jsonBody();
19+
});
20+
21+
// Set response object as internal variable
22+
let jsonData = {};
23+
try {
24+
jsonData = pm.response.json();
25+
} catch (e) {}
26+
27+
// Validate if response has error body
28+
pm.test("[POST]::/payments/:id/confirm - Response has error body", function () {
29+
pm.expect(jsonData).to.have.property("error");
30+
});
31+
32+
// Validate if error type is "invalid_request"
33+
pm.test(
34+
"[POST]::/payments/:id/confirm - Error type is 'invalid_request'",
35+
function () {
36+
pm.expect(jsonData.error).to.have.property("type", "invalid_request");
37+
},
38+
);
39+
40+
// Validate if error message is "Payment method type not supported"
41+
pm.test(
42+
"[POST]::/payments/:id/confirm - Error message is 'Payment method type not supported'",
43+
function () {
44+
pm.expect(jsonData.error).to.have.property(
45+
"message",
46+
"Payment method type not supported",
47+
);
48+
},
49+
);
50+
51+
// Validate if error reason is "Selected 3DS authentication method is not supported by archipel"
52+
pm.test(
53+
"[POST]::/payments/:id/confirm - Error reason is 'Selected 3DS authentication method is not supported by archipel'",
54+
function () {
55+
pm.expect(jsonData.error).to.have.property(
56+
"reason",
57+
"Selected 3DS authentication method is not supported by archipel",
58+
);
59+
},
60+
);
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)