526 Commits

Author SHA1 Message Date
Jenkins
56c86bfc0a Merge "Tests to check few object actions anonymously" 2012-12-31 19:50:35 +00:00
rajalakshmi-ganesan
a72ee9a888 Logic in rest_client incorrect "resp.status=413"
rest_client is NOT redriving rate limited calls for the second time.
When 413 error code is encountered for a request, it checks for the
word "overLimit" and "limit" in resp_body and resp_body[message]
respectively so as to confirm if it is a absolute-limited call.
If absolute limited call is confirmed, OverLimit exception is raised
without any re-try for request.
Then comes the check for depth < MAX_RECURSION_DEPTH, if it is true,
re-drive towards request call occurs.
But, the word "limit" also appears in the message of ratelimited call.
Hence it is incorrect to raise OverLimit exception without re-try when
word "limit" is present in the message of response.
Thus changed the word to "exceeded" instead of "limit".
Fixes: bug #1093573

Change-Id: Iadd94c18668096d7e4795631337230ec36e9c4b9
2012-12-27 17:33:18 +05:30
harika-vakadi
6ab397bac8 Tests to check few object actions anonymously
Adds three test cases to "test_object_services.py" so as to validate
GET, Create, Delete object without using credentials. And also
Added corresponding client method in "ObjectClientCustomizedHeader"
class of object_client.py. For the above test cases to work properly,
the earlier test case and test name
"test_access_object_without_using_creds" has been modified
Incorporated reviewer comments and submitting as patch 3.

Change-Id: I9ef545046d3e3b258b054ef3f45f6a07db541363
Implements: blueprint add-swift-security-tests
2012-12-24 11:38:53 +05:30
Jenkins
87da0df8c4 Merge "Add error handling to smoke test cleanup." 2012-12-22 22:07:06 +00:00
Jenkins
acf72b4afb Merge "Remove unused imports." 2012-12-22 22:06:21 +00:00
Jenkins
ba69fe2f28 Merge "Do not limit the max versions in the requirements" 2012-12-22 21:44:38 +00:00
Jenkins
3f4c292bc4 Merge "Fix sample conf for compatability with devstack." 2012-12-21 22:15:47 +00:00
Matthew Treinish
56aa721187 Remove unused imports.
Change-Id: I01f607c8a1dfd6839e4bb3ba3eba0d7cfb1459f5
2012-12-21 15:46:13 -05:00
Maru Newby
a3e283d163 Add error handling to smoke test cleanup.
* DefaultClientSmokeTest.tearDownClass was previously calling
   delete() on test resources without error handling.  Since the
   intent of the method is to remove test resources, a NotFound
   exception indicating that the resource has already been
   removed can safely be ignored.

Change-Id: Idd289d2f3ce4133c49b0c882304d6ad6695a7396
2012-12-20 20:01:37 +00:00
Jenkins
4812d423e3 Merge "Negative Cinder tests for Volume Types,extra specs" 2012-12-19 23:04:20 +00:00
Jenkins
54be282ba9 Merge "Specify region by name." 2012-12-19 22:57:33 +00:00
Attila Fazekas
c9611551ad Do not limit the max versions in the requirements
* The tempest should be compatible with latest openstack componets

Change-Id: I1d981a18757cae4e8bc3599e7f8196eabd5c0a2a
2012-12-19 19:34:38 +01:00
Rohan Rhishikesh Kanade
b3501ef1d4 Negative Cinder tests for Volume Types,extra specs
* Adds negative tests for volume types.
* Adds negative tests for volume type extra specs.
* Adds xml client for volume types and extra specs.

Fixes LP Bug #1090229

Change-Id: I97ad07ffff7d85b5901fb4c23b70fe4a8814ebcb
2012-12-19 07:21:18 -08:00
Maru Newby
22ec5d9d38 Fix sample conf for compatability with devstack.
Change-Id: I9411e3fd25ade2a09f2469306273cbaedf5ce910
2012-12-19 04:11:43 +00:00
K Jonathan Harker
d6ba4b4f63 Specify region by name.
Rather than just taking the first region in the array,
specify the name of the region as a string. If the region
is not found, then fallback to the first in the array.

Change-Id: I9f710812cc69a4f4f615ca72483dd58441b3b08a
2012-12-18 16:23:06 -08:00
Matthew Treinish
8e937d7023 Fix use of venv in Tempest.
Currently when running Tempest tests with run_tests.sh a venv
isn't being used. This leaves tempest at the mercy of whatever
required package versions are installed on the system.

