This is a start to have tempest handle Cinder API versions
based on what is actually enabled. There are currently a
lot of places in the code the assume v1 and v2 are available,
but those versions may be disabled, especially as we try to
get everyone moved onto the latest (final?) v3 API version.
There are more areas that should be fixed up before we can
actually just work with v3 only, but this is a start to get
there.
Closes-bug: #1703044
Change-Id: Icc2e12f06c3b4899f934f000e191552f4a5cd2a9
An instance action event's finish_time and result can be None when
the event is not yet completed. This is common in Nova. The nova-api
service creates the instance action record and the nova-compute service
has a method which performs the actual operation on the server
instance. The method in the compute is wrapped with an EventReporter
decorator which records the event start and finish times. So until
the event (operation) is complete, the event finish_time and result
are going to be None.
Change-Id: I964d9170ca7f038e9ab968e119f03fbe9efae588
Closes-Bug: #1702758
_create_service in test_endpoint_groups.py is a class
method, so cls should be used instead of self.
Change-Id: I80e1c4ac1091d8ce98967e9e184ef63466b51990
It will help to catch tempest plugin config and dependency issues
with tempest.
sh ./tools/tools/tempest-plugin-sanity.sh or
tox -e plugin-sanity-check will invoke the same.
Change-Id: If42561bfc1d6dcffbb6537634d7769ef90fab21d
This patch adds 'params' argument to list_backups API in v2 BackupsClient,
to enable passing additional information in the query string of the HTTP
request.
Change-Id: I8e31a55741f9bebf7b3d70491e2353b466dce06e
This patch supplements unit tests for volume v2 transfers client,
and also makes some modifications to the original unit tests.
Change-Id: Ib60665c1819ed19fdd13454bec3642ec1451b3e9
Partially Implements: blueprint tempest-lib-missing-test-coverage
This patch:
- adds ``disable_log_reason`` and ``update_forced_down`` API
endpoints to the compute ``services_client``
- adds corresponding unit tests and schemas
(for 2.11 microversion)
- changes ``host_name`` parameter in the unit tests for
``services_client`` to ``host`` because ``host_name``
is wrong; see [0] for example
However, this patch does not add API tests for these endpoints
because they result in compute services being forced down
or disabled, which are dangerous to test in the gates.
Valid use cases for these APIs include:
- negative testing
- RBAC testing (forcing a BadRequest but ensuring policy enforcement
happens beforehand)
[0] https://developer.openstack.org/api-ref/compute/#update-forced-down
Change-Id: I641218e104bba55e3679a7111e7f3d042ad7665b
Change the default value for ip_version from '4' to the real ip version
of subnet_cidr.
Change-Id: Iaca1bb541a34af862b938e17e4a56d53de7a9cc6
Closes-Bug: 1702222
Update volume backup is a new api implemented in volume v3 (since 3.9).
This patch is to add test case for this new feature.
Including:
[1] Add v3 backups_client as a library
[2] Add update backup api to v3 backups_client
[3] Add unit tests for update backup api
[4] Add test case: test_update_backup
[5] Add release note
Change-Id: Id50fcdbc41e9e170f3d467789f80c28bac01d434
This patch adds test for the missing API (volume v2):
show specific metadata item for a snapshot.
Including:
[1] Add show snapshot metadata item API to v2 snapshots_client
[2] Add unit test for the API
[3] Modify test case: test_update_snapshot_metadata_item
[4] Add release note
According defcore(interop) patch is:
I672bbcb9983e7a3ace7769722d6ff97f7bc0ccc8
Change-Id: I3697406e5541bbdb191e4d6e63831be31b471e78
This commit fixes a doc typo of check_service_client_function to_utf
parameter in lib.tests.services.base.BaseServiceTest class. This
parameter is used for a response body not for a request body.
Change-Id: Ife265758916c4272558b9d7b6652111053bca9bb
This patch adds test for the missing API (volume v2):
show specific metadata item for a volume.
Including:
[1] Add show volume metadata item API to v2 volumes_client
[2] Add unit test for the API
[3] Modify test case: test_update_volume_metadata_item
[4] Add release note
According defcore(interop) patch is:
Ica8b57f5f5392e2bf47e368e9b10ef9fa5695c30
Change-Id: Idb9d198383ce93453707f1204806e4ae82c1e46a