freeipa/tests/test_ipalib
Petr Viktorin 24bca144a8 Add client capabilities, enable messages
The API version the client sends can now be used to check what the client
expects or is capable of.

All version tests IPA does will be be named and listed in one module,
ipalib.capabilities, which includes a function to test a specific capability
against an API version.
Similarly to Python's __future__ module, capabilities.py also serves as
documentation of backwards-incompatible changes to the API.

The first capability to be defined is "messages". Recent enough clients can
accept a list of warnings or other info under the "messages" key in the
result dict.

If a JSON client does not send the API version, it is assumed this is a testing
client (e.g. curl from the command line). Such a client "has" all capabilities,
but it will always receive a warning mentioning that forward compatibility
is not guaranteed.
If a XML client does not send the API version, it is assumed it uses the API
version before capabilities were introduced. (This is to keep backwards
compatibility with clients containing bug https://fedorahosted.org/freeipa/ticket/3294)

Whenever a capability is added, the API version must be incremented.
To ensure that, capabilities are written to API.txt and checked by
`makeapi --validate`.

Design page: http://freeipa.org/page/V3/Messages
Ticket: https://fedorahosted.org/freeipa/ticket/2732
2013-02-21 16:26:09 +01:00
..
__init__.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
test_backend.py Add the version option to all Commands 2013-02-21 16:26:09 +01:00
test_base.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
test_capabilities.py Add client capabilities, enable messages 2013-02-21 16:26:09 +01: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 the version option to all Commands 2013-02-21 16:26:09 +01:00
test_errors.py Add ipalib.messages 2013-02-21 16:26:09 +01:00
test_frontend.py Add client capabilities, enable messages 2013-02-21 16:26:09 +01:00
test_messages.py Add client capabilities, enable messages 2013-02-21 16:26:09 +01:00
test_output.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
test_parameters.py Raise ValidationError on invalid CSV values. 2013-02-08 15:16:37 +01:00
test_plugable.py Fix attempted write to attribute of read-only object. 2012-01-02 11:51:26 +03:00
test_rpc.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
test_text.py text unit test should validate using installed mo file 2012-04-10 18:11:48 -04:00
test_util.py Remove duplicate and unused utility code 2012-05-09 11:54:20 +02:00
test_x509.py Use DN objects instead of strings 2012-08-12 16:23:24 -04:00