6873 Commits

Author SHA1 Message Date
Xicheng Chang
6fb98ec084 Fix typo in Tempest Coding Guide.
"doctstrings" was mis-spelled as "docstings" in
tempest/HACKING.html

Change-Id: I0ae2b84af718cc032cd031612a898895a2b3c21d
Closes-bug: #1484356
2015-08-13 15:30:16 -07:00
Jenkins
3783d3e7f3 Merge "Logging migrations for particular server if migration failed" 2015-08-13 15:49:21 +00:00
Jenkins
f2dfafa453 Merge "Ensure server unlocking after test_lock_unlock_server" 2015-08-13 15:49:09 +00:00
Jenkins
4860641b87 Merge "Cleaned up class variable scope issue." 2015-08-13 15:48:55 +00:00
Jenkins
de6b112420 Merge "Fixed single quoted docstring" 2015-08-13 15:41:56 +00:00
Jenkins
4aeadb779f Merge "Add unit test for quota_classes_client" 2015-08-13 15:39:19 +00:00
Jenkins
29693c2adf Merge "Move test_waiters to match directory structure" 2015-08-13 08:41:32 +00:00
Jenkins
12b47cbe79 Merge "Handle 'error_restoring' status in wait_for_volume_status" 2015-08-13 08:41:06 +00:00
Jenkins
294523dbe6 Merge "Removed unnecessary commented code" 2015-08-13 08:31:05 +00:00
Daniel Mellado
9e3e106263 Enhance IPv6 scenario - dual network testing
Dual Network is where instead of 2 subnets with different IP versions on the
same network, we use 2 neutron-networks, each with its own subnet.
That way, instead of each server having a single vNIC with 2 IP addresses,
each server has 2 vNICs.

This patch adds tests with dual network for the test_network_v6 scenarios.

In Cirros (and other guest images) only the 1st vNIC is set UP on boot by
default. This patch solved the problem by turning the 2nd vNIC on.

Also, a minor fix to remote_client that strips ":" from the output of
get_nic_name.

Change-Id: I237310e9a8f75551069ffe49b3280c0ab2183664
2015-08-12 14:44:02 +02:00
Jenkins
33e20d0a73 Merge "Fixed Typos" 2015-08-12 10:40:02 +00:00
PranaliDeore
5a6a5950ab Removed unnecessary commented code
Removed commented code from list_all_container_objects method
from tempest/services/object_storage/container_client python
module.

Change-Id: I88009bc6e9efd9b5b3735b73b62504a17a932a72
2015-08-12 01:25:11 -07:00
Jenkins
d6cb893768 Merge "Add unit test for keypairs_client" 2015-08-12 06:01:52 +00:00
Jenkins
5eee9908e6 Merge "Bake in oslo sample config generation to sphinx build" 2015-08-11 18:57:27 +00:00
Jenkins
cf3e45adac Merge "Add unit tests for extensions_client" 2015-08-11 15:47:47 +00:00
Matthew Treinish
13ed69fffc
Bake in oslo sample config generation to sphinx build
The expectation from users is that to build docs locally all you need
to do is run build_sphinx on the repo and the docs will be fully
created. When we added the sample config to the tempest docs we ignored
this and just added the sample config generation to the docs tox job.
This commit fixes this by baking in the sample config generation to
the sphinx conf.py file which should ensure we have the sample config
generated every time that we call build_sphinx.

Change-Id: Ifd570707847f52592f5bc9bc743b8d3c98512639
2015-08-11 10:13:03 -04:00
PranaliDeore
27da861132 Fixed single quoted docstring
As per the docsctring standard, triple double-quoted
should be used for docstrings.

Changed single quoted docstring to double-quoted.

Closes-Bug: 1483556
Change-Id: I0633498fc353f0148a9dc7c9198c74e6f75244c0
2015-08-11 01:29:01 -07:00
Jenkins
fcda4d62ba Merge "Remove unused ignore_error" 2015-08-11 01:55:43 +00:00
Jenkins
11e11cb2d4 Merge "Fixed invalid error message" 2015-08-11 01:41:56 +00:00
Matt Riedemann
f04393e104 Move test_waiters to match directory structure
This simply makes the test_waiters module mimic the source
location for tempest/common/waiters so that goofballs such as
myself don't try to create a new test module to add new tests.

