1878 Commits

Author SHA1 Message Date
huangtianhua
b0993eb5f2 add some negative tests for tenant
making a separate test_tenant_negative.py,and move the exist negative
tests over to it,and add some negative tests for in it.

- test_update_non_existent_tenant
- test_tenant_update_by_unauthorized_user
- test_tenant_update_request_without_token

Change-Id: Id0d15d312c96a3f8a244d5e08414623e3c15013a
2013-10-10 10:57:56 +08: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
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
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
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
Attila Fazekas
5fae7a362f The debug configuration group is not registered
The debug option group is not properly registered, probably because of
in-properly solved merge conflict.

This change fixes it.

Change-Id: I0ebe0aee9ed11d70418827d504ee5e5fb05fd5d9
2013-09-25 16:52:44 +02:00
Matthew Treinish
6d5c0528be Update docs config
This commit updates the docs conf.py to make it more closely resemble
what is used it other projects(based on nova's equivilent file). It
also removes listing Sean Dague as the sole author for the Tempest
docs because it is a collaborative effort. It also fixes a pep8
failure on the imports.

Change-Id: I535858dc9d413e8d5f92d44194137f615390d117
2013-09-25 14:09:46 +00:00
Jenkins
7643e12278 Merge "Added test to check list/show extensions-neutron" 2013-09-25 13:50:56 +00:00
Jenkins
4aa0366ea1 Merge "makes passing the client optional to utilities in scenario/manager.py" 2013-09-25 12:55:08 +00:00
Jenkins
6da0db8726 Merge "add negative volume tests" 2013-09-25 10:44:38 +00:00
Hui HX Xiang
ac1a55deb2 Add positive tests for os-floating-ip-pools
List floating ip pools.

Change-Id: Ia7d33a61c7227b72e04f34660fcff4ce916ead79
2013-09-25 03:26:24 -07:00
Jenkins
f938d3b303 Merge "Add locking to test_list_hosts_with_zone" 2013-09-25 06:45:04 +00:00
Miguel Lavalle
b8fabc5614 Handling network resources in tenant isolation
Functionality is added to create and delete isolated network, subnet and router
when isolated credentials are created and deleted for a primary, admin or alt
tenant.

When a set of isolated credentials are created, the tenant gets also a private
network, subnet and router. The router connects the tenat's network to the
public network designated by public_network_id in etc/tempest.conf

Change-Id: I7587c85017cca09f7a67eae0670f67b2bceacb60
Fixes: bug #1216076
2013-09-25 00:13:15 -05:00
David Kranz
3313831078 Don't log 'Not Found' ERROR during image cleanup
It is expected that an image may have already been deleted.

Change-Id: I09db34576e93b3cc090cb85e35678939cf3af82f
2013-09-24 21:12:15 -04:00
Giulio Fidente
61cadcaca1 makes passing the client optional to utilities in scenario/manager.py
this makes passing the client optional to create_server and
create_security_group as it happens with the other utility methods

Change-Id: I56f7a4078d1da0c7b5bd7c493eb480d640be2805
2013-09-24 19:17:43 +02:00
Jenkins
3e873be209 Merge "Move LockFixture to tempest.common" 2013-09-24 16:33:41 +00:00
Jenkins
5f5f1a0a4b Merge "Sync install_venv_common.py from oslo-incubator" 2013-09-24 16:33:39 +00:00
Jenkins
ddff92ff19 Merge "README.rst of tempest stress is misleading" 2013-09-24 16:33:37 +00:00
Zhu Zhu
9643e51aba Add test for nova API of VM lock/unlock
Add tempest test for nova API 'servers/{server_id}/action' of VM lock/unlock

Change-Id: If3f06b433a5ef4282c9142eb5228617f3f175dbd
2013-09-24 01:45:07 -05:00
John Griffith
d1fefd5635 Fix json version of bootable check
This is a follow up to change id:
  I8a4b1f4ce3a6a420e8152ea8c66a9b3fc127fe96

The initial change only addressed the xml aspect of the bug
and ignored the json tests.

This change updates the check to catch the same errors when
performing the json version of the checks.

Both of these patches are temporary and after the Cinder update
lands should be replaced with a proper/strictly enforced check of
'true' and 'false' values in the volume['bootable'] field.

Change-Id: Iffe5d380410f5c698018a5c3106c99af05f0b80d
2013-09-23 22:30:17 +00:00
Matthew Treinish
98b8b54941 Add locking to test_list_hosts_with_zone
test_list_hosts_with_zone() makes 2 list_hosts calls and expects that
the hosts' availability zone will remain constant between the calls.
However when running in parallel there is no guarantee of this, and
the aggregates tests will change the compute host's availability
zone. This commit adds the 'availability_zone' to the test to ensure
it doesn't run at the same time as the tests which will change the
host's availability zone.

Fixes bug 1228225

Change-Id: I14773e38b5cc35679b16940ad230c7c81aeaad9c
2013-09-23 21:45:52 +00:00
Matthew Treinish
a03ed79678 Move LockFixture to tempest.common
This commit moves LockFixture used for locking between tests out of
tempest.api.compute.admin.test_aggregates and into tempest.common.

Change-Id: I14431617c88c62b6da4383668ffa635a12c1b071
2013-09-23 21:44:56 +00:00
DennyZhang
900f02b34f Fix typos in tempest/HACKING.rst Edit
Change-Id: I33f5872cc945ee3c6a720e0a7fd5b8140fc14794
Close-Bug: 1229189
2013-09-23 12:12:06 -05:00
DennyZhang
d7a51b4b38 README.rst of tempest stress is misleading
Change-Id: I6f533766c4c19023eff2ffa3fc62f6e1f82a4215
Closes-Bug: #1229299
2013-09-23 12:10:20 -05:00
Zhi Kun Liu
3c44af3264 add server resizing tests
add a few negative tests for server resizing
- invalid flaovr id
- overlimit resource

Change-Id: I4edde6e2cb54085a9d2f0d6515825e6b8fbe8e25
2013-09-23 19:02:20 +08:00
Zhi Kun Liu
3bdfe093a9 add negative volume tests
attach or get volume using invalid volume, device and server

Change-Id: Ied7deebfcf0efca7059b4a675604d41c00a88143
2013-09-23 13:36:52 +08:00