freeipa/ipatests/test_xmlrpc
Petr Viktorin 1e836d2d0c Switch client to JSON-RPC
Modify ipalib.rpc to support JSON-RPC in addition to XML-RPC.
This is done by subclassing and extending xmlrpclib, because
our existing code relies on xmlrpclib internals.

The URI to use is given in the new jsonrpc_uri env variable. When
it is not given, it is generated from xmlrpc_uri by replacing
/xml with /json.

The rpc_json_uri env variable existed before, but was unused,
undocumented and not set the install scripts.
This patch removes it in favor of jsonrpc_uri (for consistency
with xmlrpc_uri).

Add the rpc_protocol env variable to control the protocol
IPA uses. rpc_protocol defaults to 'jsonrpc', but may be changed
to 'xmlrpc'.
Make backend.Executioner and tests use the backend specified by
rpc_protocol.

For compatibility with unwrap_xml, decoding JSON now gives tuples
instead of lists.

Design: http://freeipa.org/page/V3/JSON-RPC
Ticket: https://fedorahosted.org/freeipa/ticket/3299
2013-11-26 16:59:59 +01:00
..
__init__.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
objectclasses.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_attr.py Use a user result template in tests 2013-10-18 17:11:50 +02:00
test_automember_plugin.py Fix error message when adding duplicate automember rule 2013-11-15 12:46:07 +01:00
test_automount_plugin.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_baseldap_plugin.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_batch_plugin.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_cert_plugin.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_config_plugin.py Add tests for user auth type management 2013-11-08 12:48:43 +01:00
test_delegation_plugin.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_dns_plugin.py Switch client to JSON-RPC 2013-11-26 16:59:59 +01:00
test_dns_realmdomains_integration.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_external_members.py Switch client to JSON-RPC 2013-11-26 16:59:59 +01:00
test_group_plugin.py Use a user result template in tests 2013-10-18 17:11:50 +02:00
test_hbac_plugin.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_hbacsvcgroup_plugin.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_hbactest_plugin.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_host_plugin.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_hostgroup_plugin.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_krbtpolicy.py Use a user result template in tests 2013-10-18 17:11:50 +02:00
test_nesting.py Use a user result template in tests 2013-10-18 17:11:50 +02:00
test_netgroup_plugin.py Use a user result template in tests 2013-10-18 17:11:50 +02:00
test_passwd_plugin.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_permission_plugin.py Improve permission plugin test cleanup 2013-10-30 11:50:05 +01:00
test_ping_plugin.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_privilege_plugin.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_pwpolicy_plugin.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_range_plugin.py Use a user result template in tests 2013-10-18 17:11:50 +02:00
test_realmdomains_plugin.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_replace.py Use a user result template in tests 2013-10-18 17:11:50 +02:00
test_role_plugin.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_selfservice_plugin.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_selinuxusermap_plugin.py Use a user result template in tests 2013-10-18 17:11:50 +02:00
test_service_plugin.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_sudocmd_plugin.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_sudocmdgroup_plugin.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_sudorule_plugin.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
test_trust_plugin.py Switch client to JSON-RPC 2013-11-26 16:59:59 +01:00
test_user_plugin.py Add userClass attribute for users 2013-11-19 14:27:50 +01:00
xmlrpc_test.py Switch client to JSON-RPC 2013-11-26 16:59:59 +01:00