2052 Commits

Author SHA1 Message Date
Jenkins
5beb0d3f7e Merge "Add test for admin deleting servers of others" 2013-10-02 23:56:35 +00:00
Jenkins
c9c9bab024 Merge "Test cases for V3 Project Actions" 2013-10-02 22:33:42 +00:00
Jenkins
4cba6fe559 Merge "add server reset_state tests" 2013-10-02 10:39:28 +00:00
Jenkins
0432a3768e Merge "Update style guide link in HACKING.rst" 2013-10-02 03:55:40 +00:00
Jenkins
e53c1e87d0 Merge "Explicity specify network for heat slow tests" 2013-10-02 00:55:47 +00:00
Matthew Treinish
b9a8580ef0 Revert "unskipping bug related to test_stamp_pattern.py"
This reverts commit 60100a3eaec620a8b9946b3378caed6c23122310.

Given the current state of non-deterministic failures in the gate
right now bringing this test back for debugging the failure is just
adding fuel to the fire. We should wait for things to stabilize
again before removing the skip.

Change-Id: Iff5fb31074ddf7dc0e9320ac19ac71fa451a8820
2013-10-01 12:01:24 -04:00
Matthew Treinish
97072c8110 Update style guide link in HACKING.rst
The previous github HACKING.rst doesn't exist anymore, so this commit
just updates the link in tempest's HACKING.rst to point it to the
correct location.

Change-Id: If49f938528ac9059a8e1983b281081fc6137b700
2013-10-01 11:54:15 -04:00
Jenkins
811f747c88 Merge "unskipping bug related to test_stamp_pattern.py" 2013-10-01 14:46:56 +00:00
Jenkins
fee46dd318 Merge "Make smoketests working again with Python 2.6/nose" 2013-10-01 14:46:49 +00:00
Jenkins
bdb25c1715 Merge "Add tempest tests for os-aggregate update" 2013-10-01 14:41:37 +00:00
ivan-zhu
454b1c5b59 meta should be metadata in rebuild server
this change the parameter of rebuild server from  meta to metadata.
currently the parameter meta has been ignored.

Closes-Bug: #1233040

Change-Id: I9009a8836e07496f5752956c28ee7d9b0b0e783e
2013-10-01 16:37:37 +08:00
Morgan Fainberg
69a69eafd0 Unskip test_tokens and update expected status to 404 from 401
Now that the API results in a 404 for an invalid x-subject-token
and a 401 for an invalid x-auth-token, we need to update the expected
resulting HTTP Status from 401 to 404 in the test_tokens test.

closes-bug: 1221889
Change-Id: I158c968c1948ee658305e9ec484425d98f187cba
2013-09-30 12:36:53 -07:00
Dirk Mueller
eb1a3ff922 Do not check for id in the keystone output
keystone catalog output, when using the non-sql "catalog"
backend, does not contain an id attribute. So don't require
it. Checking for publicURL is probably a good idea instead.

Change-Id: I5f302cf09eeac77b3f448a4e16a3bd97b7bcaaa4
2013-09-30 19:28:48 +02:00
Tal Kammer
c6b9788296 Initial basic setup of openstack and tempest config file
The objective of this script is to configure openstack environment +
tempest config file while relying on nothing but the current Openstack
installation and/or existing tempest config file.
it achieves this by using only Openstack python clients and/or global Openstack
environment variables and for some tempest specific settings, the tempest
config file.
This script is a WIP and currently support only creating users and configure
the tempest config file with active images found in openstack.

TODO:
    1. Add support for existing config and not rely on sample only
    2. Add download & creation of images
    3. Add network configuration
    4. more advance features as required

Change-Id: I06f38280e6b550d03c64954e042aee7331ecb31b
2013-09-30 19:58:20 +03:00
Dirk Mueller
e09001fde9 Make smoketests working again with Python 2.6/nose
With the switch to testr, the nosetests configuration setting
was lost. Restore.

Change-Id: I55844f6875bdca9cc1f0a63441c4da3d65d92246
2013-09-30 15:18:36 +02:00
Jinhe Fang
03fc10f04d Add test for admin deleting servers of others
Administrator can delete servers of other users.

