Files
barbican/functionaltests/api/base.py
Priti Desai 772221a7a8 Adding check on Offset
When a large offset is specified in GET API, causes
failure with 500 error. Adding check if offset is
greater than sys.maxsize, set offset to 0 instead of
failing with 500. Setting offset to 0, returns the
number of records (as specified by limit) ordered by
created_date.

Comparing offset with the sys.maxsize which is
compatible of all the different python versions available.

Closes-bug: #1481012

Change-Id: I70a59e0edb9378271e62b6759dfb02c8c0110ac0
2016-01-20 12:55:13 -08:00

16 KiB