ci(postman): hotfix for stripe and nmi collections failing (#3956)

This commit is contained in:
Pa1NarK
2024-03-05 23:52:53 +05:30
committed by GitHub
parent c09b2b3a2a
commit 1a8056799c
7 changed files with 1291 additions and 1330 deletions

View File

@ -18,19 +18,23 @@ fn main() {
// Filter out None values leaving behind Some(Path) // Filter out None values leaving behind Some(Path)
let paths: Vec<String> = runner.modified_file_paths.into_iter().flatten().collect(); let paths: Vec<String> = runner.modified_file_paths.into_iter().flatten().collect();
if !paths.is_empty() {
let git_status = Command::new("git").arg("restore").args(&paths).output(); let git_status = Command::new("git").arg("restore").args(&paths).output();
match git_status { match git_status {
Ok(output) => { Ok(output) if !output.status.success() => {
if !output.status.success() {
let stderr_str = String::from_utf8_lossy(&output.stderr); let stderr_str = String::from_utf8_lossy(&output.stderr);
eprintln!("Git command failed with error: {stderr_str}"); eprintln!("Git command failed with error: {stderr_str}");
} }
Ok(_) => {
println!("Git restore successful!");
} }
Err(e) => { Err(e) => {
eprintln!("Error running Git: {e}"); eprintln!("Error running Git: {e}");
} }
} }
}
let exit_code = match status { let exit_code = match status {
Ok(exit_status) => { Ok(exit_status) => {

View File

@ -29,7 +29,6 @@
"key": "Accept", "key": "Accept",
"value": "application/json" "value": "application/json"
}, },
,
{ {
"key": "publishable_key", "key": "publishable_key",
"value": "", "value": "",

View File

@ -29,7 +29,6 @@
"key": "Accept", "key": "Accept",
"value": "application/json" "value": "application/json"
}, },
,
{ {
"key": "publishable_key", "key": "publishable_key",
"value": "", "value": "",

View File

@ -30,6 +30,10 @@
"Scenario24-Add card flow", "Scenario24-Add card flow",
"Scenario25-Don't Pass CVV for save card flow and verifysuccess payment", "Scenario25-Don't Pass CVV for save card flow and verifysuccess payment",
"Scenario26-Save card payment with manual capture", "Scenario26-Save card payment with manual capture",
"Scenario27-Create payment without customer_id and with billing address and shipping address" "Scenario27-Create payment without customer_id and with billing address and shipping address",
"Scenario28-Confirm a payment with requires_customer_action status",
"Scenario29-Create payment with payment method billing",
"Scenario30-Update payment with payment method billing",
"Scenario31-Pass payment method billing in Confirm"
] ]
} }

View File

@ -29,7 +29,6 @@
"key": "Accept", "key": "Accept",
"value": "application/json" "value": "application/json"
}, },
,
{ {
"key": "publishable_key", "key": "publishable_key",
"value": "", "value": "",

View File

@ -55,14 +55,7 @@
], ],
"request": { "request": {
"method": "GET", "method": "GET",
"header": [ "header": [],
{
"key": "x-feature",
"value": "router-custom",
"type": "text",
"disabled": true
}
],
"url": { "url": {
"raw": "{{baseUrl}}/health", "raw": "{{baseUrl}}/health",
"host": [ "host": [
@ -6842,7 +6835,7 @@
"language": "json" "language": "json"
} }
}, },
"raw": "{\"amount\":\"{{another_random_number}}\"}" "raw": "{\"amount\":\"{{another_random_number}}\",\"amount_to_capture\":\"{{another_random_number}}\"}"
}, },
"url": { "url": {
"raw": "{{baseUrl}}/payments/:id", "raw": "{{baseUrl}}/payments/:id",
@ -6956,12 +6949,6 @@
"key": "Accept", "key": "Accept",
"value": "application/json" "value": "application/json"
}, },
{
"key": "x-feature",
"value": "router-custom",
"type": "text",
"disabled": true
},
{ {
"key": "publishable_key", "key": "publishable_key",
"value": "", "value": "",
@ -7315,7 +7302,7 @@
"language": "json" "language": "json"
} }
}, },
"raw": "{\"amount\":\"{{another_random_number}}\"}" "raw": "{\"amount\":\"{{another_random_number}}\",\"amount_to_capture\":\"{{another_random_number}}\"}"
}, },
"url": { "url": {
"raw": "{{baseUrl}}/payments/:id", "raw": "{{baseUrl}}/payments/:id",
@ -7429,12 +7416,6 @@
"key": "Accept", "key": "Accept",
"value": "application/json" "value": "application/json"
}, },
{
"key": "x-feature",
"value": "router-custom",
"type": "text",
"disabled": true
},
{ {
"key": "publishable_key", "key": "publishable_key",
"value": "", "value": "",

File diff suppressed because it is too large Load Diff