Change-Id: I08a9de69dae18a743b872ceb7b070400c1ac39a8
2013-09-30 10:49:44 +08:00
LingxianKong
c26e607eef add server reset_state tests
tests included:
- reset_state_server
- reset_state_server_invalid_state
- reset_state_server_invalid_type
- reset_state_server_nonexistent_server

Change-Id: I18f73f4235e6a6350fa6eba78344f52da36fdd0e
2013-09-30 08:50:15 +08:00
Steve Baker
c2f7ff23c7 Heat: use first_address instead of first_private_address
first_private_address no longer exists in OS::Nova::Server
as it was a misconceived feature.

Change-Id: Id1a0eeca1bf3b57c27e6b93ae64e11d3de9b771e
Related-Bug: #1228929
2013-09-30 11:48:18 +13:00
Steve Baker
80252da7c0 Explicity specify network for heat slow tests
The heat slow test NeutronResourcesTestJSON is causing problems
for the other heat tests when run concurrenty.

Because NeutronResourcesTestJSON creates a network and the other tests
do not specify any, an amibiguity is created. This means that nova
server creation fails due to not knowing which network to attach to.

This change explicity launches servers with the network specified in
config compute.fixed_network_name.

This may mean that these tests cannot be run with nova networking.
This is most likely not a problem as there are currently no plans
to gate heat-slow tests on nova networking.

Change-Id: I16d50271a36c9bc9d0c4fb0588ae75ba100b145f
2013-09-30 11:48:18 +13:00
Jenkins
7061c70bf9 Merge "Print the lekaed 'boto' tags on Failure" 2013-09-29 14:22:48 +00:00
Jenkins
c03cfab4a6 Merge "_get_tenant_by_name doesn't return correctly" 2013-09-28 18:19:06 +00:00
Jenkins
5856e4d6a0 Merge "fix typo in config.py" 2013-09-28 16:15:00 +00:00
DennyZhang
49b21abb2a _error_in_logs function of driver.py shall check all nodes
1. Don't simply return, if one node is clean or not clean.
2. It's better to log all errors and return all errors.

Change-Id: Ib0e23bff013836347f90bed50dd1d3a9566e6bad
Close-Bug: #1229957
2013-09-28 11:04:48 -05:00
Jenkins
bfa2b5465d Merge "driver.py should log errors when ssh operations fail" 2013-09-28 13:35:52 +00:00
Jenkins
ccb3513b82 Merge "Update docs config" 2013-09-28 09:46:29 +00:00
Jenkins
e83fe1d931 Merge "The debug configuration group is not registered" 2013-09-28 06:41:49 +00:00
Jenkins
15d0b6706d Merge "Bump oslo.config version" 2013-09-28 05:24:30 +00:00
Jenkins
f13a350a99 Merge "Added Negative tests for image member" 2013-09-27 20:20:09 +00:00
Jenkins
6d4eecc3ca Merge "_create_creds function shouldn't call rand_name twice" 2013-09-27 19:41:59 +00:00
Jenkins
b162d69db3 Merge "add __str__ function to RestClient class" 2013-09-27 13:24:04 +00:00
Jenkins
e25232af0c Merge "Add test for nova API of VM lock/unlock" 2013-09-27 11:22:54 +00:00
Jenkins
2187e1bb53 Merge "Add positive tests for os-floating-ip-pools" 2013-09-27 10:41:53 +00:00
Jenkins
aaecd34082 Merge "Adds more test to cover Swift tempURL middleware" 2013-09-27 06:41:42 +00:00
Matthew Treinish
47ca74ffc3 Bump oslo.config version
This commit just bumps the minimum version requirement for
oslo.config. Version 1.2.0 has been released so we should keep
tempest's required version in sync with the other projects.

Change-Id: Ie78070a9fe0759c30fb84ac892a257e0c5cbf246
2013-09-26 22:54:54 -04:00
DennyZhang
1eb40464ad _get_tenant_by_name doesn't return correctly
If tempest_client is unset, _get_tenant_by_name will
definitely raise an exception, which is incorrect.

