2052 Commits

Author SHA1 Message Date
Jenkins
d7292203de Merge "Remove unused CONF variable and import statement" 2013-10-08 19:04:19 +00:00
Jenkins
b2776c9db1 Merge "meta should be metadata in rebuild server" 2013-10-08 18:33:03 +00:00
Jenkins
f8c534baec Merge "Cleanup existing instances in setup for test_list_servers_negative.py" 2013-10-08 18:04:15 +00:00
Jenkins
f59d6c4def Merge "add volume list tests" 2013-10-08 18:04:12 +00:00
Jenkins
db56fc53aa Merge "Initial basic setup of openstack and tempest config file" 2013-10-08 16:06:57 +00:00
Jenkins
b52a562a86 Merge "Allow _status_timeout to be used for non-nova polling" 2013-10-08 14:22:41 +00:00
Jenkins
efa8536abc Merge "remove code duplication in tempest/config.py" 2013-10-08 14:16:19 +00:00
Jenkins
2c8e829866 Merge "pass stop_on_error to _has_error_in_logs" 2013-10-08 14:09:01 +00:00
Cyril Roelandt
10a02d7411 Add CLI tests for Neutron's metering agent
This adds simple tests for the following commands:
* meter-label-list
* meter-label-rule-list

Change-Id: Ie0891d61b925c0d3e11e66eb10c7994368930a94
2013-10-08 12:31:01 +00:00
wingwj
e5e318fe1d Add some test_cases for compute-cli
+ test_agent_list
+ test_cell_list
+ test_host_list

Change-Id: Ic99c3e137da688a97d39af4902c71ddddf34228e
2013-10-08 17:29:02 +08:00
ivan-zhu
44e0865ba7 skip test_lock_unlock_server
skip test_lock_unlock_server due to bug 1233026.
Fix the bug will change the exception of self.servers_client.stop.
After this bug fixed, will update this test.

Change-Id: Ie1e8de6b3582147a44337b0cd6f0ab51531b6938
2013-10-08 16:50:37 +08:00
Jenkins
d0181f647c Merge "add two negative tests for flavor-access" 2013-10-08 06:23:26 +00:00
wanghao
c2abb6c102 add some negative tests for volume updating:
- test_update_volume_with_nonexistant_volume_id
- test_create_volume_with_size_negative
- test_update_volume_with_invalid_volume_id
- test_update_volume_with_empty_volume_id

Change-Id: Iee8510303b2643c065a662655ac2b4e44611ba84
2013-10-08 14:15:10 +08:00
DennyZhang
88a2dd8d3b remove code duplication in tempest/config.py
tempest/config.py has many simliar tiny functions for register_*_opts.
We should remove the code duplication to providing a common function.

Change-Id: Ie8facc21a2d8a1e27687b1182a3db9f98bc1a05e
Closes-Bug: #1236498
2013-10-07 23:56:06 -05:00
Zhi Kun Liu
ee454d77e9 add volume list tests
list volume using parameters:
display_name
status
availability_zone

Change-Id: I97d88b5033e7033cfc4b2328698978da7714f0a4
2013-10-08 12:17:39 +08:00
Jenkins
308614d45a Merge "Use predictable instance/volume names in test_volumes_actions" 2013-10-07 22:05:39 +00:00
Jenkins
2512fec42c Merge "Cleanup test_list_server_filters setup/teardown" 2013-10-07 22:05:31 +00:00
Jenkins
edee0e0a4b Merge "Add addtional logging and catch exceptions" 2013-10-07 21:16:38 +00:00
Jenkins
499357db48 Merge "Placeholder log check script to be called by devstack-gate" 2013-10-07 16:39:28 +00:00
Marc Koderer
16648e9e2b Add addtional logging and catch exceptions
Sometimes the nightly stress test run fails. This will catch all
exceptions in run_stress.py and log them.

Change-Id: Ib6abd2c157df3988ccae1c6c8f703ec0ed24ff00
Fixes-bug: 1234580
2013-10-07 18:29:54 +02:00
Jenkins
1ba23be265 Merge "Fix skip_because decorator" 2013-10-07 16:09:41 +00:00
David Kranz
852c5c2eb2 Placeholder log check script to be called by devstack-gate
Partially implements blueprint fail-gate-on-log-errors

