13062 Commits

Author SHA1 Message Date
Ghanshyam Mann
de1dec851a Add release notes page for version 22.0.0
Tempest 22.0.0 has been released [1].
This commit adds a new page for 22.0.0 release notes.

[1] https://review.opendev.org/#/c/685406/

Change-Id: Ic9437f871fb94f84f106590145177d3c6eabb345
2019-10-07 17:47:26 +00:00
Matthew Treinish
13c190d62e
Add release note for log_req_body kwarg
This commit updates the release note from change
I7cbd3656463a51d18b4d72f45a324145283fc7eb. That commit was missing a
release note for the extra kwarg and concentrated only on the security
fix. This commit addresses that oversight. In addition the security note
is removed from the release notes because it's not addressing a released
security issue, just a short lived one introduced during development of
the pending release.

Change-Id: Id2d34eb911435e5a1036d0494a7df43eda2ebf0a
2019-10-04 11:14:36 -04:00
Ghanshyam Mann
47a4199326 Fix the logging of request body credentials
Recently we moved the logging of request from rest_client's
request() to raw_request which end up logging the credentials
also from Token client request.

This is to add a kwargs in raw_request() method which tell whether
request body needs to log or not. Also update Token clients to
pass '<omitted>' to stop logging the credential.

Change-Id: I7cbd3656463a51d18b4d72f45a324145283fc7eb
2019-10-02 23:11:04 +00:00
Zuul
420155c234 Merge "Call tearDownClass when handling skip exception on setUpClass" 2019-10-02 02:23:19 +00:00
Zuul
2963608a25 Merge "Add releasenote to tag the Tempest for Train release" 2019-10-01 19:57:53 +00:00
Douglas Viroel
7155fdfdf6 Call tearDownClass when handling skip exception on setUpClass
In setUpClass, the workaround to handle skip exception issue is
not releasing allocated resources when a skip exception is raised
on resource_setup.

Change-Id: I2a5d5d60d524bd141b8ad0ffd436040906a2f36a
Closes-Bug: #1846236
2019-10-01 15:07:12 -03:00
Ghanshyam Mann
8094512a14 Add releasenote to tag the Tempest for Train release
This commit adds the releasenote to tag Tempest for Train
and needed for version 22.0.0 to release.

Change-Id: Iefd45a14178eb61e5c0a60116e30217fbab0284e
2019-09-30 10:57:59 +00:00
Zuul
de20df6954 Merge "Move logging from _request() to raw_request()" 2019-09-30 07:08:57 +00:00
Zuul
54a856ec05 Merge "Modify the comment for backups_client in v1" 2019-09-27 20:45:29 +00:00
linanbj
266024c8c5 Modify the comment for backups_client in v1
modify the comment for the file backup_client.py in v1

Change-Id: I68db479cb0023cb8271a0789e6d8eca8e0d14f8e
2019-09-26 01:23:00 +00:00
Ghanshyam Mann
cb3cf038eb Move logging from _request() to raw_request()
rest_client log all request and response data when called via its get,
post, put, delete method etc because logging is done in self._request().

But when any service client make API request via raw_request() then logging
is not done.

_request() method internally call the raw_request() method so moving the
logging from _request() to raw_request() will not effect existing behavior.

Change-Id: I096ea150bfdd1d700a15612a391142216f0fd0e8
2019-09-26 01:06:28 +00:00
Zuul
158f6b4b06 Merge "add unit test for list_user_projects method" 2019-09-26 01:02:08 +00:00
Zuul
91b4ce6c06 Merge "Enable volume backup tests" 2019-09-26 00:48:06 +00:00
Zuul
56bd3285b5 Merge "Remove barbican-tempest-plugin from blacklist" 2019-09-25 10:57:09 +00:00
Zuul
2a95744082 Merge "Add assertNotEmpty to avoid IndexError" 2019-09-25 06:35:42 +00:00
Zuul
1d11c5d696 Merge "Add 'single core approve' policy for plugins sanity jobs failure" 2019-09-25 03:55:51 +00:00
Zuul
e227022df9 Merge "Address bug 1839794 on the Volume show version client" 2019-09-24 08:37:14 +00:00
Masayuki Igawa
6fca957b09
Remove barbican-tempest-plugin from blacklist
This commit removes barbican-tempest-plugin from the blacklist. The
patch[1] got already merged. The plugin should work for the sanity now.

