Add check_uptodate.sh to run_tests.sh -p

Now, check_uptodate.sh is executed by 'tox -epep8' or using it directly.
We have run_tests.sh for convenience and many developers use it for
checking their code. So we should also have 'check_uptodate.sh' in
run_tests.sh.
This commit adds check_uptodate.sh to 'run_tests.sh -p'

Change-Id: I4c994e0589cfd6cb213aed5acd232670fc320a26
Make v2 and v3 identity apis configurable

This commit adds a config option to the identity feature enabled group
to specify whether the v2 and/or v3 apis are enabled in keystone. In
the process of adding this feature the logical split between v2 and v3
tests in the identity api tests is made more clear. Additionally as part,
of the split several bugs are fixed where the v2 api was being called
in the v3 tests.

Change-Id: I0d727f3567c82fe512b956110bb813119ced0b3d
Fixed misspellings in Tempest

Change-Id: Id52898cb47008677640e228363dde96e9cba173b
network: add metering api operations

This patch aims to bring new tests related to Neutron Metering plugin.

They cover:
- List / Create / Show / Delete metering labels
- List / Create / Show / Delete metering label rules

Note: Update operation is not covered by the API.
Also add basic operations in network admin client.

Change-Id: Ieaf9a5dcd52f54e015e7565f50a3ea81569c483a
Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
Support building wheels (PEP-427)

Universal is used to identify pure-Python module(by bdist_wheel). For
these, it is sufficient to build a wheel with _any_ Python ABI version
and publish that to PyPI (by whatever means).

Change-Id: Ib15e61ce3edf6f2694795167c85d40457bf11292
Test to list ports filtered by router ID

Added a test case 'test_port_list_filter_by_router_id'to test_networks.py
in 'tempest/api/network'. This test case adds an interface to router using
port ID and checks if 'list_ports filtered by router id' returns only one
port that was added while creating interface

Change-Id: I1d33614a277ff6767cbb4619de0ebef43b4980b1
InputScenarioUtils load images if glance available

The scenario_images utility of InputScenarioUtils shall
load the image list from glance only if glance is available.
Otherwise the test discovery process will fail if glance
is not available.

Closes bug 1277669

Change-Id: I4be7b9b88d9f8ff42059ece84a3c58df4fb90f1e
Add support for special char in volume metadata

Using special characters such as "&" in volume metadata caused
a server error when using the XML volume client because these
chars were not being escaped.

Closes-Bug: #1268513
Change-Id: I03d5f4d1f7480f8a3c405f77143835f1a9be7ec4
Network API: default to ipv4, add ipv6 tests

Change-Id: I34da0ede4d7b92b2e752c2da82172c495e1946b1
Let the soft reboot really happen in the minimum scenario

The cirros image can support the soft reboot, but we reboot the machine
before the acpid started, it leads to additional 120 second wait before
nova falls back to the hard reboot.
As a solution we will ssh the machine before reboot, because the ssh
server starts after the acpid, so we will send the ACPI event, only
when the acpid is really running.

Change-Id: I3700a374dc937086518c5c843a288e935ab458bf
port flavors and server_password tests into nova v3 part1

This changeset only copies the v2 files into the appropriate v3
directories unchanged. This is being tried in order to make
reviewing of the porting easier as gerrit will display only what
is actually changed for v3 rather than entirely new files.

Partially implements blueprint nova-v3-api-tests

Change-Id: Ifd7409aa7ece0f3a882918cfde66f5e45cea6576
Add some cases about volume-create and volume-rename

Add some test cases
  * create volume when name is none
  * create volume when description contains specific characters
  * create volume with availability_zone
  * rename volume when name is same with original value
  * rename volume when name is duplicated
With these case, volume tempest can be more comprehensive.

Change-Id: I543070a74c237451aa6268b8c2f903b13adce8dc
Adds list pool stat test case

This submission is to validate the list pool stat feature.
Adds a test case to test_loadbalancer.py and support function
in XML/JSON interfaces

Change-Id: Ia284334c9127ec200a48c098d28bdaf188281887
Separate negative tests for test_list_image_filters

Move negative tests from test_list_image_filters.py to
test_list_image_filters_negative.py

Partially implements blueprint negative-test-files

Change-Id: Ib25f2d3913d1c886c3f0fb51addcab4dc31c419a
port flavors and server_password tests into nova v3 part2

this ports the flavors, server_password tests and corresponding client
into v3 version.

Partially implements blueprint nova-v3-api-tests

Change-Id: Iaf2056d56429898d524536e54296bac5e479fd3e
clean up security groups tests

This patch clean up test codes of security groups in the
following items:
1. add a helper function create_new_security_group to replace the
   duplicate codes in test methods
2. remove duplicate test case test_security_group_create_delete
   in test_security_groups.py
3. use data_utils.rand_uuid() instead of str(uuid.uuid4())
4. import test module instead of attr

Change-Id: Iaf1a267134a12a664a0f306980c9cb39fe5ac1eb
Rename Openstack to OpenStack

Change-Id: I64530a086f591a2f0e33ab734e4241b4c9846820
cleanUp() removing all test resources as an admin

Add a parameter in tempest.conf "full_clean_stack" to
allow/prevent the use of cleanup() method at the end
of a stress test run.

This is mandatory to use stress tests in a multi-user
environment since the actual cleanup() is designed to
remove every object of every tenant (and thus will
impact other users on the same openstack)

Change-Id: I42dc9592617aeeca9660f670940ecbf50b6108ab
Closes-Bug: #1273254
unskip neutron_meter_label cli tests

Unskip is suggested in bug #1240694.

Change-Id: Icf026542ea0b2c102f4a93562272eec88ac9433e
Fix request id log messages

Previously when logging request ids tempest would incorrectly print
which service the request id came from. This was based on the faulty
assumption that x-compute-request-id was only returned by nova. It's
returned by both nova v2 and cinder. Also originally
x-openstack-request-id was only used by glance but other projects have
adopted it as well. Moving forward all the services will converge on
using that header. This commit just updates the log messages to make
what is written to the log consistent with the current state of the
header.

Change-Id: Idd0514794768840c2c9911ad189552cf455ea849