Adds test_update_all_metadata_field_not_included negative test

Adds test_update_all_metadata_field_not_included negative test
which checks a BadRequest is returned when attempting to
set the server metadata and not include the metadata field

Collapses all of the negative tests into one testcase as they
should not have any side effects and it will slightly reduce
setup overhead.

Change-Id: Iab221d23e896fb22bbe351bb20c0378ebaa60add
Closes-Bug: 1131536
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
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
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
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
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
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
add token test for token-api

- test_tokens.py

Change-Id: I1dad4a32ab22c39f37ad77913781cc3ed55590fe
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
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
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
add volume tests

negative tests for create volume

Change-Id: I81c5596dde58679f9be1dccc15b6bb70bd71f842
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
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
add some tests for host and seperate negative ones

For host operation, there are some APIs: list, show, update, startup,
shutdown, reboot. This patch will mainly add some negative tests for
update, startup, shutdown, reboot. It is important to note that, for
Libvirt Driver currently, there are no implementations for
set_host_enabled/host_maintenance_mode/host_power_action.

Change-Id: Ia810b956a20eae67e8ec43e3edf9fcb019f71711
Merge "Split out unit tests as separate tox jobs"
Merge "skip test_lock_unlock_server"
Merge "glance image v1 member test cleaup"
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
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