Skip to content

Commit

Permalink
Adjust IDP unit testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jshcodes committed Sep 1, 2023
1 parent 61948e0 commit 9d737ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_identity_protection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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=[{}]),
Expand Down

0 comments on commit 9d737ec

Please sign in to comment.