Commit Graph

27 Commits

Author SHA1 Message Date
Rob Crittenden
8f5e82940f Sort lists so order is predictable and tests pass as expected.
Related to https://fedorahosted.org/freeipa/ticket/1272
2011-08-31 11:18:08 +02:00
John Dennis
4c1bfdb919 assert_deepequal supports callback for equality testing 2011-06-22 01:16:31 -04:00
Jakub Hrozek
7493d781df Change FreeIPA license to GPLv3+
The changes include:
 * Change license blobs in source files to mention GPLv3+ not GPLv2 only
 * Add GPLv3+ license text
 * Package COPYING not LICENSE as the license blobs (even the old ones)
   mention COPYING specifically, it is also more common, I think

 https://fedorahosted.org/freeipa/ticket/239
2010-12-20 17:19:53 -05:00
Jason Gerard DeRose
c350f84134 Finish deferred translation mechanism 2010-03-16 11:41:22 -06:00
John Dennis
b75d06e189 localize doc strings
A number of doc strings were not localized, wrap them in _().
Some messages were not localized, wrap them in _()

Fix a couple of failing tests:
The method name in RPC should not be unicode.
The doc attribute must use the .msg attribute for comparison.

Also clean up imports of _() The import should come from
ipalib or ipalib.text, not ugettext from request.
2010-03-08 21:10:36 -07:00
Jason Gerard DeRose
e9dc9de23a Fixed xmlrpc_test.fuzzy_digits for Fedora12 2010-01-22 14:41:49 -05:00
Jason Gerard DeRose
ab1aba5a9a Added Fuzzy docstrings; make-test now runs doctests in tests/*; fixed 'existant' mispelling 2009-12-18 10:56:13 -05:00
Jason Gerard DeRose
29f243bf4e Fuzzy feelings 2009-12-17 11:22:14 -05:00
Jason Gerard DeRose
b6e4972e7f Take 2: Extensible return values and validation; steps toward a single output_for_cli(); enable more webUI stuff 2009-12-10 08:29:15 -07:00
Jason Gerard DeRose
f7375bb609 Added stuff for managing connections and new Executioner backend base class 2009-02-03 15:29:03 -05:00
Jason Gerard DeRose
9f48612a56 Sundry work getting ready to switch to new XML-RPC client/server code 2009-02-03 15:29:00 -05:00
Jason Gerard DeRose
55fba5420d Added rpc.xmlclient backend plugin for forwarding; added corresponding unit tests 2009-01-19 21:10:42 -07:00
Jason Gerard DeRose
10747103fa New Param: implemented a base Param._convert_scalar() method; added Param.type_error attribute for ConversionError message 2009-01-13 02:17:16 -07:00
Jason Gerard DeRose
c2b0d03f82 New Param: updated Bytes and Str length rules to use new rule(_, value) calling signature; updated corresponding unit tests 2009-01-13 01:07:33 -07:00
Jason Gerard DeRose
6d6c0d81dd New Param: decided on calling signature for rules; added unit tests for Bytes._rule_minlength, _rule_maxlength, and _rule_length 2009-01-05 02:20:09 -07:00
Jason Gerard DeRose
c121d0064b New Param: Added Param.get_label() method for a way to retrieve translated message at request time 2009-01-05 01:20:14 -07:00
Jason Gerard DeRose
2608838ef1 Quite a bit of work on new public errors and their unit tests 2009-01-04 03:52:08 -07:00
Jason Gerard DeRose
c161784973 Added request.ugettext() and request.ungettext() functions; added corresponding unit tests 2009-01-04 00:46:21 -07:00
Jason Gerard DeRose
fd43b39145 Moved setting of run-time variables from Env.__init__() to Env._bootstrap() 2008-12-22 23:09:35 -07:00
Jason Gerard DeRose
2d458a1233 Stared some RPC-related error cleanup; started work on ipa_server.rcp.xmlrpc plugin 2008-11-24 21:34:01 -07:00
Jason Gerard DeRose
f3869d7b24 Renamed ipalib.get_standard_api() to create_api() 2008-11-11 15:24:18 -07:00
Jason Gerard DeRose
c26a3c8542 Finished fist draft of plugin tutorial in ipalib/__init__.py docstring 2008-11-07 02:26:38 -07:00
Jason Gerard DeRose
2fee6a3e20 Added tests.util.get_api() function to create a standard (api, home) tuple for unit testing 2008-10-30 01:34:46 -06:00
Jason Gerard DeRose
ac4efac394 Finished Env._finalize_core() and corresponding unit tests 2008-10-24 20:02:14 -06:00
Jason Gerard DeRose
8ca44bcbfa Added tests.util.TempHome class for created a tempdir and setting os.environ['HOME'] to it; updated various unit tests for Env so they are run using a tempdir for home 2008-10-24 16:02:26 -06:00
Jason Gerard DeRose
f80beb948b Added ipalib/constants.py; added Env._load_config() method along with comprehensive unit tests for same 2008-10-24 15:07:07 -06:00
Jason Gerard DeRose
deb8e3dfc8 Renamed tests/tstutil.py to tests/util.py 2008-10-07 22:30:53 -06:00