Implementing client for the following APIs
DELETE,HEAD,GET,PUT apis for
/v3/OS-EP-FILTER/projects/{project_id}/endpoints/ and
/v3/OS-EP-FILTER/endpoints/{project_id}/projects
Change-Id: I42fc49dea52ac4612cb018f3964675444c96ffdd
Co-Authored-By: Uday T Kumar <uk310y@att.com>
Co-Authored-By: Kaustav Royburman <kr336r@att.com>
Partial-bug: #1673749
V2 volumes_client in Tempest doesn't contain volume action: force
detach volume. This patch adds the support.
Including:
[1] Add force detach volume api to v2 volumes client
[2] Add release notes
[3] Add unit test for force detach volume api
[3] Add test case: test_force_detach_volume
Change-Id: I172913b7d372225328a3c30299926c599c7d245a
As shown in change I7d7a708b231070468616ae852d81d2f8b01ba568
this test will pass if you're using new enough libvirt. According
to the change that closed the related bug:
I8fcc3ef3cb5d9fd3a95067929c496fdb5976fd41
Libvirt needs to be >= 1.2.17. We're using libvirt 2.5.0 on
xenial nodes now so that's why we can enable this test again
for master (pike).
Change-Id: I2f84b2996e8f062930add348668f50c9c66dda9d
Related-Bug: #1398999
Image APIs in compute has been deprecated, just like volume extension
(os-volumes, os-snapshots), networks(os-networks), etc. Image native APIs
are recommended. And Glance V1 APIs are deprecated and v2 are current.
This patch substitue the old compute_image_client and remove Glance v1
APIs in volume tests, just use Glance v2 APIs.
Change-Id: I2cbae9775d54da40cc6af8a247a8113dde2a5579
assertRaisesRegexp is deprecated because in unittest version 3.2 was renamed
to assertRaisesRegex.
Change-Id: I0454200dc730fd4d3f0e1b234d48d8875c843fb6
Closes-Bug: #1683818
Only run Identity V2 admin tests if the identity v2 admin API is
available. The new config flag is set to True by default.
Change-Id: I43459cb1a96e725dde41e23962e367dbdc345686
This is to add **kwargs in base.create_domain, in order that
it can be more widely used in testcases, so to make code clean.
Change-Id: I0ed9102bd9d535b40467e9bf4600a291bfca0fc2
Now that an L3 Agent always returns its "agent_mode" no need to fallback
to default value if the agent_mode is not returned.
This fixes an old TODO by armax.
Also, optimize a bit the test to use server-side L3 Agent filtering.
And simplify multistring docstring to comply with H404.
Change-Id: Ib02d04082184bc7d5a520180d3d047d6b2024344
The config option ``forbid_global_implied_dsr`` from the ``IdentityFeature``
group is now deprecated. This feature flag was introduced to support
testing of old OpenStack versions which are not supported anymore.
Change-Id: Ib5dbb2e4a5d3d05a18e30b890b316c0669bf4229
This patch adds a negative test for creating volume from image, which
the volume size provided is smaller than the min_disk of image.
Change-Id: I2290564af15c821cd8c99c8fcac8ed1d8994cbd1
The config value identity.auth_version defines the identity API
version used for all common API tests, such as identity API calls
performed by non-identity tests, as well as provisioning of
dynamic accounts, with the exception of identity tests.
Since the v2 API is deprecated, we don't need to run v2 admin
tests in the gate anymore. However v2 user APIs are most likely
still widely used by OpenStack users, and we should keep those
test runnings.
Right now identity tests control which version of the identity
API is used to allocate / provision test accounts by setting
an identity_version class attribute.
This behaviour forces us to run an identity v2 admin endpoint
only to be able to provision accounts for identity v2 tests.
This commit changes the current behaviour to always provision
accounts with the identity API version specified in
CONF.identity.auth_version. When v3 is configured (which is
the case in all gate jobs), v3 credentials will be provisioned
and then used for v2 non-admin tests.
Depends-on: I801e6740258ddea2a1b628a209970e0307d39d12
Change-Id: I2601433585740030ab61433f0e8ca1a919275d9f
Compute networks client is never been used in volume api tests,
and it's reasonable to remove the client to make code clean.
Change-Id: I616327b8b52cdecb731426c1b9e3d6e3819a6e4a
This commit removes of the duplication of skip_tracker in
tempest/lib/cmd and tools. And we already have 'skip-tracker' command.
It comes from tempest/lib/cmd/skip_tracker.py, so I think we don't need
to have duplicated code. So we should deprecate it in tools directory.
This commit also add a default test_path value for convenience and
compatibility.
Change-Id: I43a0a9d115e59c860714a47aea11017e8b58b5e7
Swift provides a single API to Create, Update or Delete
account metadata.
With different headers or values those operation can be
achieved. For example:
- delete metadata by passing metadata without value
- update metadata by passing updated value with same key
Details- http://developer.openstack.org/api-ref/object-storage/?expanded=create-update-or-delete-account-metadata-detail
But current service client for account has 3 different
method for these operation. create_, delete_ and create_and_delete_
To make it consistent with other service client and to have
single service client method per API, this patch merge those
methods.
Partially implements blueprint consistent-service-method-names
Change-Id: I098e4ccc0d7b443d77ee055f39958e983acf7113
I99f9910f75aef095f2bbb37680ee584e52bf82da introduced a new
kwarg to the delete_volume() method. But the correct way to
do this is to introduce a generic **params argument, so avoid
changing the signature of the method too often.
Change-Id: Ifb6731fd893a32bea6c7832236bb26a2eacaf56c
This is to add **kwargs in base.setup_test_project, in order
that it can be more widely used in testcases to create test
project, so to make code clean.
Change-Id: Ife6e6645a6ddb5d5f291641620333d12afae7d86