10690 Commits

Author SHA1 Message Date
Jenkins
da341c9917 Merge "Improve docstring examples" 2017-04-18 07:54:28 +00:00
Jenkins
9902bd3eaa Merge "Use sequence directly instead of using len()" 2017-04-18 07:53:09 +00:00
Jenkins
0e50df450b Merge "TestSecurityGroupsBasicOps: log console from access point instance" 2017-04-17 18:16:11 +00:00
Jenkins
23aa354f17 Merge "Move the attr decorator from test.py to tempest/lib" 2017-04-17 10:55:32 +00:00
Masayuki Igawa
0c0f0143e1
Use sequence directly instead of using len()
This commit makes to use sequence directly instead of using
len(SEQUENCE). The original code works correctly, and it's really
straight forward. However, PEP8 recommends like below[1]. And it
makes code more simple, too.

```
For sequences, (strings, lists, tuples), use the fact that empty
sequences are false.

Yes: if not seq:
     if seq:

No: if len(seq):
    if not len(seq):
```

[1] https://www.python.org/dev/peps/pep-0008/#programming-recommendations

Change-Id: I8d41e16d82b1b3860a98e5217cb7a541fc83b907
2017-04-17 15:03:04 +09:00
Jenkins
549dfc93fb Merge "Add test of remove all security groups in test_server_actions.py" 2017-04-15 11:51:05 +00:00
Jenkins
8fb1547d69 Merge "Remove leading underscore in _create_test_user" 2017-04-14 09:33:46 +00:00
Jordan Pittier
3b46d27c90 Move the attr decorator from test.py to tempest/lib
I think it's a good idea to move all utility decorators into
tempest/lib/decorators.py. This patch does that for the `attr`
decorator.

Change-Id: Iaafbb112b6eee458089cc49918359a8a8d0485e2
2017-04-14 11:16:36 +02:00
Masayuki Igawa
683abe2a39
Improve docstring examples
This commit improves docstring examples. The original examples are
written in interactive mode style. However, I feel it's weird when it is
multiple lines, especially. So, this commit just removes '>>> ' and
updates some code block attributes.

Change-Id: I2f46042607c0f57d93634fbdffbb4400256a8489
2017-04-14 14:29:05 +09:00
Jenkins
9d52e99ef1 Merge "Move the related_bug decorator from test.py to tempest/lib" 2017-04-14 04:35:40 +00:00
Jenkins
517c95fcb7 Merge "Prepare release notes for release 16.0.0" 16.0.0 2017-04-13 13:57:33 +00:00
Jenkins
6b06865f84 Merge "Cleanup services decorator" 2017-04-13 13:57:03 +00:00
Jordan Pittier
c5665a6cc7 Move the related_bug decorator from test.py to tempest/lib
I think it's a good idea to move all utility decorators into
tempest/lib/decorators.py. This patch does that for the `related_bug`
decorator.

Change-Id: I846d575e41f4dddfd5642b7750e988f75a717e7d
2017-04-13 15:51:22 +02:00
Jenkins
e465c342ed Merge "Stop using self.parameters for compute clients" 2017-04-13 13:51:19 +00:00
Jenkins
f7378e2e4c Merge "Fix and improve ServiceClients docstring examples" 2017-04-13 13:51:10 +00:00
Jenkins
a9e99eb7c1 Merge "Fix test_volume_list_with_detail_param_marker" 2017-04-13 12:40:00 +00:00
zhufl
75d51a9bad Remove leading underscore in _create_test_user
This is to remove leading underscore in _create_test_user,
and to generate some random values for the fields that
are not given, so create_test_user can be more widely
used to make code clean.

Change-Id: Iacb6c1390de3718694dc3a1bb5ec2012e4164b13
2017-04-13 11:35:32 +00:00
Jenkins
0802591707 Merge "Fix invalid values when setting config options' default value" 2017-04-13 11:08:57 +00:00
Andrea Frittoli
6f05307629 Cleanup services decorator
Rather than repeating the list of services twice, use the
one defined in get_service_list. Note that this removes
baremetal from the list of accepted services.

Change-Id: Ib5a9b33a54ef1064f5dc8f6206ddd1c7d218fc8e
2017-04-13 10:56:00 +00:00
Andrea Frittoli
203225702e Stop using self.parameters for compute clients
This was a leftover from when paremetrs was replaced with
configuration from the registry. Anything that is not standard
configuration must be passed from CONF.

