mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 12:15:40 +08:00
ci(postman): hotfix for stripe and nmi collections failing (#3956)
This commit is contained in:
@ -18,17 +18,21 @@ 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();
|
||||||
let git_status = Command::new("git").arg("restore").args(&paths).output();
|
|
||||||
|
|
||||||
match git_status {
|
if !paths.is_empty() {
|
||||||
Ok(output) => {
|
let git_status = Command::new("git").arg("restore").args(&paths).output();
|
||||||
if !output.status.success() {
|
|
||||||
|
match git_status {
|
||||||
|
Ok(output) 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(_) => {
|
||||||
Err(e) => {
|
println!("Git restore successful!");
|
||||||
eprintln!("Error running Git: {e}");
|
}
|
||||||
|
Err(e) => {
|
||||||
|
eprintln!("Error running Git: {e}");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -29,7 +29,6 @@
|
|||||||
"key": "Accept",
|
"key": "Accept",
|
||||||
"value": "application/json"
|
"value": "application/json"
|
||||||
},
|
},
|
||||||
,
|
|
||||||
{
|
{
|
||||||
"key": "publishable_key",
|
"key": "publishable_key",
|
||||||
"value": "",
|
"value": "",
|
||||||
|
|||||||
@ -29,7 +29,6 @@
|
|||||||
"key": "Accept",
|
"key": "Accept",
|
||||||
"value": "application/json"
|
"value": "application/json"
|
||||||
},
|
},
|
||||||
,
|
|
||||||
{
|
{
|
||||||
"key": "publishable_key",
|
"key": "publishable_key",
|
||||||
"value": "",
|
"value": "",
|
||||||
|
|||||||
@ -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"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -29,7 +29,6 @@
|
|||||||
"key": "Accept",
|
"key": "Accept",
|
||||||
"value": "application/json"
|
"value": "application/json"
|
||||||
},
|
},
|
||||||
,
|
|
||||||
{
|
{
|
||||||
"key": "publishable_key",
|
"key": "publishable_key",
|
||||||
"value": "",
|
"value": "",
|
||||||
|
|||||||
@ -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
Reference in New Issue
Block a user