freeipa/tests
Rob Crittenden c69d8084c1 Add API version and have server reject incompatible clients.
This patch contains 2 parts.

The first part is a small utility to create and validate the current
API. To do this it needs to load ipalib which on a fresh system
introduces a few problems, namely that it relies on a python plugin
to set the default encoding to utf8. For our purposes we can skip that.
It is also important that any optional plugins be loadable so the
API can be examined.

The second part is a version exchange between the client and server.
The version has a major and a minor version. The major verion is
updated whenever existing API changes. The minor version is updated when
new API is added. A request will be rejected if either the major versions
don't match or if the client major version is higher than then server
major version (though by implication new API would return a command not
found if allowed to proceed).

To determine the API version of the server from a client use the ping
command.

ticket 584
2011-01-14 14:26:22 -05:00
..
test_cmdline Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
test_install Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
test_ipalib Add API version and have server reject incompatible clients. 2011-01-14 14:26:22 -05:00
test_ipaserver Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
test_pkcs10 Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
test_xmlrpc fix sudorule runas user/groups https://fedorahosted.org/freeipa/ticket/570 2011-01-12 11:40:47 -05:00
__init__.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
data.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
test_util.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
util.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00