Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Add new cfg module | Mark McLoughlin | 2012-01-10 | 2 | -0/+1908 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As described here: http://wiki.openstack.org/CommonConfigModule The module implements an API for defining configuration options and reading values for those options that a user may have set in a config file or on the command line. The module is successfully in use in both Nova and Glance. Some work remains in Nova to switch from using it under a gflags compatible shim layer, but Glance is using it fully. There doesn't appear to be any blockers to other projects moving over to it fairly easily. Swift would perhaps be the next project to tackle. Just to go through potential future compatibility concerns: - Nova (the scroundrel) hackily uses the private ConfigOpts::_oparser in order to disable interspersed args. This was just for nova-manage and can probably be resolved some other way. In any case, Nova shouldn't switch to openstack-common's cfg API until it removes this hack. - the CommonConfigOpts subclass set of logging related options is perhaps assuming too much about what configuration options should be common across all the projects. However, it seems a fairly sane set and the worst that can happen is that projects avoid using it. - the parameters to the Opt constructor fairly closely mirror optparse, but they're fairly generic and shouldn't prevent us from switching to e.g. argparse - stuff like %prog expansion in the ConfigOpt's usage ctor param is a similar concern, but it's a very minor concern. - find_config_files() search path is perhaps too much policy for openstack-common; however, it is probably as generic as it could be and projects which need a different policy can just not use the function On the whole, I think we're in good shape wrt future compatibility. Change-Id: I279a9db7806d80aff3b9b085b4a9e4fb193662f9 | |||||
* | Merge pull request #3 from emonty/master | Jason Kölker | 2012-01-06 | 5 | -104/+23 | |
|\ | | | | | Use latest tissue update - ready for gerrit | |||||
| * | Updated README with instructions. | Monty Taylor | 2012-01-06 | 1 | -1/+11 | |
| | | ||||||
| * | Removed run_tests.sh in favor of tox. | Monty Taylor | 2012-01-06 | 1 | -103/+0 | |
| | | ||||||
| * | Added .gitreview file. | Monty Taylor | 2012-01-06 | 1 | -0/+4 | |
| | | ||||||
| * | Added tissue support back in. | Monty Taylor | 2012-01-06 | 2 | -0/+8 | |
|/ | ||||||
* | make sure a '_' function is availible for nose | Jason Kölker | 2012-01-04 | 1 | -0/+2 | |
| | ||||||
* | Merge pull request #1 from emonty/master | Jason Kölker | 2012-01-04 | 6 | -447/+20 | |
|\ | | | | | Changes to make things use tox | |||||
| * | Use nose and tox. | Monty Taylor | 2012-01-04 | 4 | -447/+0 | |
| | | ||||||
| * | Added pip-requires and tox.ini to run tests. | Monty Taylor | 2012-01-04 | 2 | -0/+20 | |
|/ | ||||||
* | add some server tests | Jason Kölker | 2011-12-02 | 1 | -0/+20 | |
| | ||||||
* | moar utils tests | Jason Kölker | 2011-12-02 | 1 | -0/+53 | |
| | ||||||
* | import should not return an instance of the class | Jason Kölker | 2011-12-02 | 1 | -2/+1 | |
| | ||||||
* | add utils test | Jason Kölker | 2011-12-01 | 1 | -0/+70 | |
| | ||||||
* | use isinstance and types.* | Jason Kölker | 2011-12-01 | 1 | -2/+2 | |
| | ||||||
* | add context middleware tests | Jason Kölker | 2011-12-01 | 2 | -0/+79 | |
| | ||||||
* | add more coverage to test_extensions | Jason Kölker | 2011-12-01 | 1 | -1/+66 | |
| | ||||||
* | add exceptions test coverage | Jason Kölker | 2011-12-01 | 1 | -0/+151 | |
| | ||||||
* | add context 'tests' | Jason Kölker | 2011-12-01 | 1 | -0/+27 | |
| | ||||||
* | add more config tests | Jason Kölker | 2011-12-01 | 1 | -3/+61 | |
| | ||||||
* | make fix_path a real function so it can be mock'd | Jason Kölker | 2011-12-01 | 1 | -1/+7 | |
| | ||||||
* | remove unused imports | Jason Kölker | 2011-12-01 | 1 | -2/+0 | |
| | ||||||
* | mox isn't used anywhere, but I will be using mock | Jason Kölker | 2011-12-01 | 1 | -1/+1 | |
| | ||||||
* | Only list requirements in the setup.py like it should be | Jason Kölker | 2011-12-01 | 2 | -19/+4 | |
| | ||||||
* | Add default nosetests config | Jason Kölker | 2011-11-30 | 1 | -0/+22 | |
| | | | | | | Default to using coverage with html output reporting, tissue for pep8 checking, and openstack-nose for output formating when running tests directly under nose. | |||||
* | Rename setup_extensions_test_app so that nosetests ignores it | Jason Kölker | 2011-11-30 | 1 | -15/+15 | |
| | | | | | Allows the use of openstack.nose_plugin's coloring/output for nosetests should the user desire to not use run_tests.sh/py | |||||
* | ignore cover's html directory | Jason Kölker | 2011-11-30 | 1 | -0/+1 | |
| | ||||||
* | don't tag rev | Jason Kölker | 2011-11-30 | 1 | -3/+0 | |
| | ||||||
* | add __init__.py so tests run, remove bin and skeleton from pep8 | Jason Kölker | 2011-11-01 | 3 | -1/+1 | |
| | ||||||
* | remove bzr requirement | Jason Kölker | 2011-11-01 | 1 | -1/+0 | |
| | ||||||
* | remove the version requirement on mox | Jason Kölker | 2011-11-01 | 1 | -1/+1 | |
| | ||||||
* | put requires in setup.py so when package gets included as a requirement, the ↵ | Jason Kölker | 2011-11-01 | 1 | -2/+10 | |
| | | | | requirements follow along | |||||
* | Merge commit '99b2c6c202b1ec450e5f7bc1c4080f8c36773376' | Jason Kölker | 2011-11-01 | 7 | -30/+128 | |
|\ | ||||||
| * | Rajaram/Vinkesh|increased tests for Request and Response serializers | Rajaram Mallya | 2011-09-14 | 3 | -9/+18 | |
| | | ||||||
| * | Rajaram/Vinkesh|added config test file from glance | Rajaram Mallya | 2011-09-09 | 1 | -0/+66 | |
| | | ||||||
| * | Rajaram/Vinkesh|Default xmlns for extension serialization can be overriden, ↵ | Rajaram Mallya | 2011-09-09 | 3 | -21/+44 | |
| | | | | | | | | added default factory for extension middleware | |||||
* | | merge in upstream | Jason Kölker | 2011-11-01 | 16 | -70/+2651 | |
|\| | ||||||
| * | Rajaram/Vinkesh | Copied tests for wsgi from nova. Added default ↵ | Rajaram Mallya | 2011-09-08 | 6 | -135/+701 | |
| | | | | | | | | content/accept types in Request which can be overridden by projects. Copied tests for XML serialization of Extension Controller's action from nova | |||||
| * | Rajaram/Vinkesh | Fixed the extension bug where custom collection actions' ↵ | Rajaram Mallya | 2011-09-07 | 2 | -18/+36 | |
| | | | | | | | | routes in resource extension were not getting registered | |||||
| * | Vinkesh/Rajaram|Added nova's extension framework into common and tests for it | Rajaram Mallya | 2011-09-07 | 6 | -0/+1077 | |
| | | ||||||
| * | Rajaram/Vinkesh|Added nova's serializaiton classes into common | Rajaram Mallya | 2011-09-07 | 3 | -67/+425 | |
| | | ||||||
| * | Vinkesh/Rajaram|Added scripts to run tests from nova | Rajaram Mallya | 2011-09-07 | 5 | -0/+560 | |
| | | ||||||
* | | Edited README via GitHub | Jason Kölker | 2011-09-28 | 1 | -5/+1 | |
| | | ||||||
* | | port execute and utcnow functions from nova | Jason Kölker | 2011-09-28 | 1 | -0/+103 | |
| | | ||||||
* | | update setup.py to only have common requires | Jason Kölker | 2011-09-28 | 1 | -2/+5 | |
| | | ||||||
* | | remove paste templates from common | Jason Kölker | 2011-09-28 | 29 | -1755/+0 | |
| | | ||||||
* | | Add readme to make github happy and the manifest so the templates get installed | Jason Kölker | 2011-09-27 | 2 | -0/+6 | |
| | | ||||||
* | | add Paste* requirements | Jason Kölker | 2011-09-27 | 1 | -2/+2 | |
| | | ||||||
* | | fake out the options needed and allout output to specific dir | Jason Kölker | 2011-09-27 | 1 | -0/+13 | |
| | | ||||||
* | | add the openstack paster command to spit out the template | Jason Kölker | 2011-09-27 | 2 | -0/+38 | |
| | |