[1] https://review.opendev.org/#/c/634631/

Change-Id: I34d119c58afa6b3c728d1a540b4ea1df27d9c4d0
2019-09-24 16:53:32 +09:00
Zuul
b12f6e7295 Merge "Add workaround to handle the testtool skip exception issue" 2019-09-23 17:23:47 +00:00
Doug Schveninger
152f1054b5 Address bug 1839794 on the Volume show version client
Bug https://bugs.launchpad.net/tempest/+bug/1839794
found out that the volume version_show client that
was not used had a defect when builing the URL.
Used the same direction that the compute version client
did to strip off the version and project info and add
back the version.[0] Also added a Volume v3 test using the
client.

[0] https://github.com/openstack/tempest/blob/master/tempest/lib/services/compute/versions_client.py#L40

Change-Id: I9be99f5fc0eab3de125ce69415a0be65b1c4ad0d
Closes-Bug: #1839794
2019-09-20 22:20:33 -05:00
zhufl
f045a52971 Add assertNotEmpty to avoid IndexError
In VolumePoolsAdminTestsJSON, if no cinder pools is listed,
we get "IndexError: list index out of range", so we should
check whether cinder_pools is empty before using it.

Change-Id: I55c163993b4956458b8658dae9d11b61171b8b55
Closes-Bug: #1844772
2019-09-20 17:03:31 +08:00
Zuul
3f08a7f24e Merge "Added instructions about general IDE's in gitignore" 2019-09-20 03:52:54 +00:00
Zuul
240ae498c0 Merge "Modify the list project date" 2019-09-19 08:48:03 +00:00
Soniya Vyas
e656829712 Added instructions about general IDE's in gitignore
.gitignore file was missing a very general and easy
to forget instruction about general IDE's
contributors(new) use for developing code.

This instruction would be clear idea to add there
respective IDE's generated files to local git
configuration file so that they could be locally
ignored.

Change-Id: I6a7dc7fc6a535fe583e9db5878fc496232a69247
Signed-off-by: Soniya Vyas <svyas@redhat.com>
2019-09-19 14:01:04 +05:30
wangzhiguang
730d5df0c5 add unit test for list_user_projects method
add unit test for list_user_projects method

Change-Id: I1f7b4fbc05ad30d8300451330871448d29953e48
2019-09-19 15:46:27 +08:00
Zuul
c3575afa7d Merge "Add irrelevant files to .zuul.yaml" 2019-09-18 05:39:59 +00:00
Zuul
81b99c32b6 Merge "Bump the openstackdocstheme extension to 1.20" 2019-09-18 04:22:21 +00:00
wangzhiguang
9e79f2cc23 Modify the list project date
Modify the list project date according to the API document described

Change-Id: If49d7d600b6c17ddb6ae97d6f60b3818fa52a3e1
2019-09-17 19:40:26 +08:00
Masayuki Igawa
3044a29a17
Add irrelevant files to .zuul.yaml
This commit adds 4 irrelevant files to both "irrelevant-files" and
"irrelevant-files-2". We don't need to run tempest tests with updating
such files because they don't affect tempest tests.

Change-Id: I6f84abc1b9273f38b99678edaff54deb0fd99e0c
2019-09-17 15:30:54 +09:00
Zuul
5cc1eb63f5 Merge "Modify the list group date" 2019-09-16 04:44:53 +00:00
pengyuesheng
e740d39d04 Bump the openstackdocstheme extension to 1.20
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

Change-Id: Ia656e992e86293339521627acc892f81f7bd6a0b
2019-09-16 02:08:48 +00:00
Ghanshyam Mann
68ddf41891 Add workaround to handle the testtool skip exception issue
stestr which is used by Tempest internally to run the test switch
the customize test runner(which use stdlib unittest) for >=py3.5
else testtools.run.- https://github.com/mtreinish/stestr/pull/265

These two test runner are not compatible due to skip exception
handling(due to unittest2). testtools.run treat unittestt.SkipTest
as error and stdlib unittest treat unittest2.case.SkipTest raised
by testtools.TestCase.skipException.

testtool issue: https://github.com/testing-cabal/testtools/issues/272

testtool is not so active now a days and fix is also not decided,
let's add a workaround in Tempest to make it work for both test runner
based on python version same as used by stestr

Tempest should work perfectly with stestr<2.5.0 also which is
also handled in this workaround.

