freeipa/ipatests/test_ipalib
Rob Crittenden 83be923ac5 Add a new parameter type, SerialNumber, as a subclass of Str
Transmitting a big integer like a random serial number over
either xmlrpc or JSON is problematic because they only support
32-bit integers at best. A random serial number can be as big
as 128 bits (theoretically 160 but dogtag limits it).

Treat as a string instead. Internally the value can be treated
as an Integer to conversions to/from hex as needed but for
transmission purposes handle it as a string.

Fixes: https://pagure.io/freeipa/issue/2016

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Francisco Trivino <ftrivino@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
2022-06-09 08:35:15 +02: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: Fix deprecated-method for threading 2022-03-11 13:37:08 -05: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 pylint: Skip unused-private-member for property case 2022-03-11 13:37:08 -05:00
test_config.py pylint: Fix no-member 2022-03-11 13:37:08 -05:00
test_crud.py Remove unused variables in tests 2016-09-27 13:35:58 +02:00
test_errors.py pylint: Skip not-callable 2022-03-11 13:37:08 -05:00
test_frontend.py pylint: Fix useless-suppression 2022-03-11 13:37:08 -05: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 a new parameter type, SerialNumber, as a subclass of Str 2022-06-09 08:35:15 +02: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: Fix useless-suppression 2022-03-11 13:37:08 -05: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 When loading certificates verify that it is X.509 v3 2021-06-14 15:19:42 -04:00