Change-Id: Id3e452a35d4f6c7083562689f556cac05868af45
Closes-Bug: #1231645
2013-09-26 21:17:53 -05:00
DennyZhang
1e71b61225 tempest/config.py parse some sections incorrectly
Two issues for tempest/config.py:
1. When parsing sections of object-storage and dashboard,
   wrong variable is used.
2. We'd better rename BotoConfig/ObjectStoreConfig
   to BotoGroup/ObjectStoreGroup

 Closes-Bug: #1231595

Change-Id: I0d3162708237211ce7beb4a651f11db57d4d5e44
2013-09-26 17:52:16 -05:00
DennyZhang
d9d5697ce8 _create_creds function shouldn't call rand_name twice
Remove the redundant line, to make sure _create_creds use
the same rand_name within the function. This make debug easier

Change-Id: I2ff6b729107c4efa5cb365310f4677282b026148
2013-09-26 14:49:43 -05:00
Jenkins
24167647e8 Merge "Handling network resources in tenant isolation" 2013-09-26 14:54:05 +00:00
Zhu Zhu
7b5f629a42 Add tempest tests for os-aggregate update
Add tests of os-aggregate update for API 'os-aggregates/{aggregate_id}'

Change-Id: I1624c366faa9a97461b68c7408e309a658c4cb83
2013-09-26 08:05:49 -05:00
Joe H. Rahme
2eccc33f19 Adds more test to cover Swift tempURL middleware
The patch moves away the single test existing from
test_object_services.py to its own file.

It then adds more tests to validate other HTTP
verbs like PUT and HEAD.

blueprint test-swift-tempurl-middleware

Change-Id: I1d7b021e8e3749b58a9fa657c709fb7154bd104e
2013-09-26 11:09:17 +02:00
Jenkins
58c1321546 Merge "add server resizing tests" 2013-09-26 09:04:53 +00:00
Jenkins
f3891d16e1 Merge "Fix problem with never stopping stress tests" 2013-09-26 08:37:47 +00:00
Anju Tiwari
c2849f2c20 Added Negative tests for image member
Here added negative tests for image member
 *Add member with invalid image
 *Delete member with invalid image
 *Delete member with invalid tenant

Change-Id: I23ccdf255c8c4f4ba448207beab1302ca1424f59
2013-09-26 10:00:41 +05:30
DennyZhang
6baa6675a7 driver.py should log errors when ssh operations fail
Improve error_handling for do_ssh function, by adding log when error

 Closes-Bug: #1230010

Change-Id: I6e5c7f8de36ace9f9a1b5686c92a3dfa53a450f2
2013-09-25 18:06:13 -07:00
DennyZhang
8912d01e6e fix typo in config.py
Change-Id: I11a7c2ca636df27a82795734343f8b6c81ebcc26
2013-09-25 18:34:46 -05:00
Jenkins
ae80992180 Merge "Don't log 'Not Found' ERROR during image cleanup" 2013-09-25 20:23:22 +00:00
Jenkins
e623130589 Merge "Fix json version of bootable check" 2013-09-25 19:52:42 +00:00
DennyZhang
7be7500500 add __str__ function to RestClient class
Most tempest tests are based on restfull http call.
Enable to easily explore the state of client object
 would be good for trouble shooting.

Thus, I would suggest to implement __str__ function for RestClient class.

 Closes-Bug: #1227474

Change-Id: If06dfc648a7458133e4f196bdca299f9531738b1
2013-09-25 12:32:02 -05:00
Marc Koderer
8f940ab686 Fix problem with never stopping stress tests
This fix will fix the issue for never stopping stress test in
the nightly build jobs. It changes three problems related to this:

 - An exception in tearDown() will not cause a endless loop
 - Hanging processes will be killed with -9 after a while
 - tox job will stop on first error

Fixes-bug: 1230357
Change-Id: I3a0160295d98fdc7f8ffce64cc4a08c5c8ae654a
2013-09-25 17:34:42 +02:00
Attila Fazekas
849708e62f Print the lekaed 'boto' tags on Failure
Asserting an an array length is not too informative on failure.
So let's add the str represnation of the list to the assertion.

Change-Id: Iaace6ada86a5e4b3e7ef60e09748d65c009915eb
2013-09-25 17:33:56 +02:00