Change-Id: Ie9c013d4d6851d4deef57c1e4c254a9a34374e5a
2019-09-13 17:05:59 +00:00
Zuul
181a26d258 Merge "Add PDF building" 2019-09-13 13:49:55 +00:00
Masayuki Igawa
7e4ef4c823
Add PDF building
This commit add PDF building tox.ini environment and options for LaTeX
output. overview.rst is copied from README.rst. And, the original
README.rst file is shrunk because we don't need such a long information
in the README file. People can see the same contents in overview.rst
now.

Change-Id: Id654c814988e78704726d2ba8bea9a03ce8596f8
2019-09-11 16:42:28 +09:00
Zuul
fa4796b999 Merge "Add response schema validation for volume transfer" 2019-09-09 05:15:23 +00:00
Zuul
8d1b36559c Merge "Allow overridding OS_TEST_TIMEOUT via the role variables" 2019-09-07 06:01:49 +00:00
Zuul
6cdbfe21c5 Merge "Add response schema validation for volume quota_set" 2019-09-06 21:02:52 +00:00
zhufl
48a76dbcc7 Add response schema validation for volume transfer
This is to add response schema validation for volume transfer.
Besides, created_at should be removed from the response example of
"List volume transfers for a project" in api ref,
I52a81454a995920c1ba5534fea3d50f6c9986881 will fix them.

Change-Id: If31470dac38d7f08768f43fa77bd018a932f0313
partially-implements: blueprint volume-response-schema-validation
2019-09-06 18:11:51 +00:00
Zuul
4a911f12d5 Merge "Remove required projects for sanity job" 2019-09-05 19:29:11 +00:00
Zuul
3e39982a66 Merge "Add a CONTRIBUTING file" 2019-09-04 21:28:39 +00:00
Zuul
5b070361c8 Merge "Fix volume host schema: host name may not contain '@'" 2019-09-04 21:28:36 +00:00
Zuul
243fc4e14d Merge "Add response schema validation for snapshot manage" 2019-09-04 19:59:21 +00:00
Masayuki Igawa
fd227dab7e Add a CONTRIBUTING file
GitHub likes repos to have a CONTRIBUTING file. It will use this to
point people to the right place for how to contribute to this project.

Change-Id: Iad714c168dd8c476d8f99f131e3b7a998d165fc5
2019-09-04 13:44:17 +00:00
zhufl
391d2df83f Fix volume host schema: host name may not contain '@'
Host name in the response of show-host may not contain '@',
which makes https://review.opendev.org/#/c/678998/ fail.
This is to remove the strict check of '@', and the cinder
api-ref patch is https://review.opendev.org/#/c/679883/

Change-Id: I2c9339528eeb3bea3474709b261deec27d16d0b8
partially-implements: blueprint volume-response-schema-validation
2019-09-04 09:18:37 +08:00
Zuul
9d1c625746 Merge "Fix use of get_server_ip with fixed networks" 2019-09-03 20:47:41 +00:00
Zuul
a12a5b9681 Merge ""test_project_get_equals_list" allows extra fields" 2019-09-03 20:40:07 +00:00
Masayuki Igawa
f33ae3a5b4
Remove required projects for sanity job
This commit removes required projects for the sanity job. It should be
better to remove them since we don't need for sanity checking.

Change-Id: Iad2f9f3d08aa1a422a6a94cd56467a16f683fa3b
2019-09-03 17:21:19 +09:00
Zuul
2394557b4f Merge "Make plugin-sanity-check job as voting" 2019-09-02 16:12:32 +00:00
Mark Goddard
fa30d2fb51 Fix use of get_server_ip with fixed networks
If a fixed network is used, we see errors like the following in three
compute tests:

KeyError: 'addresses'

This is because get_server_ip expects to be called with a detailed
server response, but in these cases is called with a create server
response, which does not contain the 'addresses' field.

This change fixes the issue by obtaining a detailed server response
where necessary.

Change-Id: I9deeb0e527a8537c71657507cabd81a63a421d9c
Closes-Bug: #1817701
2019-09-02 14:56:24 +01:00
Dmitry Tantsur
5952f85343 Allow overridding OS_TEST_TIMEOUT via the role variables
Change-Id: I7e464ba27704a0b4b13d6e0787b81750deee965e
2019-09-02 14:56:07 +02:00