Change-Id: I78fc364d10a1e56285766c57d5ec4c90be28fb18
2017-04-13 10:43:47 +00:00
Andrea Frittoli
e356f33d85 Fix and improve ServiceClients docstring examples
Change-Id: Ic40d39926294b6b28f0d4ded33a99ccff8cff7f2
2017-04-13 10:43:35 +00:00
Andrea Frittoli
5bb006900b Prepare release notes for release 16.0.0
Create a new note for Mitaka EOL.

Change-Id: I890fad800b8a7ae939ea01a980deb6d9ffb3af2a
2017-04-13 10:40:42 +00:00
ChangBo Guo(gcb)
8cc2cba2a0 Fix invalid values when setting config options' default value
Config options v3_endpoint_type, v2_public_endpoint_type and
v2_admin_endpoint_type only allow dedicated values[1],
oslo.config 4.0 will check overridden value type by default[2],
so need remove invalid overridden values.

[1] 0d93900ba6/tempest/config.py (L145-L164)
[2] https://review.openstack.org/#/c/328692/

Closes-Bug: #1517839

Change-Id: I86cc9e53b86a69357254b68ba564df716a2284a5
2017-04-13 12:53:34 +08:00
Jenkins
0d93900ba6 Merge "Deprecate client_parameters from ServiceClients" 2017-04-13 03:42:26 +00:00
Jenkins
1839b8dc9b Merge "Beautify assertEmpty and assertNotEmpty" 2017-04-13 03:32:21 +00:00
Jenkins
ed072da51e Merge "Add name param in setup_test_role" 2017-04-12 10:20:06 +00:00
Jenkins
17217e33ee Merge "Remove test_baremetal_nodes from tempest" 2017-04-12 10:17:48 +00:00
Jordan Pittier
fb35d22a7a Fix test_volume_list_with_detail_param_marker
The test_volume_list_with_detail_param_marker has been skipped
since Ic1c62311b32ed0c26b9aa085c64d4d44a1271840 The problem
is that the test assumed that the created volumes (in the test
setup) were ordered by ID.

This patch fixes the test by testing explicitely that all the
volumes ID we got in response to our list request have an ID
greater than a given/choosen marker.

Change-Id: Ie480a00abcb4c6be494aaa6afb2c061c2e0d4816
Closes-Bug: #1572765
2017-04-12 10:46:33 +02:00
Andrea Frittoli
3b6d599c9b Deprecate client_parameters from ServiceClients
client_parameters was been designed as a way to pass parameters
for service clients to the ServiceClients class.

After the initial implementation, the client registry was added,
which allows for automatic registration of all clients and their
parameters. If configuration is available, parameters will be
pushed into the registry automatically.

When the registry part was implemented, the client_parameters logic
has been broken. Parameters are loaded and prepared correctly, but
ultimately they are not used for registration, they are basically ignored.

So this commit simply deprecates client_parameters, so that once it's not
used in tempest/clients.py anymore and the deprecation periodic is over
it can be removed.

closes-bug: #1680915
Change-Id: Ib37bde098d15ce440297728f0d0e1087b8693b6c
2017-04-12 08:43:12 +00:00
Jenkins
64d4d5d273 Merge "Updated from global requirements" 2017-04-12 07:25:08 +00:00
Jenkins
31815fbab4 Merge "Make bash shebangs through /usr/bin/env" 2017-04-12 05:47:36 +00:00
OpenStack Proposal Bot
1e8d676113 Updated from global requirements
Change-Id: I5f85413f0bea11408d827e2452e6d60fe2cf0cc6
2017-04-12 04:23:44 +00:00
Jenkins
6455980e71 Merge "Add Apache License content in .py files" 2017-04-11 10:32:36 +00:00
Masayuki Igawa
e1a5083ea1
Make bash shebangs through /usr/bin/env
This commit makes bash shebangs through /usr/bin/env. The originals work
correctly. However, it could be more flexible through /usr/bin/env. And
we already have a same thing in tools/tox_install.sh. So this commit
makes them consistent, too.

Change-Id: I35a6940cbd95c3b0f0d0f6391584b826e4de2ce5
2017-04-11 18:46:16 +09:00
zwhe
1b0567c680 Remove test_baremetal_nodes from tempest
Current compute baremetal tests involve ironic and nova. Ironic to
create baremetal node and then GET nodes using nova APIs.

