From d22fda5ae330c704da5d94c6aa0f4eeb86fcb587 Mon Sep 17 00:00:00 2001 From: vlad1slav <2307665+vlad1slav@users.noreply.github.com> Date: Sat, 9 Nov 2024 13:07:07 +0200 Subject: [PATCH] Field and test fix --- src/models/repos/secret_scanning_alert.rs | 2 +- tests/dependabot_alerts_test.rs | 2 +- tests/secrets_alerts_test.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/models/repos/secret_scanning_alert.rs b/src/models/repos/secret_scanning_alert.rs index 656f9721..27e27f00 100644 --- a/src/models/repos/secret_scanning_alert.rs +++ b/src/models/repos/secret_scanning_alert.rs @@ -4,7 +4,7 @@ use super::super::*; pub struct SecretScanningAlert { pub number: i64, pub created_at: DateTime, - pub updated_at: DateTime, + pub updated_at: Option>, pub url: Url, pub html_url: Url, pub locations_url: Url, diff --git a/tests/dependabot_alerts_test.rs b/tests/dependabot_alerts_test.rs index 23b6b143..57847213 100644 --- a/tests/dependabot_alerts_test.rs +++ b/tests/dependabot_alerts_test.rs @@ -42,7 +42,7 @@ fn setup_octocrab(uri: &str) -> Octocrab { } #[tokio::test] -async fn check_list_200() { +async fn check_dependabot_alerts_list_200() { let s = include_str!("resources/check_dependabot_alerts.json"); let alert: Vec = serde_json::from_str(s).unwrap(); let template = ResponseTemplate::new(200).set_body_json(&alert); diff --git a/tests/secrets_alerts_test.rs b/tests/secrets_alerts_test.rs index 7075bdc0..b34f1d56 100644 --- a/tests/secrets_alerts_test.rs +++ b/tests/secrets_alerts_test.rs @@ -42,7 +42,7 @@ fn setup_octocrab(uri: &str) -> Octocrab { } #[tokio::test] -async fn check_list_200() { +async fn check_secrets_alert_list_200() { let s: &str = include_str!("resources/check_secrets_alerts.json"); let alert: Vec = serde_json::from_str(s).unwrap(); let template = ResponseTemplate::new(200).set_body_json(&alert);