#![recursion_limit = "512"]
mod integration;
use integration::tests::*;
#[tokio::test]
async fn test_issue_api() {
let mut test = IssueApiTest::new();
let results = test.run_all().await;
let failed: Vec<_> = results.iter().filter(|r| !r.success).collect();
if !failed.is_empty() {
for f in &failed {
eprintln!("FAILED: {} - {}", f.test_name, f.details);
}
panic!("{} tests failed", failed.len());
}
}
#[tokio::test]
async fn test_service_level_agreement_api() {
let mut test = ServiceLevelAgreementApiTest::new();
let results = test.run_all().await;
let failed: Vec<_> = results.iter().filter(|r| !r.success).collect();
if !failed.is_empty() {
for f in &failed {
eprintln!("FAILED: {} - {}", f.test_name, f.details);
}
panic!("{} tests failed", failed.len());
}
}
#[tokio::test]
async fn test_service_level_priority_api() {
let mut test = ServiceLevelPriorityApiTest::new();
let results = test.run_all().await;
let failed: Vec<_> = results.iter().filter(|r| !r.success).collect();
if !failed.is_empty() {
for f in &failed {
eprintln!("FAILED: {} - {}", f.test_name, f.details);
}
panic!("{} tests failed", failed.len());
}
}
#[tokio::test]
async fn test_warranty_claim_api() {
let mut test = WarrantyClaimApiTest::new();
let results = test.run_all().await;
let failed: Vec<_> = results.iter().filter(|r| !r.success).collect();
if !failed.is_empty() {
for f in &failed {
eprintln!("FAILED: {} - {}", f.test_name, f.details);
}
panic!("{} tests failed", failed.len());
}
}