2052 Commits

Author SHA1 Message Date
Bob Ball
826301de89 Skip get_server_diagnostics test until bug 1240043 is fixed
Change If631472081d16fe8c0b37575eb157a7b13d6fba4 introduced new restrictions
on the diagnostics API which are not valid with XenAPI and causes it to fail
tempest tests.

Bug 1240043 has been raised to define a hypervisor-agnostic API which can be
tested and maintained

Closes bug: 1239209

Change-Id: I3e643d8e7a63b7dc42a912fab09ffc4222d463db
2013-10-15 14:14:04 +01:00
Jenkins
9adf900c1f Merge "Add a create_router utility function" 2013-10-15 13:11:16 +00:00
Jenkins
ade89f6957 Merge "add more test cases to api/network/security_groups" 2013-10-15 13:11:09 +00:00
Jenkins
b8b3501efe Merge "Restores passing additional parameters to nosetest" 2013-10-15 13:09:35 +00:00
Jenkins
54b7e83852 Merge "remove tearDownClass in test_quotas.py" 2013-10-15 13:08:18 +00:00
Jenkins
2e26c87ab7 Merge "Update to latest tox" 2013-10-15 13:06:14 +00:00
Jenkins
b9a6590480 Merge "Reduce vm creations in negative tests" 2013-10-15 10:35:26 +00:00
Masayuki Igawa
a2ccca093f Fix to use proper random values
In several tests, they need int values but use rand_name().
Especially, test_security_group_rules.py has a potentially bug.
And, when we will change the rand_name() to return string value, the
errors will occur in others.
So this commit fixes it and belows:
 * just import the module instead of importing the function
 * minor comment typo

Change-Id: Ic957c741b9ad3631d726dc6cfb5ecb9e0077a884
2013-10-15 16:10:01 +09:00
Jenkins
5a95b664f2 Merge "Rename cli tests from compute to nova" 2013-10-15 07:03:00 +00:00
Lingxian Kong
1629d5d1dd add some tests for hypervisor operation
For hypervisor operation, there are some APIs: list, detail, show, uptime,
search, servers, statistics. This patch will mainly add some negative
tests in dedicated 'negative' test file.

Change-Id: I637e0d0a8395ce52e4ed76029071238259957750
2013-10-15 12:10:35 +08:00
zhangyanzi
b866f05064 add volume tests
negative tests for create volume

Change-Id: I81c5596dde58679f9be1dccc15b6bb70bd71f842
2013-10-15 09:51:02 +08:00
Ken'ichi Ohmichi
da30650ff6 Reduce vm creations in negative tests
In test_server_actions.py, there is a feature that the same server is
used with all test cases. The feature have reduced vm creations.
This patch adds the same feature to negative tests.

Change-Id: I286082e3a8d35bc57049741bedb8026021b653bd
2013-10-15 10:01:02 +09:00
Clint Byrum
9125de0d96 Change six to match global requirements
Pinning six to <1.4.0 causes failurs for anyone trying to use six to
port urlparse code. It also does not match with global requirements.

Change-Id: I6216eef5dd1d3363ec58ac338853252b5294ff1f
2013-10-14 16:41:22 -07:00
Jenkins
f55f4e54ce Merge "delete the duplicated variable definition" 2013-10-14 15:55:59 +00:00
LingxianKong
5d3f66c500 remove tearDownClass in test_quotas.py
There is no need for the functionality of the tearDownClass in the
api/compute/admin/test_quotas.py, becase it's already included in the base
class. So it should be removed.

Change-Id: Ic0e145952cc143d65291258fc9567807ca051596
closes-bug: #1239722
2013-10-14 22:50:38 +08:00
Yair Fried
bcdcb3bc68 add more test cases to api/network/security_groups
explicit rule parameters:
create a rule for each protocol (tcp, udp, icmp)

Change-Id: I5adc0d1f2af994031823e19675177566fb3db202
2013-10-14 12:10:20 +03:00
lijunjbj
9feaa21c47 Add a flavor test for getting a specified key value API
Test for GET v2/.{tenant_id}./flavors/.{flavor_id}./os-extra_specs/
.{key_id} that gets the value of the specified key for this flavor.

