Configure the ec2 zone explicitly

Tempest now creates Availability zones which in parallel run,
may causes issues with EC2 tests.

The EC2 tests will use the preconfigured zone, instead of just picking a
random existing zone.

Closes-Bug: 1265672
Change-Id: I12dfaca868a3f0aec2a85fe45d8a524940d9eae0
Add unit tests for image waiter

This commit adds unit tests for the image waiter in
tempest.common.waiters. It adds tests for both the timeout case and
the success path.

Partially implements bp unit-tests

Co-Authored-With: Sean Dague <sean.dague@samsung.com>

Change-Id: Ib0501cd3bc323fd036444dacf884879963842e50
Make tempest accounts independent from devstack

Changes the default for tempest accounts to None, so they
are in no way specific to devstack as they are now.

Fixes bug 1287191

Change-Id: Iac805dc4816a3029ad2f68448d9e735b213b5154
fix flake8 errors

This patch fix the flake8 errors raised by "run_tests.sh -p"

Change-Id: I1e2510ef4438932011ea28e72f36536252764ce5
Closes-Bug: #1290226
Add unit test for data_utils

This commit adds data_utils except build_url function because of no user
for that function.

Note: Removing build_url function is another topic. So the patch is
separated: I8989ac12f36f342ca1066cc65f7a427a83de721f .

Partially implements bp unit-tests

Change-Id: I1e3b3c4916144fe82c5708a6c30fe94a3d1c5e58
Make test_volume_quotas force tenant isolation

The test requires tenant isolation but wasn't forcing it with the
force_tenant_isolation attribute.

Closes-Bug: #1291409

Change-Id: I0fcfb2832489249c723ced0d9001fb0b5a3d331f
Make imports proper order

We have a rule for imports order. That is:
 stdlib
 third-party lib
 project
 http://docs.openstack.org/developer/hacking/#imports
But some files are not correct. This patch fixes it.

Change-Id: I0031677e30dd70a07125d7a11bc93963db2b8ce3
Validate Volume attributes of Nova POST & GET API

This patch adds the JSON schema and validate the response
of Nova POST & GET Volume APIs with JSON schema to block
the backward incompatibility change in the future.

The response body of Nova POST & GET Volume is the following:

{
    "volume": {
        "attachments": [
            {
                "device": "/",
                "id": "a26887c6-c47b-4654-abb5-dfadf7d3f803",
                "serverId": "3912f2b4-c5ba-4aec-9165-872876fe202e",
                "volumeId": "a26887c6-c47b-4654-abb5-dfadf7d3f803"
            }
        ],
        "availabilityZone": "zone1:host1",
        "createdAt": "2013-02-18T14:51:18.528085",
        "displayDescription": "Volume Description",
        "displayName": "Volume Name",
        "id": "a26887c6-c47b-4654-abb5-dfadf7d3f803",
        "metadata": {},
        "size": 100,
        "snapshotId": null,
        "status": "in-use",
        "volumeType": "Backup"
    }
}

Partially implements blueprint nova-api-attribute-test

Change-Id: I7b98b375b87577d9bb9cf80b2fedd3b65ad0cd72
Fix issue with pep8 gate job

Since test-scenario is working on import level the configuration is
may not in place. This causes an error in the pep8 job.

Change-Id: I761c82338eb513a4870b2e3cdf6ab7e98790b6f4
Implements: bug 1291826
Merge "Fix issue with pep8 gate job"
Merge "Validate Volume attributes of Nova POST & GET API"
Merge "Make test_volume_quotas force tenant isolation"
Merge "Make tempest accounts independent from devstack"
Merge "Configure the ec2 zone explicitly"
Merge "fix flake8 errors"
Merge "Add unit tests for image waiter"
Merge "Add unit test for data_utils"
Merge "Make imports proper order"
Merge branch 'master' of https://github.com/openstack/tempest