freeipa/ipatests/test_ipalib
Christian Heimes a297ebbb8a Add max/min safe integer
JSON cannot safely handle integers outside range ``-(2**53) - 1`` to
``(2**53) - 1``. Add constants for safe integers and limit the Int
parameter to safe JSON values.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER

See: https://pagure.io/freeipa/issue/8802
See: https://pagure.io/freeipa/issue/8361
Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
2021-04-27 13:10:26 -04:00
..
data test_text: add test ipa.pot file for tests 2016-09-26 18:48:07 +02:00
__init__.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_aci.py Handle subyptes in ACIs 2018-06-20 08:38:03 +02:00
test_backend.py pylint: Synchronize pylint plugin to ipatests code 2020-02-12 18:08:32 +02:00
test_base.py Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00
test_capabilities.py Applied tier0 and tier1 marks on unit tests and xmlrpc tests 2015-11-09 11:49:17 +01:00
test_cli.py Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00
test_config.py Fix detection logic for api.env.in_tree 2020-05-14 18:16:20 +02:00
test_crud.py Remove unused variables in tests 2016-09-27 13:35:58 +02:00
test_errors.py Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00
test_frontend.py pylint: Synchronize pylint plugin to ipatests code 2020-02-12 18:08:32 +02:00
test_messages.py Tests: Add data attribute to messages 2016-08-16 11:56:49 +02:00
test_output.py Generate same API.txt under Python 2 and 3 2018-02-15 09:41:30 +01:00
test_parameters.py Add max/min safe integer 2021-04-27 13:10:26 -04:00
test_plugable.py ipatests: Add option/arg parsing tests for the cli 2020-08-25 10:31:19 -04:00
test_rpc.py pylint: Synchronize pylint plugin to ipatests code 2020-02-12 18:08:32 +02:00
test_text.py pytest: Migrate unittest/nose to Pytest fixtures 2020-02-12 18:08:32 +02:00
test_util.py Add skip_if_platform marker 2020-04-28 15:33:57 +02:00
test_x509.py move MSCSTemplate classes to ipalib 2019-07-17 17:58:58 +03:00