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

View File

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

View File

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

View File

@ -30,6 +30,10 @@
"Scenario24-Add card flow",
"Scenario25-Don't Pass CVV for save card flow and verifysuccess payment",
"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",
"value": "application/json"
},
,
{
"key": "publishable_key",
"value": "",

View File

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

File diff suppressed because it is too large Load Diff