10704 Commits

Author SHA1 Message Date
lkuchlan
32b53c318d Move 'test_admin_deactivate_reactivate_image' test under non-admin directory
Image deactivate and reactivate actions are NOT need admin privileges.

Change-Id: I9ccf070a12d24e63db5fb0f960c8be764b1b02dd
2017-04-21 08:27:31 +03:00
Jenkins
8bf816a7fb Merge "Add judgie condition after live-migration with volume" 2017-04-20 10:09:22 +00:00
Jenkins
c5d59c08d9 Merge "Remove usage of deprecated get_ipv6_addr_by_EUI64 function" 2017-04-20 08:10:38 +00:00
Jenkins
f2da61cb0b Merge "Remove some debug print statements" 2017-04-20 05:53:32 +00:00
Jenkins
b274c5a558 Merge "Add a page for release 16 to release notes" 2017-04-19 16:45:03 +00:00
Jordan Pittier
7ecc0ecb2a Remove some debug print statements
This is clearly a leftover added while coding. Those print
statements just add some noise in our unit test runs.

Change-Id: Ib0daea56cb8b1eef73528ba16b88dd3e8fbd86da
2017-04-19 16:14:26 +02:00
Jordan Pittier
52c9bf27f2 Remove usage of deprecated get_ipv6_addr_by_EUI64 function
As properly decorated with oslo-debtcollector, the get_ipv6_addr_by_EUI64
function from the data_utils module is deprecated. We should use the
equivalent function from oslo-utils instead.

Change-Id: Ida84f13fff2b660af67676ed3432ffefe0b8f2bb
2017-04-19 16:07:57 +02:00
Andrea Frittoli
07acf26015 Move InvalidServiceTag
We are going to make test.py stable for plugins, so it should
only depend on tempest.lib and config.

InvalidServiceTag is in the exceptions module.
It cannot be moved in tempest.lib.exceptions since it has no meaning
in there, so moving it to test.py directly.

Change-Id: I969fb45a44ce08c176d64dfe1c58d75215eacdf5
2017-04-19 11:21:04 +01:00
Andrea Frittoli
49e2011e9b Add a page for release 16 to release notes
Change-Id: I526c38204af390ea04e261fe075cb1aff987005c
2017-04-19 11:11:12 +01:00
Jenkins
b6532ddaad Merge "Separate object-storage bulk operation service clients" 2017-04-18 10:54:55 +00:00
Jenkins
7b6e61f20e Merge "Tag test_create_server_invalid_bdm_in_2nd_dict as needing cinder" 2017-04-18 09:27:03 +00:00
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
Matthew Treinish
ecb31f05b1
Tag test_create_server_invalid_bdm_in_2nd_dict as needing cinder
This commit adds a services decorator to properly tag the servers
negative test test_create_server_invalid_bdm_in_2nd_dict() as requiring
cinder. Otherwise if you run tempest with cinder disabled it will fail
because the cinder endpoint can't be found. (although it's hard to tell
because the related_bug decorator drops all the useful debug info)

Change-Id: I25063583cae204bc8035e2d33aeaf8f4b667efbc
2017-04-17 18:25:42 -04: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
lianghao
39d86999f8 Add judgie condition after live-migration with volume
when server live-migration with volume ,after success of live_migration,
we should check the volume is whether attach or not.

Change-Id: I2bfd993f67e3fc7a00cd9ed1dfdfdf78516f6085
2017-04-11 16:05:12 +08: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