2052 Commits

Author SHA1 Message Date
Lingxian Kong
aecc109742 add some negative tests for force_delete/restore
- test_force_delete_nonexistent_server_id
- test_force_delete_server_invalid_state
- test_restore_nonexistent_server_id
- test_restore_server_invalid_state

negative tests should stay in negative files of corresponding action.

Change-Id: Icafcb1e17382f8856937e8e903650fb424b00a25
2013-10-26 08:47:39 +08:00
Sean Dague
ffe8afe6ee Revert "Use isolation credentials for neutron api tests"
This reverts commit 07c92e1bf3013b949804e5b0020677843a640441.

This currently locks up the neutron gate because of ip exhaustion.

Change-Id: Ia441e854e0d3e1da1c55a685045d935da3dc3c64
2013-10-23 15:32:26 -04:00
Jenkins
0fba9391f8 Merge "fix DeletableSubnet in api/network/common" 2013-10-23 12:02:33 +00:00
Yair Fried
ca1d9a9523 fix DeletableSubnet in api/network/common
DeletableSubnet._router_ids was defined as a static attribute, causing
errors on tearDown working with multiple {router,subnet} couples as it
tries to disconnect subnet from all routers existing instead of all
routers connected to it

Change-Id: Id446d7bb2be117ea56b52e6a644b259089cdc158
2013-10-23 08:12:34 +03:00
Jenkins
771b9506c3 Merge "use "" instead of "None" in xml file" 2013-10-22 21:21:21 +00:00
Jenkins
bb024b04e3 Merge "Use isolation credentials for neutron api tests" 2013-10-22 20:48:00 +00:00
Jenkins
cccde4a784 Merge "uses skip_because where appropriate instead of regular skip" 2013-10-22 20:47:57 +00:00
Jenkins
44c050af0d Merge "Forced isolation for the nova quota test" 2013-10-22 20:47:48 +00:00
Jenkins
7bd466788e Merge "Test for server create with IPv6 address only" 2013-10-22 20:47:36 +00:00
Jenkins
da458c2e80 Merge "api/network/security_groups_negative add testcases" 2013-10-22 17:25:38 +00:00
Jenkins
38b680808c Merge "Fix issue with ImagesOneServerJSON test" 2013-10-22 17:08:23 +00:00
Jenkins
18dae645a6 Merge "add BaseV2ComputeTest as the base class of nova v2 api tests" 2013-10-22 16:47:11 +00:00
Jenkins
b1b62db05b Merge "Add a flavor test for getting a specified key value API" 2013-10-22 16:47:03 +00:00
Jenkins
4411fdf609 Merge "Simplify xml/json client selection" 2013-10-22 16:46:56 +00:00
Yair Fried
a18921edda api/network/security_groups_negative add testcases
add following negative test cases:
1. delete non existent secgroup
2. create rule with invalid protocol name
3. create rule with invalid port

Change-Id: Iad17f9b163ba33297edd1e0b8ba14194050c878b
2013-10-22 16:44:53 +00:00
Jenkins
c0441be3d7 Merge "Change six to match global requirements" 2013-10-22 16:39:39 +00:00
Jenkins
ea879bedf1 Merge "add volume tests" 2013-10-22 10:17:11 +00:00
Sreeram Yerrapragada
62c1d9c425 Fix issue with ImagesOneServerJSON test
ImagesOneServerTestJSON using wrong client for checking server status.

Change-Id: I738318d32bd82329eecd54e469aa84bc9ebea15c
Closes-Bug: #1242903
2013-10-21 16:03:13 -07:00
Matthew Treinish
07c92e1bf3 Use isolation credentials for neutron api tests
This commit just adds the use of isolated credentials to the neutron
api tests if tenant isolation is enabled. Previously the neutron
tests would all run in the same tenant regardless of the config
option.