This patch takes install_venv.py and with_venv.sh from nova and
integrates them into run_tests to ensure that the correct
dependencies versions from pip-requires and test-requires are
being used.

Change-Id: I4bf4a02890a33c4034e4493d1763ed4019fdf46e
2012-12-18 09:51:23 -05:00
Jenkins
e7b9be66bc Merge "Test to GET public-readable container's object" 2012-12-18 13:52:13 +00:00
Jenkins
cd825a8001 Merge "Test Case to check "swift object expiry"" 2012-12-17 23:05:45 +00:00
ravikumar-venkatesan
6fa1ca5004 Test Case to check "swift object expiry"
Adds object expiry test case to "test_object_expiry.py" so as to
validate the object expiry support by trying to GET object after
expiry time.

Implements: blueprint add-swift-object-expiry-test
Change-Id: I1a29e8ae57e9f8661c21000775153bda78b0c689
2012-12-17 11:48:51 +00:00
Jenkins
0c38121479 Merge "Add smoke tests for quantum." 2012-12-15 00:13:43 +00:00
Jenkins
4d87cb6cd6 Merge "Add admin credential config for network client." 2012-12-14 23:32:06 +00:00
Jenkins
fa241d19ca Merge "Fix smoke tests to delete resources synchronously." 2012-12-14 23:31:19 +00:00
Dan Prince
8527c8a168 RestClient: Don't hard code volume service name.
Updates the common/rest_client keystone_auth function so that
it doesn't hard code the 'service_name' for the volume service.

The motivation here is to allow Tempest to run in more environments
where the volume service name may not always be 'cinder'.

Change-Id: I3b892781929642fd42a3dd3b4ba8d44486bfe275
2012-12-14 14:00:31 -05:00
Maru Newby
81f07a09ba Add smoke tests for quantum.
* Added test_network_basic_ops, a port of the devstack exercise
   script quantum-adv-test.sh.
 * Tenant network connectivity can be tested by setting
   the 'tenant_networks_reachable' key in tempest.conf to 'true'.
 * Public (floating ip) connectivity can be tested by setting the
   'public_network_id' key in tempest.conf.
 * Addresses bug 1043980

Change-Id: I506518c431a8da0b91e3044f2a6aabce48081d93
2012-12-14 18:43:54 +00:00
Maru Newby
b72f37cfb4 Add admin credential config for network client.
* Supports bug 1043980

Change-Id: I5ffc2d57a19e9f3a8112308998f0b957b7d93b1f
2012-12-14 18:43:54 +00:00
Maru Newby
86d51e36ca Fix smoke tests to delete resources synchronously.
* As per a recommendation by Jay Pipes.

Change-Id: I55c07c82de795409ac0cf70f3b78af4937fa530a
2012-12-14 18:43:54 +00:00
Jenkins
91ff6d6a27 Merge "ensure servers are deleted between tests" 2012-12-14 18:40:59 +00:00
Jenkins
94bc1867d5 Merge "add create_server_with_extras" 2012-12-14 18:33:45 +00:00
harika-vakadi
1a9ad61694 Test to GET public-readable container's object
Added a test case to "test_object_services.py" which tries to GET
public readable object with an empty header. Added a new class
"ObjectClientCustomizedHeader" to object_client.py inorder to overwrite
the http request with an empty header, which makes the test case to
"Make container public-readable, and access the object anonymously
without using credentials" with proper verification

Change-Id: I407ceffefb6a99cbfa3bb31421189190aa3f8c1c
Implements: blueprint add-some-functional-swift-tests
2012-12-14 20:52:54 +05:30
Jenkins
a7ec96a481 Merge "Check images by ids, not by count. lp#1088515" 2012-12-14 15:03:03 +00:00
Sean Dague
dd523b1f3f ensure servers are deleted between tests
Possible fix for bug #1079687

When running tests we create a lot of servers, and do delete
calls at the end of tests. However delete is an async action,
so the previous servers will often be hanging around after our
tests. In memory constrained environments like the OpenStack CI
system if deletes happen too slowly we hit the memory limits,
nova scheduler can no longer schedule VMs, and the tests get flakey.

This *may* fix the periodic fails we've seen on tempest in nova.

Pair programmed with Matt Treinish <treinish@linux.vnet.ibm.com>

Change-Id: I1f93ac26064c68bf529e2efa1bf0c35e1f4e7d2c
2012-12-14 06:13:24 -05:00
Jenkins
d54dfa999b Merge "Add num_retries configuration option" 2012-12-14 10:22:09 +00:00
Sean Dague
9b669e3948 add create_server_with_extras
most of the servers tests weren't using the create_server
utility method, which meant no automatic server tracking and
class level cleanup.