Change-Id: Ic82f05f6c3032f7412dc9a588112815d6df1db22
2015-08-10 18:35:55 -07:00
Matt Riedemann
f77e7dcb33 Handle 'error_restoring' status in wait_for_volume_status
If cinder hits an error when restoring a volume from a backup the volume
is set to 'error_restoring' status. If tempest doesn't handle this and
fail fast, tests keep waiting for the volume to go to 'available' status
or timeout - and the timeout is what happens.

Related-Bug: #1483434

Change-Id: I8f6d0828a84ec5d4a5fa6332e55152bd67eaa605
2015-08-10 18:34:57 -07:00
Jenkins
c6170a0321 Merge "Fix the way to get tempest.conf in README.rst" 2015-08-10 13:39:32 +00:00
Brandon Palm
f35aa8b3af Cleaned up class variable scope issue.
self.router was used as a local variable to a few functions.

Change-Id: I3d6aa0731a227c255ad9966ea3c5052a2fa4898d
Closes-Bug: #1482299
2015-08-10 07:45:12 -05:00
PranaliDeore
456d1b669b Fixed invalid error message
In setcontext() method of tempest/common/glance_http
module, error message is not formatted property which
leads to error "TypeError: not all arguments converted
during string formatting".

Added appropriate format specifiers to avoid error.

Closes-Bug: 1483230
Change-Id: I48a1f7bf45f563de5959e97ff43b1bc2845feb9f
2015-08-10 05:36:08 -07:00
Ken'ichi Ohmichi
25d5e0d163 Remove unused ignore_error
The argument ignore_error of addCleanup_with_wait() is not used at
all. So this patch removes it for cleanup.

Change-Id: I56634a20d5517f3d6766a4ecbbaadb06ee7426de
2015-08-10 06:31:35 +00:00
Jenkins
e9bf2d8cbc Merge "Fix a spelling typo in tempest/thirdparty/boto/test.py" 2015-08-08 05:30:46 +00:00
Jenkins
fccd41c102 Merge "Fixing tests when run_validation is set to true" 2015-08-07 22:25:59 +00:00
Jenkins
c09fd74805 Merge "Revert "Fix scenario test fails when port_vnic_type is set"" 2015-08-07 14:55:48 +00:00
Yaroslav Lobankov
e5cc9fbbe3 Fixing tests when run_validation is set to true
Many tempest tests don't work if the run_validation option is
set to true. The validation resources provider tries to create
security groups and security group rules for these tests and it
fails with the following error:

AttributeError: 'SecurityGroupsClient' object has no attribute
'create_security_group_rule'

The reason of failures is that we have recently separated the security
groups client into two clients: security groups client and security group
rules client. This patch fixes the issue.

Change-Id: I548e1fecb6698ac2609fd1581633170ceb638506
Closes-Bug: #1482669
2015-08-07 17:34:06 +03:00
Zhao Lei
17548d9298 Fix a spelling typo in tempest/thirdparty/boto/test.py
s/attching/attching

Change-Id: Idfdc5b6be3f82468c62217d893b9d37c74f6d994
Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
2015-08-07 21:42:51 +08:00
Kenji Yasui
943754dfa3 Add unit test for quota_classes_client
This patch adds unit test for quota_classes_client.

Change-Id: Ib6edcf0cc02f0b2784345ddbf00f1fe1b50bb151
2015-08-07 02:24:42 +00:00
Jenkins
ea1a72ddb4 Merge "Updated from global requirements" 2015-08-07 01:39:57 +00:00
Kenji Yasui
7b44be66dd Add unit test for keypairs_client
This patch adds unit test for keypairs_client.

Change-Id: I4cb2bfe8fde9b1c745939288e0fad38c8b44f339
2015-08-07 01:28:34 +00:00
Kenji Yasui
0d649b26e0 Add unit tests for extensions_client
This patch adds unit test for extensions_client.