Change-Id: Ide9c4a3ed543b917bd401561c601f9897bd7db50
2013-10-21 21:09:18 +00:00
Attila Fazekas
7e678de2d6 Simplify xml/json client selection
The simpler/shorter xml/json switch code,
 makes easer the client related changes.

Change-Id: Ia5ca3cbeeb2577e6d8d8a46d2dbe1f1506375fae
2013-10-21 17:22:06 +02:00
Jenkins
7ca13ed9da Merge "add test for updating server's disk_config test" 2013-10-21 04:29:49 +00:00
Jenkins
66ff406102 Merge "add token test for token-api" 2013-10-21 03:48:21 +00:00
Jenkins
e34ac3729b Merge "add some tests for hypervisor operation" 2013-10-20 16:32:35 +00:00
Jenkins
cb8c5c0ecc Merge "Add a skip for meter-label cli tests" 2013-10-18 15:57:54 +00:00
ivan-zhu
ae5f98a11f use "" instead of "None" in xml file
The value "" will be consider as None, when API receive it.
But "None" will be consider as the string "None"

Closes-Bug: 1241397

Change-Id: I01f25dcc073684b1843abeb5814bc22b0520c5b1
2013-10-18 17:24:55 +08:00
Masayuki Igawa
4a2431d616 Inject "-tempest-" string to rand_name
In many tempest tests, we use rand_name(). However, these generated
names are very general. So it is difficult to distinguish the resource
is generated from Tempest or not.
And, in many tests, we use rand_name() with '-' suffix such as
rand_name('foo-'). I think this is not smart.
So this commit injects "-tempest-" to rand_name().

And, by this commit, the generated rand name will include "--" such as
'foo--tempest-123'.
So I will fix them in another commit.

Change-Id: I7bb8f5bbe2346b0b0ab6e91757e20a67b9098f8a
2013-10-18 17:26:33 +09:00
Attila Fazekas
430dae3425 Forced isolation for the nova quota test
Several test cases like quota related tests should not be done without
creating a new tenant in all cases.

This change enforces the isolated code path for the nova quota tests.
These tests requires admin rights anyway, so probably no one want to
try to run them without admin permissions.

Change-Id: Ib7550bc68f493ce9c6acbd57fc2d901e14ec2fef
2013-10-18 07:24:13 +02:00
ivan-zhu
f2b005078a add BaseV2ComputeTest as the base class of nova v2 api tests
this does refactor in compute.base, add BaseV2ComputeTest as
the base class of nova v2 api test. Because there will be nova
v3 tests, this change will be convenient to add BaseV3ComputeTest
as the base class of nova v3 api tests. In this way, we can split
v2 tests with v3 tests easily, and share some common method.

Partially implements blueprint nova-v3-api-tests

Change-Id: Ie8e0d17a95e8378733dd21ab341dfad1331edf6e
2013-10-18 11:43:22 +08:00
Anju5
c3e510cf12 Changed the exception name
Here changed the exception name for
http error code 409 from Duplicate to Conflict
and error code 500 from ComputeFault to ServerFault.

Change-Id: Ifbebd8761ac8402308e9d37ec78468c65539ac1a
2013-10-18 06:41:58 +05:30
Attila Fazekas
6fab1a1540 server status remained in unexpected state
Two test case in the test_servers_negative change the 'one' servers
into a stable not active state. We are waiting 2 times 400 sec for
getting active state in vain.
Having those test cases to restore the expected state.

The deleted server related rebuild and reboot test case create are
merged and it creates and deletes one server.

Change-Id: Ie1b9dc62bad2bf7b8595da2c9d6f994c646a0025
2013-10-17 19:38:14 +02:00
Jenkins
8bdb0f7f85 Merge "Separate negative tests api/network/security_groups" 2013-10-17 14:51:11 +00:00
Matthew Treinish
e22c97a2ac Add a skip for meter-label cli tests
This commit just adds a skip decorator for 2 neutron tests that don't
work in the gate either because of improper test setup or missing
devstack configuration.

Related-Bug: #1240694

