freeipa/ipatests/test_ipalib
Petr Viktorin 521df77744 ipalib.config: Don't autoconvert values to float
When api.env is loaded, strings that "look like" floats got
auto-converted to floats.
This is wrong, as the conversion to float can lose precision.
Case in point: the api_version (e.g. '2.88') should never be
interpreted as float.

Do not automatically convert to float.

We have two numeric options: startup_timeout and wait_for_dns.
wait_for_dns is already converted to int when used in the code.
Convert startup_timeout to float explicitly when used, so
configuration that specified it with a decimal point continues
to work.

Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
2014-06-16 13:38:54 +02:00
..
__init__.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_aci.py ipalib.aci: Fix bugs in comparison 2014-06-04 10:10:08 +02:00
test_backend.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_base.py Allow indexing API object types by class 2014-03-25 14:18:12 +01:00
test_capabilities.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_cli.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_config.py ipalib.config: Don't autoconvert values to float 2014-06-16 13:38:54 +02:00
test_crud.py test_ipalib.test_crud: Don't use a string in takes_options 2013-10-08 16:46:19 +02:00
test_errors.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_frontend.py Remove the unused ipalib.frontend.Property class 2014-02-21 11:58:00 +01:00
test_messages.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_output.py Allow primary keys to use different type than unicode. 2014-04-18 14:59:20 +02:00
test_parameters.py ipatests: Cover DateTime in test_parameters.py 2014-05-05 18:57:29 +03:00
test_plugable.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_rpc.py Support API version-specific RPC marshalling. 2014-04-18 14:59:20 +02:00
test_text.py Add ConcatenatedLazyText object 2013-11-21 10:34:25 +01:00
test_util.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_x509.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00