To generate the sample config file, do what other OpenStack projects do
and use the oslo.config provided mechanism.
Story: 2001009
Task: 4201
Change-Id: I490de4110843f7dfd618a6a8cc8d6a4e35db65ce
Enforce following codestyle rules:
* no xrange
* no LOG.warn usage (deprecated in favour of LOG.warning)
* usage of assertTrue(x) instead assertEqual(True, x)
* usage of assertIsNone(x) instead assertEqual(None, x)
* usage of assertIsNotNone(x) instead assertNotEqual(None, x)
or assertIsNot(None, x)
Change-Id: Ib5b61816faae95937c99b1e4f651c6390b888070
Both are optional requirements (but one must be used) so add both to the
"extras" section instead of a commented entry in requirements.txt .
Change-Id: I1f0eca2474ca275f64314a7b30b18e534afefdee
Add bandit job as part of pep8 in tox.ini
Had to fix one issue and mark two instances of try except pass as OK so that
bandit will pass
Change-Id: Ia1c96e27d1bae360c6ae0d4131665e2b712f573f
Add unit tests for persister.py in root directory.
Additionally:
* switched to testr as it seems to be used in many
openstack projects
* enabled coverage
Change-Id: I429ef6a900808c192ad5613c13808583d33fde24
There is no this directory openstack/common which was used
to keep codes from oslo-incubator, we have retired oslo-incubator.
Removing openstack/commonfrom all OpenStack code in favor of the
Oslo libraries is a project wide goal for the Ocata release. So
don't use this directory any more. We should drop it for improving
searching efficiency.
Change-Id: I65e1a75c65d44ff50c9ab0c2ff8c66faa99c227b
I unlock the hacking requirements in test-requirements.txt
Change-Id: I2a26845f16064be8c082d9cbe2e2d2bc48339314
Signed-off-by: Micu Matei-Marius <mmicu@cloudbasesolutions.com>
This review is to prepare for adding monasca-persister into openstack
global-requirements. After this project gets into global requirements,
it will be in upper-constraints.txt. If we make changes on this
specific project, we need to replace it in the upper-constraints with
source based specifier before applying it to pip install.
Change-Id: Ife8c77d41815b262300068497f7197af35ef2f5a
Add upper-constraints and min tox version.
This will prevent taking in packages that
are greater then what is defined in the
upper-constraints
Change-Id: I4a7aea0900efa767a4a557d20d601caa9938dfeb
Bring over the cleaning line from run_tests.sh for the pyc files to
all the tox runs.
This should eliminate the need to clean -x -i to kill pyc files in
your local directory to get tests to pass.
Change-Id: Ifc8df1634336fdfd298c353ad808c77f48b87b68
Closes-Bug: #1368661