Change-Id: I508aaf3dbc49c326cd54e2008f3e14935f23056e
2013-10-17 14:46:44 +00:00
Jenkins
db740d7d41 Merge "VPNaas vpnservice test cases" 2013-10-17 14:18:46 +00:00
Jenkins
2402859028 Merge "Move negative action tests to right place" 2013-10-17 14:18:43 +00:00
Jenkins
c06612cbcb Merge "Skip negative compute quota tests that don't work with Neutron" 2013-10-17 14:13:01 +00:00
Anju Tiwari
860097dd30 VPNaas vpnservice test cases
Adding testcases for vpn service create, list, delete, and show
part of blueprint: vpnaas-api-test-cases
Change-Id: I015fd503a198f93bfc7382e30b2aff5c74b3fd30
2013-10-17 17:50:35 +05:30
Yair Fried
1630061cca Separate negative tests api/network/security_groups
moved negative tests cases to a new file

Change-Id: I24438d556231d80b21e033acc79da3a050bf31cb
2013-10-17 14:14:05 +03:00
Jenkins
3114ac1b3d Merge "Fixing ImagesOneServerTestXml issue" 2013-10-17 09:42:36 +00:00
Jenkins
c0c6d85585 Merge "Fix to use proper random values" 2013-10-16 22:38:03 +00:00
Matt Riedemann
6ac8a107a0 Skip negative compute quota tests that don't work with Neutron
Change I5187a109f0bacb1f3afa4276b3d73f47fd53ad87 re-enabled some
negative quota tests for compute but they don't work if you're using
Neutron due to nova bug 1186354.

There is a patch up for the bug here:

https://review.openstack.org/#/c/43822/

but it's taking awhile to land so we should skip the tests until that's
working.

Partial-Bug: #1186354

Change-Id: I0458f8cf95585962638a82da34397071e34a1940
2013-10-16 13:40:31 -07:00
Giulio Fidente
386ac8f3d8 uses skip_because where appropriate instead of regular skip
Change-Id: If37582fa6b4ea9ec36bf446de305a97ea525b1f9
2013-10-16 22:30:05 +02:00
Jenkins
a2a0c9066c Merge "Orchestration autoscaling improve status polling" 2013-10-16 16:08:11 +00:00
Jenkins
013633930b Merge "add some negative tests for tenant" 2013-10-16 15:43:41 +00:00
Jenkins
e5f5201ef0 Merge "Adds test_update_all_metadata_field_not_included negative test" 2013-10-16 15:42:45 +00:00
Attila Fazekas
4629a238b4 Fixing ImagesOneServerTestXml issue
Now operations started with the server when it's task state was not
None. Ie. Idle / 'ready for action'.

The wait for wait_for_server_status method implicitly waits for the None
task state, it should be able to fix the issue.

The server will be rebuilded if otherwise it cannot be move to a clean active
state, this issue will be logged.
It is an unexpected exception, so the log verifier should be able to
report it.

Fixing bug 1218391

Change-Id: Ib0e90a06e0e34f134bcca74712939e87e235c1ea
2013-10-16 17:20:45 +02:00
ivan-zhu
72d7d5b022 add test for updating server's disk_config test
this add test for updating server's disk_config tests. And use
addCleanup to manager server resource instead of deleting server
at end of these tests in this file.

Change-Id: I2ed90456e86f6e8c6e7d0b954bf381d944a6ca53
2013-10-16 17:30:58 +08:00
Jenkins
2a05a3c5b0 Merge "glance image v1 member test cleaup" 2013-10-16 08:26:50 +00:00
Jenkins
602b76d782 Merge "skip test_lock_unlock_server" 2013-10-16 04:30:46 +00:00
Jenkins
717fb564b1 Merge "Split out unit tests as separate tox jobs" 2013-10-15 23:32:03 +00:00
Jenkins
12e4403734 Merge "Skip get_server_diagnostics test until bug 1240043 is fixed" 2013-10-15 14:23:17 +00:00