freeipa/tests/test_ipalib
John Dennis 2673782aec ticket 1600 - convert unittests to use DN objects
We have a larger goal of replacing all DN creation via string
formatting/concatenation with DN object operations because string
operations are not a safe way to form a DN nor to compare a DN. This
work needs to be broken into smaller chunks for easier review and
testing.

Addressing the unit tests first makes sense because we don't want to
be modifying both the core code and the tests used to verify the core
code simultaneously. If we modify the unittests first with existing
core code and no regressions are found then we can move on to
modifying parts of the core code with the belief the unittests can
validate the changes in the core code. Also by doing the unittests
first we also help to validate the DN objects are working correctly
(although they do have an extensive unittest).

The fundamental changes are:

* replace string substitution & concatenation with DN object
  constructor

* when comparing dn's the comparision is done after promotion
  to a DN object, then two DN objects are compared

* when a list of string dn's are to be compared a new list is
  formed where each string dn is replaced by a DN object

* because the unittest framework accepts a complex data structure of
  expected values where dn's are represeted as strings the unittest
  needs to express the expected value of a dn as a callable object
  (e.g. a lambda expression) which promotes the dn string to a DN
  object in order to do the comparision.
2011-08-16 23:52:26 -04:00
..
__init__.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
test_backend.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
test_base.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
test_cli.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
test_config.py Let the framework be able to override the hostname. 2011-06-23 02:11:34 -04:00
test_crud.py Add API version and have server reject incompatible clients. 2011-01-14 14:26:22 -05:00
test_dn.py ticket 1569 - Test DN object non-latin Unicode support 2011-08-16 23:28:31 -04:00
test_encoder.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
test_errors.py Fix i18n related failures in unit tests. 2011-03-01 10:31:41 -05:00
test_frontend.py Add ability to specify DNS reverse zone name by IP network address. 2011-07-15 02:21:23 -04:00
test_output.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
test_parameters.py Fix message in test case for checking minimum values 2011-07-28 02:03:56 -04:00
test_plugable.py Fix i18n related failures in unit tests. 2011-03-01 10:31:41 -05:00
test_rpc.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
test_text.py Final i18n unit test fixes. 2011-03-01 10:31:43 -05:00
test_util.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
test_x509.py ticket 1600 - convert unittests to use DN objects 2011-08-16 23:52:26 -04:00