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
Tests object_storage extension listing

This patch adds the feature to list extensions to the object_storage
account_client and then adds one test to validates it works.

This is a first step in view of adding this feature to the config
validation script.

Partially implements config-verification

Change-Id: I8ff31a761d82ea4b7b09307ae1d51108d7f6911e
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
Remove user creation in object service and healthcheck test

To test basic object services and healthcheck middleware it is not
required to create a test user.  By removing this code, it is now
possible to run this test without an administrator account if
allow_tenant_isolation is set to False.

Change-Id: I475e59572729a826739bedb809b8ab5bbd746861
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
Avoid using assertGreater

This doesn't exist in python 2.6.

Change-Id: I8d41a568ac4c9fc7330077e6643b40eddc071f91
stop validating user IDs on role assignment operations

Keystone is proposing to change it's behavior regarding user & group ID
validation on role assignment operations in order to establish full
isolation between the assignment and identity interfaces, which were
split apart during havana.

Change-Id: Id0549d6b26f348f6029c238adfcb4d8dc47be316
Implements: bp no-check-id
Change status available to active

Avalible is not a correct status of Image.
Here need to check the list of the images
where the status of an image is active.
Available is not a correct status of an image.

Change-Id: Ib1894ebf1245d0dffe72cbd361c528fa4a1b4bbf
Create telemetry client

Create telemetry client for tempest

Change-Id: I08c9b6a02bcddd8cab2d066928513b4ae40431ec
Partially implements: blueprint add-basic-ceilometer-tests
Increase ping timeout from 60 to 120 seconds

The Cirros image only sends out three DHCPDISCOVERs with 60 second
waits between. The ovs_neutron_agent may not have the port wired in
time for the first one, and with ping_timeout=60 the test will be
terminated before the second one is sent. This patch increases the
timeout to 120 seconds to prevent that.

Change-Id: I03fcec50b91fd89ad64e16fce82f9211c2e086a1
Partial-Bug: 1253896
Separate negative tests for Swift

Move negative tests in Swift to their own file.

Partially implements blueprint negative-test-files

Change-Id: If7c42acdbc58107b7fcd6eef979d426935304a76
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