Change-Id: Ie07b7f95c1aa439ba21431cb08848e8ba6b90336
2013-10-07 11:15:02 -04:00
Jenkins
30e2d7d369 Merge "tempest/config.py parse some sections incorrectly" 2013-10-07 11:59:36 +00:00
Matt Riedemann
339dcd51da Cleanup existing instances in setup for test_list_servers_negative.py
Change I8519cba1fcf6ff39d69839783d07359544509db5 was supposed to make
the setup for test_list_servers_negative.py handle the case that tempest
is being ran without tenant isolation, but it doesn't fix the entire
problem because it's only checking if the MULTI_USER global is False.
The MULTI_USER global is only False if allow_tenant_isolation=False and
user1 == user2. So if you're running tempest without tenant isolation
but you do have two separate users/tenants for running the tests, then
the setup can still fail.

This patch fixes the problem by always doing the cleanup if
allow_tenant_isolation=False regardless of what MULTI_USER is set to.

Closes-Bug: #1234370

Change-Id: I821e200d07c11ba04d8be788095b7648de1d820b
2013-10-07 03:52:37 -07:00
Masayuki Igawa
80c1b9f7eb Fix skip_because decorator
If we use skip_because decorator, the below error occurs.
 _StringException: ImportError: Failed to import test module:...
And, all tests of the class having the skip_because decorator are not
tested.
This commit fixes it.

Change-Id: I98e51d3bfd8b13dc3ef462eb92b170295f5f142e
Closes-Bug: #1236220
2013-10-07 18:33:08 +09:00
Zhu Zhu
da07085874 Test for the nova diagnostics API
Add tests for nova API 'servers/{server_id}/diagnostics'

Change-Id: If631472081d16fe8c0b37575eb157a7b13d6fba4
2013-10-06 18:59:46 +08:00
Jenkins
58daf5f1f0 Merge "Add xml support to the floating ip and router" 2013-10-05 13:46:10 +00:00
Jenkins
3fc8f8bc0a Merge "Clean up existing instances when not using tenant isolation" 2013-10-05 12:50:25 +00:00
Matt Riedemann
eeffc7bc3f Use predictable instance/volume names in test_volumes_actions
The setup method of test_volumes_actions generates a random name for the
instance and volume it uses for the tests but the names don't include
the test class so if they don't get cleaned up it's hard to debug where
they came from.  This patch simply adds the class name to the
instance/volume name generation.

Closes-Bug: #1235411

Change-Id: If457e73c11f08fd57ee77a85208de84fc39eda8c
2013-10-04 13:34:07 -07:00
Matt Riedemann
12c29e0292 Cleanup test_list_server_filters setup/teardown
The test_list_server_filters test class was doing a lot of
setup/teardown work that is now handled in the parent class. We still
have to explicitly set the name since some tests use it for filtering
but otherwise we can rely on the parent class to do most of the heavy
lifting here.

This change makes it so that the instances have a name based on the test
class rather than just a random integer which is hard to use for
debugging leaked instances.

This change also removes the get call from setup and moves it into the
test cases that actually need to use it (which are currently being
skipped anyway).

Closes-Bug: 1235411

Change-Id: I66813c900059dd4232de645c225032e58e9aecde
2013-10-04 13:33:53 -07:00
Lingxian Kong
53a11555f4 add two negative tests for flavor-access
- test_add_flavor_access_duplicate
- test_remove_flavor_access_nonexistent

Change-Id: I161f52863fd7fde5f7ffcaccd01cddf243da5a4a
2013-10-04 23:52:27 +08:00
Masayuki Igawa
9217f57c3b Remove unused CONF variable and import statement
This CONF vaiable and 'import config' are not necessary. So this commit
removes it.

Change-Id: I050c2c1aa8642e6a39e9dbfef63f0156d457c5fc
2013-10-04 23:54:03 +09:00
Lingxian Kong
2eb89ccc88 add a negative test for flavor_extra_specs
When unseting a nonexistent key, an exception should be raised.
when settting flavor extra specs, key is arbitrary, so
'set_nonexistent_key' does not make sense

Change-Id: I1b94a8b9524ed67dfc3fb1afd51442b740873638
2013-10-04 22:49:46 +08:00
Giulio Fidente
83181a9703 introduces skip_because decorator
this change introduces a skip_because decorator which accepts two args
a bug and a condition; also updates the skip tracker accordingly

Change-Id: If53f2ef81d6bddbce284267216254b467046855f
2013-10-04 15:48:28 +02:00
Giulio Fidente
4ea019472d pass stop_on_error to _has_error_in_logs
we missed to pass over the stop_on_error boolean to the function

