Rob Crittenden
f131480643
Move socket errors from the XML-RPC plugin to the client
2008-11-03 17:38:05 -05:00
Rob Crittenden
a97f5d76d1
Initial tests for user, group and service plugin API
2008-11-03 17:31:32 -05:00
Rob Crittenden
d53218a932
Handle exceptions in the command-line instead of in the XMLRPC client plugin
2008-11-03 17:19:29 -05:00
Rob Crittenden
5ab203ef48
Enable logging
2008-11-03 17:18:45 -05:00
Rob Crittenden
5237fcbf42
Fix mark_entry_active()
...
Reverse order of search filter so we return a useful NotFound exception
2008-11-03 17:18:16 -05:00
Rob Crittenden
dd9206deb6
Uncomment some logging statements ported over from v1.
2008-11-03 13:14:46 -05:00
Rob Crittenden
f18c84444d
Partially revert back change. Del shouldn't provide default options.
...
It can provide custom ones though, if defined with takes_params() in the class.
2008-11-03 13:14:46 -05:00
Jason Gerard DeRose
a9e8bda0cf
Dropped some of the more verbose logging in lite-xmlrpc.py to logger.debug()
2008-10-31 20:59:44 -06:00
Jason Gerard DeRose
242a8183a7
Added custom log formatter util.LogFormatter that makes the human-readable time stamp in UTC
2008-10-31 20:25:33 -06:00
Jason Gerard DeRose
5e5a83e4e8
Renamed API.bootstrap_from_options() to bootstrap_with_global_options()
2008-10-31 19:03:07 -06:00
Jason Gerard DeRose
5269d1396c
Logging formats are now env variables; added log_format_stderr_debug format used when env.debug is True
2008-10-31 18:55:32 -06:00
Jason Gerard DeRose
a23d41a57f
Reoganized global option functionality to it is easy for any script to use the environment-related global options; lite-xmlrpc.py now uses same global options
2008-10-31 18:17:08 -06:00
Jason Gerard DeRose
cdfb7bfd5e
Logging is now configured in API.bootstrap(); removed depreciated util.configure_logging() function
2008-10-31 13:27:42 -06:00
Jason Gerard DeRose
140458cfc6
API.finalize() now cascades call to API.load_plugins()
2008-10-31 12:29:59 -06:00
Rob Crittenden
5f6f20ffaa
Fix error in validation when adding new groups via the UI
...
469256
2008-10-31 14:27:58 -04:00
Rob Crittenden
08c49c5806
Install replication update file
2008-10-31 12:34:30 -04:00
Jason Gerard DeRose
a360b6479c
Fixed test_Del.test_get_options()
2008-10-30 17:47:56 -06:00
Jason Gerard DeRose
3352069309
Merge branch 'master' of git://git.engineering.redhat.com/users/rcritten/freeipa2
2008-10-30 17:05:07 -06:00
Rob Crittenden
62876ccee3
Initial implementation of automount support
...
Add argument handling to crud.Del
Make get_list handle LDAP scope
2008-10-30 17:29:22 -04:00
Jason Gerard DeRose
3076cb4d2f
Plugin.set_api() now sets convience instance attributes from api for env, context, log, and all NameSpace
2008-10-30 14:11:24 -06:00
Rob Crittenden
c13726ff66
Gracefully handle running on an unconfigured IPA server
2008-10-30 10:25:01 -04:00
Jason Gerard DeRose
6879140db7
Added ipalib.plugins.f_misc with new 'context' Command; moved 'env' Command from cli to f_misc
2008-10-30 02:20:28 -06: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
ddb5449c7f
Did some initial work for Context plugins
2008-10-30 01:11:33 -06:00
Jason Gerard DeRose
e37760a273
Followig Rob's good form, cleanup my mess in TODO
2008-10-29 20:20:43 -06:00
Jason Gerard DeRose
9f45cdbe2f
Merge branch 'master' of git://git.engineering.redhat.com/users/rcritten/freeipa2
2008-10-29 18:10:38 -06:00
Rob Crittenden
4699fc534b
Don't report spurious upgrade message if IPA has not been configured yet.
...
This was throwing the error
"Unable to determine hostname from ipa-rewrite.conf"
during RPM %post on unconfigured servers where there is nothing to do.
468947
2008-10-29 17:08:32 -04:00
Rob Crittenden
f305864d90
Ensure that every replica gets a unique replication ID. Otherwise changes won't propogate between all replicas.
...
468732
2008-10-29 17:08:27 -04:00
Jason Gerard DeRose
dfc690696a
Fixed some things I broke in lite-xmlrpc.py
2008-10-28 03:08:32 -06:00
Jason Gerard DeRose
ad60c94b5e
Cleaned up LoggingSimpleXMLRPCRequestHandler._dispatch() method
2008-10-28 02:45:38 -06:00
Jason Gerard DeRose
47c736a90b
Cleaned up some funky indentation inconsistencies in lite-xmlrpc.py
2008-10-28 02:33:35 -06:00
Jason Gerard DeRose
138305b365
Added an example CLI-specific env command
2008-10-28 02:23:13 -06:00
Jason Gerard DeRose
fbcb55bd11
lite-xmlrpc.py now uses api.bootstrap() property, logs to api.logger
2008-10-28 02:10:56 -06:00
Jason Gerard DeRose
a9f1c74a7f
util.configure_logging() now only configures file logging if it can create the log_dir
2008-10-28 01:45:02 -06:00
Jason Gerard DeRose
316bd855d5
Added util.configure_logging() function; API.bootstrap() now calls util.configure_logging()
2008-10-28 01:39:02 -06:00
Jason Gerard DeRose
2307d4ddd0
Fixed use of depreciated env.get() in b_xmlrpc.py module
2008-10-27 23:56:22 -06:00
Jason Gerard DeRose
83d6c95e46
API.load_plugins() no longer takes dry_run=False kwarg and instead checks in env.mode == 'unit_test' to decide whether to load the plugins; it also only loads ipa_server.plugins in env.in_server is True
2008-10-27 23:39:43 -06:00
Jason Gerard DeRose
6e456cc749
More CLI cleanup, got all basics working again
2008-10-27 23:30:55 -06:00
Jason Gerard DeRose
9b1e3f5946
More docstrings, functionality, and unit tests for improved CLI class
2008-10-27 19:21:49 -06:00
Jason Gerard DeRose
491e295412
Unit test for CLI.boostrap() now checks that -e overrides and values from config files are merged in correctly
2008-10-27 16:08:17 -06:00
Jason Gerard DeRose
bb9691099b
API.bootstrap() now calls Env._finalize_core(); updated unit tests
2008-10-27 15:36:41 -06:00
Jason Gerard DeRose
e6254026fe
Implemented basic CLI.bootstrap(); added corresponding unit tests
2008-10-27 15:19:49 -06:00
Jason Gerard DeRose
17fd9cc431
Started cleanup work on CLI class, added unit tests for CLI.parse_globals()
2008-10-27 14:49:34 -06:00
Jason Gerard DeRose
10026284db
Started cleanup work on CLI class, added unit tests for CLI.parse_globals()
2008-10-27 14:48:02 -06:00
Rob Crittenden
54f37503d2
Implement host groups
2008-10-27 12:24:17 -04:00
Rob Crittenden
201a963930
Fix comment
2008-10-27 12:23:49 -04:00
Rob Crittenden
37e759432e
Add migration to TODO
2008-10-27 12:23:17 -04:00
Jason Gerard DeRose
d76202fea3
API.env is now an Env instance rather than an Environment instance
2008-10-27 01:35:40 -06:00
Jason Gerard DeRose
25a7df9615
Env._finalize_core() now also loads config from Env.conf_default
2008-10-27 01:09:53 -06:00
Jason Gerard DeRose
28dd8e74bd
Env._bootstrap() now also sets Env.conf_default
2008-10-27 00:58:25 -06:00