Add test to rescope token using v3

This adds a test that shows that an unscoped token can be used to
get a scoped token using the identity v3 API.

Change-Id: Ic0807dc8c91b0125bc9c447314cc095b511853ae
Enhance rescope token test using v3

There was a problem in Keystone recently where revoking a token
derived from another token caused the original token to be
revoked, so adding a test here to validate it continues to work
as expected.

Change-Id: Ifd210e49c3e15721264eb47eed453889d4e35942
Add unit tests for NegativeRestClient class

This commit adds unit tests for NegativeRestClient.

Partially implements bp unit-tests

Change-Id: I47db1b23b85b7636516292d4a6b78fba0afcfe99
Skip volume snapshot tests if feature is not enabled

Not all cinder volume backends support volume snapshot. For instance,
the default NFS backend doesn't. This patch adds a new entry to
CONF.volume_feature_enabled to add the possibility to skip volume
snapshot tests.

Change-Id: I40ce17924bbe4eb6f1c941df974bfa832ec2a999
Stop leaking in images tests

Resources created would not be cleanup if exception raised
in setUpClass. This patch use decorator 'safe_setup' to
cleanup those resources in images tests.

Partially Implements: blueprint stop-leaking

Change-Id: Ifbb534c008af0f6aca2a75d5c98d6e451a71eacd
Updated from global requirements

Change-Id: Ide93c9d889f308b221e51a7baf0958e3cb7246ed
Introduce .coveragerc

We don't need the result of tempest/tests/* and tempest/openstack/*
coverage. This commit omits it with introducing .coveragerc.

Partially implements bp unit-tests

Change-Id: I0465d916e195e3d340dece24ac7b01a0fc13e5c1
Verify hypervisor uptime attributes of Nova API

This patch adds the JSON Schema for response of Nova V2 & V3
hypervisor uptime APIs ('os-hypervisors/<hyper_id>/uptime')
and validate the response with added JSON Schema to block
the backward incompatibility change in the future.

The response body of V2 & V3 hypervisor uptime APIs is same
& given below:

{
    "hypervisor": {
        "id": %(hypervisor_id)s,
        "hypervisor_hostname": "fake-mini",
        "uptime": " 08:32:11 up 93 days, 18:25, 12 users,
                  load average: 0.20, 0.12, 0.14"
    }
}

Partially implements blueprint nova-api-attribute-test

Change-Id: I163c50e0ad277ef8ed639363d5e53f66e9f9d4e4
Enable private flavors tests

Enable private flavor tests that were skipped until this change
was merged in nova: https://review.openstack.org/#/c/81356/

Change-Id: Ie2236579de6de1ae2759cb293f23b4096c7cdce2
Closes-Bug: #1298742
Verify the response status of create delete Image

This patch adds the JSON Schema for response status of Nova V2 Image
create, delete delete meta APIs and validate the response status with
added JSON Schema to block the backward incompatibility change in the
future.

create image, delete image & delete image meta does not return the
response body. Response status of above APIs is below-
create image - 202
delete image - 204
delete image meta - 204

Partially implements blueprint nova-api-attribute-test

Change-Id: Ia4864b3b7145a69dc257aba7f7612745b1b8254f
Validate image metadata attributes of Nova APIs

This patch adds the JSON Schema for Nova V2 Image metadata APIs
(list, set, update) and validate the response with added JSON
Schema to block the backward incompatibility change in the future.

Response body of above APIs is below-

{
    "metadata":
    {

    }
}

Partially implements blueprint nova-api-attribute-test

Change-Id: I923dc1f8e5df96339b14221a68086039c36e22dc
Check attributes of image meta item Nova APIs

This patch adds the JSON Schema for Nova V2 Image meta item APIs
(set & get meta item) and validate the response with added JSON
Schema to block the backward incompatibility change in the future.

Response body of above APIs is below-

{
    "meta":
    {

    }
}

Partially implements blueprint nova-api-attribute-test

Change-Id: Ic00fc3b4750057b641ef01738e34f7242e27bb1d
Merge "Add test to rescope token using v3"
Merge "Add unit tests for NegativeRestClient class"
Merge "Verify the response status of create delete Image"
Merge "Verify hypervisor uptime attributes of Nova API"
Merge "Stop leaking in images tests"
Merge "Validate image metadata attributes of Nova APIs"
Merge "Check attributes of image meta item Nova APIs"
Verify list extensions attributes of V2/V3 APIs

This patch adds the JSON schema for Nova V2/V3 list extensions APIs
includes the attributes to block the backward incompatibility change
in the future.

The response body of v2 is the below:
{
    "extensions": [
        {
            "updated": "2011-06-09T00:00:00+00:00",
            "name": "Multinic",
            "links": [],
            "namespace": "http://xxx.xxx.xxx/xxx/xxx",
            "alias": "NMN",
            "description": "Multiple network support."
        }
    ]
}

The response body of v3 is the below:
{
    "extensions": [
        {
            "name": "Multinic",
            "alias": "NMN",
            "description": "Multiple network support.",
            "version": 1
        }
    ]
}

Partially implements blueprint nova-api-attribute-test

Change-Id: I0597a7b0d0732b00b77e4a6f0806391054470a6b