Change-Id: I7dfc413ff37f9315d74bcade1c022f157ec8c4c0
2013-10-04 12:32:03 +02:00
Jenkins
385f0b116e Merge "Do not check for id in the keystone output" 2013-10-04 04:58:48 +00:00
Matt Riedemann
8a3973cddb Clean up existing instances when not using tenant isolation
The test_list_servers_negative tests require that there are no existing
instances in the database when they run and will fail if any are found
under the primary/alternate user/tenant.

When running tempest with allow_tenant_isolation=false on a slower
system, there is a race where instances from previous tests are still
cleaning up in the background and cause test_list_servers_negative to
fail in setup.

This patch makes test_list_servers_negative block while the deleted
instances are being cleaned up in the background if running without
tenant isolation.

Closes-Bug: #1234370

Change-Id: I8519cba1fcf6ff39d69839783d07359544509db5
2013-10-03 18:56:02 -07:00
Jenkins
57891fab57 Merge "_error_in_logs function of driver.py shall check all nodes" 2013-10-03 21:42:39 +00:00
Jenkins
2119956399 Merge "add server suspend/resume negative tests" 2013-10-03 21:41:09 +00:00
Jenkins
29d25c097d Merge "Handle test_list_servers_by_changes_since without tenant isolation" 2013-10-03 21:22:14 +00:00
Steve Baker
dd9fb00679 Orchestration autoscaling improve status polling
This change includes the following improvements to the
autoscaling test:
- On stack create status timeout, override the error status so
  that FAILED stacks fail fast
- Improve the error message in assertScale
- Delete the stack at the end of the scenario, and confirm the delete
  succeeded

Change-Id: Ia220e3a2b422472ac7c6d29f9a5a61bd7c4987c3
2013-10-04 10:12:03 +13:00
Steve Baker
efde76183b Allow _status_timeout to be used for non-nova polling
The error status and not-found exception used for
status_timeout and delete_timeout are specific to nova.

This change makes it possible to override the nova defaults.
Specifically, this will improve the status polling of the
orchestration scenario tests.

Change-Id: Ib55f95ed51ecce3813a57c330e0f936414ec3ff2
2013-10-04 10:12:03 +13:00
Attila Fazekas
ea88d9f516 TEMPEST_PY26_NOSE_COMPAT in py26 jobs
Use py26 skip exception compatibility code path in py26 jobs.

Change-Id: Id6c29f26f19f69abab558d5f94d8cbf6190ed43b
2013-10-03 19:36:15 +02:00
Jenkins
4d91977ccd Merge "add server delete/unpause tests" 2013-10-03 17:23:08 +00:00
Matt Riedemann
01cb1261d1 Handle test_list_servers_by_changes_since without tenant isolation
The test_list_servers_by_changes_since test fails when running with
allow_tenant_isolation=false because there is an arbitrary 2 minutes to
determine the timedelta for the changes-since in the query. That doesn't
work when the servers created in the test are all under the same
user/tenant because the tearDown doesn't block until the servers are
deleted.

This patch makes the timedelta code smarter in that it narrows the
changes-since down to when the test case started setting up the servers
for the test and when it does the query.

Closes-Bug: #1195309

Change-Id: Ie848637ea490da2151e5db8292726111d45a8c2d
2013-10-03 06:19:34 -07:00
Attila Fazekas
c74aedee63 Add xml support to the floating ip and router
Creating xml version for the neutron router and floatingip related
operation. The test_floating_ips.py also extended with the XML variant.

Change-Id: I5e85cd263828a127ed48db04b19fbf4d145f1d87
2013-10-03 11:26:36 +02:00
Jenkins
5573270d9b Merge "Unskip test_tokens and update expected status to 404 from 401" 2013-10-03 07:42:03 +00:00
LingxianKong
b2ca96f1ba add server delete/unpause tests
add an expected behaviour test of deleting server
- delete_active_server
add two negative tests for server unpausing
- unpause_non_existent_server
- unpause_server_invalid_state

Change-Id: Ia9b5fdf1c2298ff685322fc99a5496710a7a67ef
2013-10-03 12:59:26 +08:00
LingxianKong
691a570bde add server suspend/resume negative tests
- suspend_non_existent_server
- suspend_server_invalid_state
- resume_non_existent_server
- resume_server_invalid_state

Change-Id: I3aff0d6f017a9ed228e45307ecca53373e8daaf8
2013-10-03 12:52:00 +08:00
Jenkins
25bddd9104 Merge "Heat: use first_address instead of first_private_address" 2013-10-03 02:51:10 +00:00