Commit Graph

16 Commits

Author SHA1 Message Date
huang.zhiping 6a4445eb6c fix tox python3 overrides
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
2019-05-30 09:59:14 +00:00
Doug Hellmann 72b3b91247 add lower-constraints job
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>
2018-03-22 08:58:13 -04:00
luke.li 9e9fd41071 Enable some off-by-default checks
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
2017-06-22 10:57:36 +08:00
Vu Cong Tuan add74e4b01 Define hacking rules to ensure code quality
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
2017-06-14 18:44:22 +07:00
Tony Breeds 5e0dd6cd3f Add Constraints support
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
2016-12-20 15:27:09 +11:00
Frédéric Guillot 38d243f445 Add tempest scenario for volume types
- 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
2016-12-08 13:07:27 -05:00
Frédéric Guillot 1ea561c3c8 Add first tempest test
- First functional test for the API endpoint /info
- Move all unit tests to almanach.tests.unit like
other OpenStack projects

Change-Id: I8017aec28a060024f63bee59173b3c1df8879edb
2016-12-01 16:35:33 -05:00
Frédéric Guillot e0561271cf Migrate code base to oslo.config and oslo.log
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
2016-10-13 11:28:09 -04:00
Paul Millette 3262ba7b82 Generate api documentation using sphinx and autoflask
- add autoflask to index.rst
- add pydocs for all methods
- move app out of AlmanachApi so autoflask can see it

Change-Id: I83e1af74507091774d1eff86fa1d07a237d69729
2016-10-07 14:25:43 -04:00
Marc Aubry 451191f843 Add py35 for unit test
Change-Id: I102b3e1e55d8d2195525354d744a38afdf75be13
2016-08-23 15:08:35 -04:00
Marc Aubry 7f33dcc7df Add compatibility to python3
Change-Id: I20251e3dbe495c60a2a17751d84a395d10d38817
2016-08-22 17:47:19 -04:00
Frédéric Guillot caa78a0cd1 Make project compatible with OpenStack CI
* Add gitreview
* Update tox configuration
* Add skeleton for documentation
* Change requirements to be compatible with OpenStack global requirements

Change-Id: Ic137410083bebfe58a653d6ffc0565d6a61f393d
2016-08-15 10:17:51 -04:00
Frédéric Guillot 40554b98e3 Added Keystone autentication (#22)
* Added Keystone autentication

* Added license header

* Minor PEP8 fixes
2016-06-09 11:28:31 -04:00
Frédéric Guillot 6b6d25124f Added integration tests with Docker (#17)
* Added integration tests with Docker
* Cleanup more data
2016-05-19 16:06:02 -04:00
Marx314 b013e96aff flake8 now automated (#5)
* flake8 now automated
* 120 chars max, auto-reformat intellij
2016-04-15 07:49:15 -04:00
Frederic Guillot 27abb148bd First opensource commit 2016-03-25 11:30:58 -04:00