Commit Graph

15 Commits

Author SHA1 Message Date
Andreas Jaeger 41254a3578 Update requirements manually
The global requirments sync for this repo fails since it lists
packages that are not in the global list. Manually sync requirements.

Failure log from requirements sync:
http://logs.openstack.org/d8/d89aad257d43fe02e42e44b2a0187dbd9f505c36/post/propose-update-requirements/15a7777/job-output.txt.gz#_2018-01-31_06_47_53_939490

Errors are:
'jsonpickle' is not in global-requirements.txt or blacklist.txt
'mongomock' is not in global-requirements.txt or blacklist.txt

Change-Id: I4c99bca201da092d872ead25e96c41f0d8c94ddf
2018-01-31 09:16:51 +01:00
melissaml 6a4c5ed448 Remove obsolete tempest-lib
tempest-lib has been reintegrated into tempest and this repository
already uses tempest instead of tempest-lib. Replace requirements for
tempest-lib with requirements for tempest.

See also
https://specs.openstack.org/openstack/qa-specs/specs/tempest/implemented/reintegrate-tempest-lib.html

Change-Id: I81f67d6cad8d289803ea32e2d3f62a3e2b73413d
2018-01-22 11:34:01 +08:00
Frédéric Guillot c22dc7babe Write doc without flask autodoc
- remove inline docs from routes.py
- correct certain response payloads
- add all api docs to index.rst

Change-Id: I58bb24f1a8ce173264ab9c1607cbe3af8d936fdb
2017-04-18 09:31:50 -04:00
Paul Millette c024e7061c Remove last usages of flexmock
Change-Id: I4993bea250b96cc4f8fadabf03349ac9fcb6271a
2017-01-13 10:25:02 -05:00
Paul Millette 308a04d678 Remove all remaining usages of hamcrest
Change-Id: Ia6ebcf8be699c378c812c3a4771d20d62e7c8235
2017-01-12 13:40:12 -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 0f7939f412 Update devstack plugin
Requirements have to be changed to avoid conflicts
with other projects in devstack.

Moreover, all dependencies must be compatible with
global and upper OpenStack constraints.

Change-Id: Ie925b4481c865f398ac29eadfc58e9bfb18604c9
2016-11-30 15:46:50 -05:00
Frédéric Guillot f1cb73cab3 Use URL to define RabbitMQ connection
* kombu have been updated to be compatible with global
requirements
* Unit test have been modified due to breaking changes
introduced by kombu library
* kombu will be replaced later by oslo.messaging
* Add new config option to define multiple connection
URL separated by a semi-colon
* Use secret parameter to avoid any password leaks in log
files
* Add option for connection heartbeat

Change-Id: Ia1db99f5804a0b3cdd496485f6a9410758d567fe
2016-11-01 13:48:56 -04: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
Nguyen Hung Phuong 90bb67ffb6 Clean imports in code
In some part in the code we import objects.
In the Openstack style guidelines they recommend to import only
modules.

http://docs.openstack.org/developer/hacking/#imports

Change-Id: I58b2dab1a46128893648630edba615e2592040ac
2016-08-25 17:14:29 -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
Paul Millette 00f5d6994b Handle API response errors (#14)
Assert that exception message is not empty
Added voluptuous
2016-05-03 15:15:49 -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