Nova only provides GET APIs for baremetal nodes which has been deprecated.

This tests is testing Ironic node GET/POST etc which are covered on
ironic tempest plugin and nova API testing is covered in nova functional
tests.

It needs Ironic to be present and so ironic baremetal client.

With all points in consideration we should remove this tests from tempest.

It satisfy all rules as defined in tests removal procedure.
1. Nova functional test is enough for this API testing.
   -http://git.openstack.org/cgit/openstack/nova/tree/nova/tests/functional/api_sample_tests/test_baremetal_nodes.py
2. gate does not run this test.
3. No external usage:
   - http://codesearch.openstack.org/?q=test_list_get_baremetal_nodes&i=nope&files=&repos=

Change-Id: Ide9ca3a349f396c994f1c822c3d040d93547ad48
Closes-Bug: #1675416
2017-04-11 09:22:29 +00:00
yuhui_inspur
cd420fb059 Add Apache License content in .py files
Change-Id: Iebd5844dc2b999f19264daf61d4b73dc85f42111
2017-04-11 01:47:43 -07:00
zhufl
66b616a676 Add name param in setup_test_role
This is to add name param in setup_test_role, only when
name is not specified then random name is generated, thus
setup_test_role can be more widely used to make the code
clean.

Change-Id: Ice8cf92cdbb7294f43cb880997cc5d51f6406f50
2017-04-11 15:00:32 +08:00
zhufl
98544cff64 Fix api ref link in TransfersClient
Api ref links in TransfersClient are broken, this is
to fix them.

No other broken links in current code.

Change-Id: I19be9d4afcb82b546cda093655d35c930f85c932
2017-04-11 10:51:04 +08:00
Andrea Frittoli
b86de8898f Format multi-line release notes properly
Change-Id: Ia3753f054eb7aee1c9e9a7af77bbefd7693b39f9
2017-04-10 10:01:14 -04:00
Jenkins
c85642f6e2 Merge "Fix heading levels in write_tests doc" 2017-04-10 09:53:31 +00:00
Jenkins
67bcab8e92 Merge "Fix broken api link and put api link in one line" 2017-04-10 09:51:24 +00:00
Andrea Frittoli
71c71e9444 Beautify assertEmpty and assertNotEmpty
Don't use 'list' as a parameter name since this assert can be used
for any sequence or collection. Add docstring for both helpers.

Change-Id: I747507c3a5d0cf6f84915c8dd9222f4c082cbc04
2017-04-10 08:26:14 +00:00
zhufl
6ea5f8bedc Fix broken api link and put api link in one line
This is to put api link in one line and fix some
broken api links.

This is the last patch before api-site making any
change of ref links.

Change-Id: I6fe6883f888bdb2678d29ab66b84aaf0f602b2fa
2017-04-10 09:24:04 +08:00
Jenkins
c05a58c0ca Merge "Delete volume with associated snapshots" 2017-04-09 07:25:44 +00:00
Matthew Treinish
8f28d1fff4
Fix heading levels in write_tests doc
This commit fixes the top level header for the write_tests doc.
Previously, the doc title was set as the same as the section. This
caused things like table of contents to confuse the hierarchy of the
sections in the docs. This commit fixes that by setting the doc title
to be a higher lever in the hierarchy.

Change-Id: I2ecb110c766a71e1dc2d9e663ca38ece76dc327d
2017-04-08 21:35:41 -04:00
Jenkins
805f4ddc9b Merge "Remove duplicated testcase test_get_private_image" 2017-04-08 21:21:34 +00:00
Jenkins
b04b587db9 Merge "Remove non-existent config options of oslo modules" 2017-04-08 15:27:37 +00:00
Jenkins
085ab2d4f2 Merge "Remove oslo.i18n entry from config-generator" 2017-04-08 08:03:15 +00:00
Jenkins
416a64e148 Merge "Test live migration back and forth" 2017-04-08 06:28:04 +00:00
Ken'ichi Ohmichi
9e0771f83f Remove non-existent config options of oslo modules
oslo.serialization and oslo.utils don't have any config options at all,
and `tempest init` command did output warning message when generating
tempest.conf. So this patch removes these entries from config-generator.

Closes-Bug: #1620861
Change-Id: Icad81bca5e3e3b69dee99fdac71174c149fd6df2
2017-04-07 12:37:23 -07:00