Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
typo and merge with master
  • Loading branch information
axshani committed Sep 29, 2022
commit 6028c6445ccdbe0c9d2c9b58ead980dc3a861fdf
4 changes: 3 additions & 1 deletion e2e_tests/application_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

ApplicationTypes = ["individualApplication", "businessApplication", "trustApplication"]


def create_individual_application():
device_fingerprint = DeviceFingerprint.from_json_api({
"provider": "iovation",
Expand All @@ -21,7 +22,8 @@ def create_individual_application():
Phone("1", "2025550108"),
ssn="000000003",
device_fingerprints=[device_fingerprint],
idempotency_key=str(uuid.uuid1())
idempotency_key=str(uuid.uuid1()),
jwt_subject="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9fQ"
)

return client.applications.create(request)
Expand Down
4 changes: 2 additions & 2 deletions unit/api/base_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ def backoff_idempotency_key_handler(e):

def backoff_handler(e):
code = e.status_code
return is_timeout(code) or is_rete_limit(code) or is_server_error(code)
return is_timeout(code) or is_rate_limit(code) or is_server_error(code)


def is_timeout(code):
return code == 408


def is_rete_limit(code):
def is_rate_limit(code):
return code == 429


Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.