Change-Id: Id9941604aff9c583b9f2d394ba2299aad7dafec8
2013-10-14 04:06:24 -05:00
Sunil Thaha
ee332b090b Restores passing additional parameters to nosetest
Parameters after -- are only passed to testr and not to nosetest.
The patch restores the old behaviour.

Change-Id: Ia25b0c071f7292a5ddf34f057b19d03f879dc0af
2013-10-14 14:43:10 +10:00
Ken'ichi Ohmichi
d90c010760 Move negative action tests to right place
Negative tests of server should be written on test_servers_negative.py,
but some negative tests are written on positive tests file, then that
would mislead developers who add new negative tests.

This patch moves these negative tests to a right place.

Change-Id: If3ddb2a0a5d27a87d610c6d8e7783d400fd32606
2013-10-13 23:55:31 +09:00
Jenkins
86ab2385c7 Merge "Accept gzip files in find_stack_traces.py" 2013-10-12 07:47:04 +00:00
Jenkins
b12d5e49b4 Merge "Increase heat's default max_template_size" 2013-10-12 06:49:13 +00:00
Jenkins
35c6fa6838 Merge "Add section for negative tests to HACKING.rst" 2013-10-11 22:02:59 +00:00
Jenkins
a7a3649651 Merge "Script to filter logs for ERRORs based on whitelist" 2013-10-11 22:02:34 +00:00
David Kranz
e8e263115b Script to filter logs for ERRORs based on whitelist
The script will take a directory or url containing log files.
For now all non-whitelisted errors will be dumped to the console but
the script will always return success. Once we are convinced it is reliable
enough we can change it to fail on non-whitelisted errors.

Partially implements blueprint fail-gate-on-log-errors

Change-Id: I30b0eee1055f47aaad7984d886c739ccf5aa6186
2013-10-11 09:27:11 -04:00
Jenkins
c0eba3903d Merge "add a negative test for flavor_extra_specs" 2013-10-11 01:17:12 +00:00
Joe Gordon
e7d9aab7fb Rename cli tests from compute to nova
All other CLI tests use the codenames (neutron, keystone, etc).  In
order to make things uniform do the same for nova (compute).

Change-Id: I2f299e1078924643e6e556275892775228176e11
2013-10-10 14:35:44 -07:00
Matthew Treinish
8b79bb395c Add section for negative tests to HACKING.rst
This commit adds a new section to HACKING.rst to outline the
guidelines for adding negative tests to tempest.

Change-Id: Ieb3fc3670bb9229c6791e5c8c0a7ac4fbde03c4d
2013-10-10 17:11:05 -04:00
Jenkins
6cbecae990 Merge "Add CLI tests for Neutron's metering agent" 2013-10-10 19:18:56 +00:00
Jenkins
0d62dae760 Merge "add some tests for user api" 2013-10-10 19:18:29 +00:00
Jenkins
e453e02432 Merge "Add security group to large_ops test" 2013-10-10 19:18:22 +00:00
Jenkins
b86b94bbec Merge "Use built in cleanup for servers in test_large_ops" 2013-10-10 17:09:37 +00:00
Jenkins
50643e013c Merge "Add some test-cases for cinder cli" 2013-10-10 16:16:01 +00:00
wingwj
69f09bbae2 Add some test-cases for cinder cli
Add some omitted test-cases for cinder-cli in tempest

 + test_cinder_credentials
 + test_cinder_availability_zone_list
 + test_cinder_endpoints
 + test_cinder_service_list
 + test_cinder_transfer_list
 + test_cinder_bash_completion

Change-Id: I2d05fa0fb1421c292097c19643ed22f221a0d349
2013-10-10 11:31:10 +08:00
huangtianhua
1b855bcbb3 add token test for token-api
- test_tokens.py

Change-Id: I1dad4a32ab22c39f37ad77913781cc3ed55590fe
2013-10-10 11:12:44 +08:00
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
jun xie
0ea7984e80 Test for server create with IPv6 address only
Add a new test case for creating a server without an
IPv4 address, only with an IPv6 address.

Change-Id: I4a081ca4f8e47daa73342ff49a18822e815e590a
2013-10-10 10:49:20 +08:00
David Kranz
9e3c71780a Accept gzip files in find_stack_traces.py
The server response seems to have changed since this code was originally
written.

