| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
Replace the following items with Python 3 style code
Remove six in follows:
- six.text_type
Change-Id: I68d46733dd4dcef7a37e940ccbba5a66bfce2b5b
|
| |
|
|
|
|
|
|
| |
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.
Change-Id: If1de2f48da1fd6ed3f96c98b8dce9eace4f8095d
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. The compute images API is deprecated from the Microversion 2.36,
so we should set max_microversion = '2.35' for compute image tests.
2. Compute image_create is not deprecated.
3. In testcases other than those in compute/images, we can simply
change to use glance images_client, which will also work before
microversion 2.35.
ref: https://developer.openstack.org/api-ref/compute/#list-images
https://developer.openstack.org/api-ref/compute/#create-image-createimage-action
Implements blueprint: clear-deprecated-api
Change-Id: I7a40d26449a361f0e3ec922ac41a7c522b572803
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
As there are lot of API microversion with behavior change,
tests internal checks needs to be adjusted according to
requested microversion.
Example: https://review.openstack.org/#/c/557280/
That need to compare the requested microversion with max supported
microversion. Same comparison is needed multiple places in multiple
files.
This commit adds a common method to do the microversion comparison
which can be used in many place.
Change-Id: Ib54777e5ce101bab6c2980ae69ef2c5d978ff064
|
| |
|
|
|
|
| |
Cleanup images in compute tests via addClassResourceCleanup.
Change-Id: I74b01dfa9e1754f4034046daf03f9404abf40b8e
|
| |
|
|
|
|
|
|
|
|
|
|
| |
The kwarg really is used - and some virt drivers break without this extra wait.
For example, the XenServer CI became unstable again without this fix
Note that this fix was originally added to ensure stability in this CI
environment (fixing bug 1258635)
This reverts commit 621544cc962b35025d3cbb97e7eb32fa7d9f508a.
Change-Id: I1547bf3ee4bb7a6c1552d0c1fa90280af1a9802c
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When we get a 404 from Glance because a server snapshot
is not found while we're waiting for it to be ACTIVE, it
means Nova deleted the failed snapshot from Glance because
something failed in nova-compute during the snapshot
operation.
Rather than just dump a 404 in the test console output on this
type of failure, this change gets the server which should have
a fault recorded and uses that to raise a more useful error
message for the test output.
Change-Id: I8ee2e18925e7f4f09d10d857fb25f3d9b8e8bd42
|
|
|
Before building some more logic into this utility method, we
need some unit test coverage. That starts here.
Change-Id: I623ddcfe0e796a9a5291282931f16c1e5165206b
|