From 7a33960866713a5c19a3c5d0723fd087577472ba Mon Sep 17 00:00:00 2001 From: Joshua Hiller Date: Tue, 12 Nov 2024 02:03:47 -0500 Subject: [PATCH] Adjust CSPM registration unit testing --- tests/test_cspm_registration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_cspm_registration.py b/tests/test_cspm_registration.py index ceaa3bc1b..a64b80fdb 100644 --- a/tests/test_cspm_registration.py +++ b/tests/test_cspm_registration.py @@ -14,7 +14,7 @@ auth = Authorization.TestAuthorization() config = auth.getConfigObject() falcon = CSPMRegistration(auth_object=config) -AllowedResponses = [200, 201, 207, 401, 403, 429] # Adding rate-limiting as an allowed response for now +AllowedResponses = [200, 201, 207, 400, 401, 403, 429] # Allowing 400 for no configured accounts textchars = bytearray({7, 8, 9, 10, 12, 13, 27} | set(range(0x20, 0x100)) - {0x7f}) is_binary_string = lambda bytes: bool(bytes.translate(None, textchars)) # noqa: E731