Most of these tests used the underlying create_server with
additional keyword args, and expected access to the resp in
the return, so a new method was needed for easiest transition.

create_server_with_extras shouldn't run synchronously because
we need to test states of servers besides ACTIVE

Pair programmed with Matt Treinish <treinish@linux.vnet.ibm.com>

Change-Id: I736ea755a512723eb6b9bae57e2112985c46ea45
2012-12-13 21:16:14 -05:00
Jenkins
e8096fa416 Merge "Add ability to skip disk_config tests regardless of extension status" 2012-12-13 19:04:24 +00:00
Jenkins
25b2c1a351 Merge "Adds paramiko to pip-requires" 2012-12-13 16:09:17 +00:00
Jaroslav Henner
72604c5d78 Check images by ids, not by count. lp#1088515
Change-Id: I0ec2d06615f1fff834c72599847e39a01678529f
2012-12-13 14:17:40 +01:00
Attila Fazekas
f7f2d93039 Add num_retries configuration option
The boto library is designed for retrying failed actions automatically.

Bug #1089764

Change-Id: I4a42a87286e7d86e6569fa82c7309f2ea5fbfed9
2012-12-13 09:32:16 +01:00
Jay Pipes
e9e24dd20d Tempest should ignore SSL certificate validation
In testing and QA environments, often endpoints are set up
with self-signed or incomplete certs, and Tempest will bomb
out with complaints about being unable to validate SSL certificates.

Tempest isn't about testing SSL certificates. It's about testing
the OpenStack APIs, and if a common scenario is to test SSL and
endpoints in a testing environment, the client should disable
SSL cert checking.

Change-Id: I999cef9b5cd40a94c1b1bd63f4e19b2e58924c9a
fixes: lp bug #1089762
2012-12-13 00:09:34 -05:00
Jay Pipes
1a6425e0ca Adds paramiko to pip-requires
The whitebox/SSH tests use paramiko, but it is not listed
in the tools/pip-requires. This adds it.

Change-Id: Icd3df69a94446f85772e515a820d8a013f0271f8
fixes: lp bug #1089763
2012-12-12 23:47:47 -05:00
Armando Migliaccio
4949439ce3 Ensure we check for the right body
Fixes bug #1089544

Change-Id: I8c32d93b7826440f41ae3128f17f41d596d3396e
2012-12-12 18:54:58 +00:00
Jenkins
69ac3cdfd4 Merge "Improve pep8 checks to be similar to those in nova" 2012-12-12 18:16:37 +00:00
Jenkins
32cb322097 Merge "Fix pep8 failures in tests for Volume Types and extra specs" 2012-12-12 18:14:24 +00:00
Armando Migliaccio
b8cc2204bf Add ability to skip disk_config tests regardless of extension status
Also, add a missing import in test_create_server

Fixes bug #1089381

Change-Id: I9bc80aca2bec269800fbd20d883596928eedad42
2012-12-12 17:20:51 +00:00
Jenkins
463116a11b Merge "Enable EC2 Create volume from snapshot" 2012-12-12 17:12:21 +00:00
Jenkins
a754a7f2af Merge "fix formatting errors to help debugging" 2012-12-12 17:11:37 +00:00
Jenkins
492cd366b5 Merge "Fix typo that causes NameError: global name 'exception' exception" 2012-12-12 17:11:04 +00:00
Jenkins
7e1ac59f89 Merge "Remove tempest.conf.tpl" 2012-12-12 17:09:21 +00:00
Matthew Treinish
8b37289f68 Improve pep8 checks to be similar to those in nova
This adds hacking.py, based on the one in nova, to wrap around
pep8 and enforce more stringent checks on tempest. This adds
the rules that nova is currently enforcing on incoming commits.

The rules that pep8 is ignoring are copied from the pep8 check on
jenkins.

The HACKING file was also updated to indicate the inclusion
of the new rules that are being enforced.

Change-Id: I5c85829ee15d4264d8de2d9f0207d9dd3dfbbff2
2012-12-12 11:49:30 -05:00
Matthew Treinish
c18b60e3f0 Fix pep8 failures in tests for Volume Types and extra specs
This fixes pep8 issues introduced in Change:
I19ff56a434f8cc87089f2488e97701492e47d830

Which didn't comply with TEMPEST N306, N201

Change-Id: I4c31cbdbb9bd288f8f99cf9d68d4d94f9a64bf68
2012-12-12 11:48:26 -05:00
Jenkins
77ec5e42b0 Merge "Fix pep8 violations in stress tests" 2012-12-12 16:09:38 +00:00