From 9d737ec4ee62e11847ad238d83d34677991dd6b2 Mon Sep 17 00:00:00 2001 From: Joshua Hiller Date: Fri, 1 Sep 2023 10:11:55 -0400 Subject: [PATCH] Adjust IDP unit testing --- tests/test_identity_protection.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_identity_protection.py b/tests/test_identity_protection.py index fc36751f0..9f15e1dc9 100644 --- a/tests/test_identity_protection.py +++ b/tests/test_identity_protection.py @@ -16,7 +16,7 @@ config = auth.getConfigObject() falcon = IdentityProtection(auth_object=config) -AllowedResponses = [200, 403, 429] +AllowedResponses = [200, 400, 429] TEST_QUERY = """ query ($after: Cursor) { @@ -68,7 +68,10 @@ def idp_graphql(self): def test_graphql(self): assert self.idp_graphql() is True + def service_idp_remaining_tests(self): + if falcon.base_url.lower() != "https://api.crowdstrike.com": + pytest.skip("Identity protection testing is not supported in this region") error_checks = True tests = { "GetSensorAggregates": falcon.get_sensor_aggregates(date_ranges=[{}]),