We want to default to running all tox environments under python 3, so
set the basepython value in each environment.
We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.
We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Change-Id: Ic4edafbbcb57454c2592483b6348d46138320ab5
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.
Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.
Add openstack-tox-lower-constraints job to the zuul configuration.
See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.
Change-Id: I70b61c30b6901058d05d5e035547b2b1fe8bec83
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Some of the available checks are diskabled by default, like:
[H106] Don't put vim configuration in source files;
[H203] Use assertIs(Not)None to check for None.
Change-Id: Ie3d5ff0766515e68398b60519d00eeee2199be84
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: I356a9c77986557a36144f503852fac5d6ba4bc20
To be co-installable with other OpenStack projects and have consistent
testing it's a good idea (tm) to use constraints when creating tox
environments
Change-Id: I342817b1ef813a190d97c61166bc303bc198d319
- This scenario test the creation of a new volume type.
- Cinder was not sending notifications because the config
file have to be changed.
- Keystone authentication was broken, we are
now using the v3 API.
- Kombu released a breaking change, the global constraints have
been updated: https://review.openstack.org/#/c/408643/
Change-Id: Ie6a50ff427b6402f0d023fe3468f3efac77a8fce
- First functional test for the API endpoint /info
- Move all unit tests to almanach.tests.unit like
other OpenStack projects
Change-Id: I8017aec28a060024f63bee59173b3c1df8879edb
In order to migrate the code base to the "OpenStack way":
* Replace ConfigParser by oslo.config
* Replace logging by oslo.log
* Use testtools as base class for unit tests
* Add tox -e genconfig to generate config file
* Start to organize the file structure like other projects
* Define 2 cli entry points almanach-collector and almanach-api
* The docker-compose.yml is now used to run integration-tests
* Integration tests will be moved to tempest in the future
* Docker configs should be deprecated and moved to Kolla
Change-Id: I89a89a92c7bdb3125cc568323db0f9488e1380db
- add autoflask to index.rst
- add pydocs for all methods
- move app out of AlmanachApi so autoflask can see it
Change-Id: I83e1af74507091774d1eff86fa1d07a237d69729
* Add gitreview
* Update tox configuration
* Add skeleton for documentation
* Change requirements to be compatible with OpenStack global requirements
Change-Id: Ic137410083bebfe58a653d6ffc0565d6a61f393d