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
- All OpenStack projects have API versioning
- Existing endpoints are now prefixed with /v1
- Still fully backward compatible with old endpoints
- No HTTP redirects is used to avoid unexpected behaviors with
existing clients
Change-Id: If51f3291c44615991b3378b711dffacc1bd2591f
- remove inline docs from routes.py
- correct certain response payloads
- add all api docs to index.rst
Change-Id: I58bb24f1a8ce173264ab9c1607cbe3af8d936fdb
Openstack common has a wrapper for generating uuids.
We should only use that function when generating uuids for consistency.
Change-Id: I03a683f02ef0bb98afce2c91d4186ce63522dbeb
Tempest provides stable library interfaces under tempest.lib.
This patch switches to use it for data_utils.
Change-Id: Id42ef764130b6fd82e089486775acdd4e709ecfc
This change avoid sending notification to critical queue
when instances are deleted before their completion.
Since we are never going to receive the create.end event,
we use a 15 minutes window to assume the instance was never
created. This check is made only if the entity is not found.
- Add more flexible filters system
- For now, filters are only for on delete events
- Add date helper to manipulate and parse date
Change-Id: Iba97f050bf6e164bf0d83035a884cdbe023d92fc
Tempest now have only 1 image instead of two. This address the
concern by setting the metadata to all images and returning the
first one instead of assuming there is two.
Change-Id: I8ea8ae85d06c8dcc7373c9cf8cd5a9c978b15e28
When a new instance is created and the state is in error,
the event "compute.instance.create.end" is never sent.
However, when we delete an errored instance the deletion event is
sent, but the entity doesn't exists in te database.
This fix avoid false positives in the critical queue.
Change-Id: I70a4ae92bda37909cfd6021e0311a69b7ad189bc
- Nova can send notifications directly on the error queue.
- We should handle only notifications reported as error by Almanach.
Change-Id: Ic41e7115dd7d4f99d72d3319af67b204a0b62122
- required for removal of the last occurence of flexmock
- bit of a big bang change but all must be changed at the same time
Change-Id: Ib329056e5904b726490173d5e43a0ac74592722f
- The argument service doesn't exists anymore and
set the value of the variable scope to None instead.
- Make tests a little bit less flaky by using waiters
inspired by tempest waiters
Change-Id: Ic376f22d9244d3ddb8d9e8ed0e00c4a64f5cede5
- Add unit tests for models
- Avoid default method arguments with mutable values
- Simplify object serialization/unserialization
- Model objects are self-contained and do not use global functions
- Do not hardcode specific image metadata in the code
- Rename "os" key to the standard name "image_meta"
- Both keys "os" and "image_meta" are stored in the db for backward compatibility
- List of image metadata is configurable in config file
Change-Id: I2826713e438de63a49aae71cf7100288bde6bee1