Add delete specific status server test

Add test to delete a error status server.
Add test to delete a shutoff status server.
Add test to delete a paused status server.

Change-Id: I5c1b8f77087c4205b5b94cdc41626f99ecbe3d11
Use install_venv from oslo to fix no post_process issue

In a recent oslo sync commit Ib9b07fe733dc2c924ac0eb054fa707dd352a812b,
post_process() has been removed from tools/install_venv_common.py.
However, it's still called in tools/install_venv.

The current code for CentOS looks like trying to install the openssl
after trying to compile pyOpenSSL. So this can't be working.

This change switches tools/install_venv.py to use oslo code to align the
effort as well as fixing original no 'post_process' issue.

Note: openstack-common.conf is not updated. Because the project name
variable in install_venv has to be modified after syncing from oslo.
That makes it not an exact sync but modification after sync now.

Change-Id: Ia50075f9b317315eb939ddb66645987bb9ec69c2
Closes-Bug: #1263940
Rework extension verification in verify_tempest_config

Due to several changes being made to the config nomenclature around
features and extensions in tempest the verify_tempest_config script
was actually not valid anymore. This commit fixes the script to use
the updated config structure. Additionally it adds support for all
3 api's in tempest that currently have extensions api clients:
nova, nova_v3, and cinder.

Partially implements bp config-verification

Change-Id: I35c325c5f57803b36906bde13f132b69509f5e85
Add neutron extension support to verify_tempest_config

This commit adds support for the neutron extension detection to the
verify_tempest_config script. The neutron extensions api behaves
slightly differently from the other services in that several of the
extensions' name field is really a title that includes spaces. This
can't be used for the list option and the tempest code already
assumes that the alias field is used instead of name.

Partially implements bp config-verification

Change-Id: Ib60f191fec1cb6b9d60055a848749b07b8393cf5
Add unit tests for SSH client functionality

Part of a push to add unit tests to Tempest for its internal
code. This patch adds unit tests for the SSH Client class
used by some of the functional integration tests for executing
commands inside server instances.

Note that there was an uncalled connect_until_closed method
that was removed from the tempest.common.ssh.Client class.

Closes-Bug: #1269948
Change-Id: I901900a27cc006d60f3ee6f5426ca6719a18f8ac
Addresses: blueprint unit-tests
Fix log_console_output call in test_network_basicops

The call is currently iterating over self.servers expecting it to
return a key-value pair. That would be true for self.server.items or
self.server.iteritimes, but not self.server.

This patch just passes self.servers.keys to log_console_output

Change-Id: I8cb9e5e44ffbb7ac9308d1f3b31c76949b9ffb4f
text-html type is absent in TXT_ENC

If we get response with 404 status code and this response
contains in headers "content-type: text/html", NotFound
exception isn't raised.
Add 'text/html' type of content and convert value of
this parameter to lower case.

Change-Id: I632701f43219fa6c0efc6e95bf6007cb0a3ff0c2
Closes-Bug: #1269712
Remove X-Storage-Stoken from object_storage

We don't need it since X-Auth-Token is the one used and if defined as
None would crash.

Change-Id: I9487838996c861d99915132c4cb491fb66460593
Closes-Bug: 1266876
Python 2.6 do not has unittest.loader, we import unittest2 instead

try to import loader from unittest and if ImportError is caught,
import unittest2 instead

Change-Id: I8a638fb54c9b699ee5a26c7b81965ee170f7ba1d
Remove vim headers 2nd round

We don't need to have the vim headers in each source files. So we have
already removed all of it at
 Change-Id: I43703e2289212389c7841f44691ae7849ed1f505
However, some files still have it now because of the patch time lag.
Maybe, we should have a hacking rule for this. But it's out of scope
here.

Change-Id: I8d09cb41ad633719857973a3ea228cd8dd3a9270
Closes-Bug: #1229324
Separate negative tests for test_quotas

Move negative tests from test_quotas.py to test_quotas_negative.py.
Some test cases in test_quotas.py which test the exceptions should
also be considered as negative test.
Move them to test_quotas_negative.py

Partially implements blueprint negative-test-files

Change-Id: Ib30e5b81d6c9519b6968aa8d6255fc10812dec3e
Add more descriptive assertion message for test_create_backup

In order to fingerprint the failure for gate race bug 1267326 in
elastic-recheck, the assertion message needs to be specific to the test
case that's failing. We have to do something like this until we have
multi-line query support in elastic-recheck.

Also makes the backup names more specific.

Related-Bug: #1267326

Change-Id: I4cf4a3409eedf64f928ae7b0ff4a660c116b89bc
Exclude heartbeat timestamp from agent list checks

Do not compare the heartbeat timestamp in comparisons for
agent list test as updates from agents might update it
and cause the test to fail.

Change-Id: Ia90ebb96bd005d36f519a2ec88bd0277922048c8
Closes-Bug: #1261814
Add volume cleanup to test_volume_transfer test

The tempest tests were leaving volumes behind when it
finished up.  Turns out these were from the test_volume_transfer
tests.

The normal delete/cleanup methods can't be used here because we do
the whole bit of transferring the ownership of the volume so the base
client isn't the one that ends up having access to the volume.

This patch adds a delete and wait for cleanup method that's called
by the addition of an addCleanup task.

Change-Id: I6d27c7748ae386d97e727ddf0f8bb94046e6e88d
Closes-Bug: 1272533
Merge "Add delete specific status server test"
Merge "text-html type is absent in TXT_ENC"
Merge "Remove X-Storage-Stoken from object_storage"
Merge "Python 2.6 do not has unittest.loader, we import unittest2 instead"
Merge "Add more descriptive assertion message for test_create_backup"
Merge "Use install_venv from oslo to fix no post_process issue"