Change-Id: Icffc062ce46f59b678fe468560d198567286fe67
2013-10-09 21:51:25 -04:00
Salvatore Orlando
a85e8febcf Add a create_router utility function
Similary to other neutron resources, add a utility function for
creating a logical router in tempest.api.network.base.BaseNetworkClient

Also, adapt test_floating_ips to use this function

Change-Id: I36f60028f75f7d4b2ed814a965431d2d4138cfbd
Partial-Bug: #1228091
2013-10-09 16:33:43 -07:00
Matthew Treinish
968a317e6a Update lockutils from oslo-incubator
This commit updates lockutils from oslo incubator which adds a
LockFixture class. This also converts the tempest LockFixture to wrap
the fixture from oslo.

Change-Id: I4f5007109fa6ceff868c23d55d9962f9d703bb1f
2013-10-09 19:18:00 -04:00
Joe Gordon
30684ef409 Add security group to large_ops test
There have been some issues with performance around security groups in
the past. Lets make sure they don't exist.

We gate on test_large_ops as part of gate-tempest-devstack-vm-large-ops

Change-Id: Ib655deab9fc12df969b47552d7d8edc999c0d06a
2013-10-09 15:26:19 -07:00
Joe Gordon
a3219655b5 Use built in cleanup for servers in test_large_ops
The  scenario base class has code  to properly clean up servers and
wait until they are fully deleted.  Use this instead of custom cleanup
which doesn't wait for delete to complete.

Change-Id: Ic9fe5ea0d267116d5bc78f50d1945602e5247d6a
2013-10-09 15:26:12 -07:00
Matthew Treinish
12fdf4bda5 Split out unit tests as separate tox jobs
This commit removes the tempest unit tests from the same tox job as
the tempest runs. It creates a separate py26, py27, and py33 tox job
for running the unit tests.

Change-Id: I9efea4cfa42f770c34869c0b0931b0ed0b51c177
2013-10-09 21:27:51 +00:00
Matthew Treinish
7228e1149f Update to latest tox
This commit updates to the latest tox, it also updates the tox.ini to
use develop instead of sdist/install.

Change-Id: I1ef044a5638be99fc060fd30c1cbd5ea8283e881
2013-10-09 17:26:59 -04:00
Attila Fazekas
e949cb7104 glance image v1 member test cleaup
* Use private (not public) image for image member tests
* Use the alt_users tenant not a randomly selected tenant
* Increase the verbosity of the assertEqual int the test_remove_member

Change-Id: I3aac82f59e09998bf938ac364671d3d944d47a62
2013-10-09 13:42:39 +02:00
LingxianKong
062e30a4ee delete the duplicated variable definition
A duplicated variable definition is introduced by the early merge today
which should be fixed.

Change-Id: I1aef41d1002867988c05dbab2317365893f58569
Closes-Bug: #1237273
2013-10-09 16:30:01 +08:00
Jenkins
b3e9c228b5 Merge "Add some test_cases for compute-cli" 2013-10-09 05:33:29 +00:00
Steven Dake
aa00311e90 Increase heat's default max_template_size
devstack has a small 10k max template size.  This is too small for
many templates that may be used during development.  Thus, we need
to change this and devstack to a larger value.

Change-Id: I474c7cbc196a4e94ba67cab4e2ca2263dc902e26
2013-10-08 21:20:26 -07:00
huangtianhua
fc8db4f6ac add some tests for user api
make a seperate file test_users_negative.py and move exist negative tests
over to it,also add some negative tests to it

- test_create_user_with_enabled_non_bool
- test_create_user_with_enabled
- create_user
- test_update_user_for_non_existant_user
- test_update_user_request_without_a_token
- test_update_user_by_unauthorized_user
- test_delete_user_request_without_a_token

Change-Id: I5a87d72ecb94046809faf0ce14b1af347c2e4dcc
2013-10-09 11:44:00 +08:00
Jenkins
ae091ad652 Merge "Test for the nova diagnostics API" 2013-10-09 02:06:07 +00:00
Jenkins
8197f96809 Merge "add some negative tests for volume updating:" 2013-10-09 01:40:57 +00:00