Skip to content

Commit

Permalink
Temporarily allow 500s from GovCloud testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jshcodes committed Mar 10, 2022
1 parent 7792154 commit 6aa3520
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_sensor_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
auth = Authorization.TestAuthorization()
config = auth.getConfigObject()

# Temp workaround due to 500s outta GovCloud
if config.base_url == "https://api.laggar.gcw.crowdstrike.com":
AllowedResponses.append(500)

sensor_download_client = SensorDownload(auth_object=config)


Expand All @@ -18,7 +22,6 @@ class TestSensorDownload():
@staticmethod
def _get_cid():
resp = sensor_download_client.GetSensorInstallersCCIDByQuery()
print(resp["status_code"])
return True if resp["status_code"] in AllowedResponses else False

@staticmethod
Expand Down

0 comments on commit 6aa3520

Please sign in to comment.