Change-Id: I37ff50ff31ca9a2c4608f656247a0073fbfbfb61
2015-08-07 01:00:19 +00:00
Jenkins
e8bb0e5d7e Merge "Add unit test for method show_limits" 2015-08-06 21:27:32 +00:00
Jenkins
26c0fabfb1 Merge "increase failure information for ip_regex test" 2015-08-06 14:56:45 +00:00
Jenkins
0982f41597 Merge "Enhance IPv6 scenario - Ping default GW" 2015-08-06 07:56:53 +00:00
Jenkins
c7f9135f64 Merge "Add unit test for aggregates_client" 2015-08-06 04:13:32 +00:00
Yair Fried
e198e2f9d2 Enhance IPv6 scenario - Ping default GW
1. Use common _check_remote_connectivity method to verify connectivity between
servers
Old code was a single try expecting 0% packet loss. Common method is resistant
to packet loss and has retries.
Failure message now includes source and dest. Phrasing matches other tests' to
enhance debug searches.

2. Verify connectivity against default v6 gateway.

Change-Id: I32414ccc9818cb58db1cf2477619b40b7b283a3a
2015-08-06 06:51:29 +03:00
Jenkins
e24546c129 Merge "Added endpoint types for intialization of different IdentityClients" 2015-08-05 17:31:08 +00:00
Jenkins
e2e29841e8 Merge "Add identity v2 endpoint operations" 2015-08-05 11:33:16 +00:00
Sean Dague
b988e29e91 increase failure information for ip_regex test
It's basically completely impossible to understand why this test would
fail because there is not enough post mortem information. Probably an
address didn't allocate, but this is so stripped down you'd never know
that.

Add further dump on failure to make it possible to see what's happening.

Change-Id: I536f78c77df992dde5efd22b1d763715e33f0769
Related-Bug: #1481715
2015-08-05 07:11:17 -04:00
Jane Zadorozhna
c786213f95 Added endpoint types for intialization of different IdentityClients
There is a bug https://bugs.launchpad.net/tempest/+bug/1473396 which
describes that IdentityClient always uses admin enpoint but this is
not correct for non-admin api/identity tests. The latter need to use
public endpoint_type instead.

Added one more identity client ('identity_public_client') to two
existent. Added to tempest.conf 3 enpoint_types to [identity] group
instead of old one 'endpoint_type' for intialization of different
IdentityClients:

* CONF.identity.v3_endpoint_type (because Keystone api v3 can be
configured independently from v2);
* CONF.identity.v2_public_endpoint_type (for Keystone v2 public api);
* CONF.identity.v2_admin_endpoint_type (for Keystone v2 admin api).

Thus, non-admin tests in api/identity/v2 directory would use
'identity_public_client'; admin tests in api/identity/admin would use
'identity_client' and v3 tests in api/identity/v3 - identity_v3_client.

Change-Id: Icd5d175f8de6ccdaa6c718f6d4f68677cd4d7008
Closes-Bug: #1473396
2015-08-05 14:09:38 +03:00
Shuquan Huang
06c632b985 Fix the way to get tempest.conf in README.rst
We're using oslo-config-generator to generate a config file other than
copy the tempest.config.sample. We should update the description in
qucikstart of README.rst.

Change-Id: I5c7c3f9041da3e5c3840b440bba6e614c23fdf8a
Closes-Bug: #1481635
2015-08-05 10:18:39 +00:00
nayna-patel
1dfbedb320 Fixed Typos
This submission fixes typos for the following files -

1. tempest/api/identity/admin/v3/test_trusts.py
2. tempest/clients.py
3. tempest/cmd/javelin.py
4. tempest/stress/actions/volume_attach_verify.py

Change-Id: Ia0a161a9b35701494a6e049204f6f5d21ba3e327
2015-08-05 06:33:13 +00:00
Jenkins
4ec06d749a Merge "Stop gating on sample generation check" 2015-08-05 04:57:48 +00:00
Jenkins
8a5a3e7582 Merge "Include sample configuration in dev docs" 2015-08-05 00:53:03 +00:00
Jenkins
4cb75f845f Merge "Add plugin interface documentation" 2015-08-04 23:23:35 +00:00
Jenkins
c1e4939dbd Merge "Add plugin interface for extending sample config generation" 2015-08-04 22:36:21 +00:00
Jenkins
169ef860a8 Merge "Make security_group_rules_client use **kwargs" 2015-08-04 22:12:41 +00:00