Cleanup common.debug

The debug module has a list of iptables tables but not used it. This
commit fixes it.

Change-Id: Iefb1d6a17ddc01823d5c0a524ffda8723df4d9da
Verify the response attributes of 'get_aggregate'

This patch verifies the response attributes of 'get_aggregate'.
The response body of v2 and v3 API has the same format:

{
    "aggregate": {
        "availability_zone": "nova",
        "created_at": "2013-08-18T12:17:56.380226",
        "deleted": false,
        "deleted_at": null,
        "hosts": [],
        "id": 1,
        "metadata": {
            "availability_zone": "nova"
        },
        "name": "name",
        "updated_at": null
    }
}

Partially implements blueprint nova-api-attribute-test

Change-Id: Ic23926ee6c4e1585a9a464df2d485f51bbf87972
Add os-migration tests for Nova v2 API

v2 os-migration API returns a body which includes the info like:

  {
    "migrations": [
      {
        "id": 1,
        "status": "finished",
        "instance_uuid": "e9e4fdd7-f956-44ff-bfeb-d654a96ab3a2",
        "source_node": "localhost-dev",
        "source_compute": "localhost-dev",
        "dest_node": "localhost-dev",
        "dest_compute": "localhost-dev",
        "dest_host": "192.168.11.100",
        "old_instance_type_id": 6,
        "new_instance_type_id": 2,
        "created_at": "2014-03-18T00:14:49.000000",
        "updated_at": "2014-03-18T00:15:15.000000"
      }
    ]
  }

This patch adds this API tests.

This patch adds tests for JSON format only without XML format because
the XML support has been marked as deprecated in Nova with the commit
I4acc15ce5f487738bb34a95c2261a5d05d827d8d and it will be removed in
Juno cycle.

Change-Id: I0e19b776313eff98d157e1249333174908061798
Verify the create/delete volume APIs attributes

This patch adds the JSON schema for volume create & delete APIs
and validate the response of Nova Volume list APIs with added JSON
schema to block the backward incompatibility change in the future.

The response body of Nova API volume create is the below:

{
    "volume": {
        "id": "%(uuid)s",
        "status": "in-use",
        "displayName": "%(volume_name)s", null
        "availabilityZone": "zone1:host1",
        "createdAt":  "%(timestamp)s",
        "displayDescription": "%(volume_desc)s",
        "volumeType": "Backup",
        "snapshotId": null,
        "metadata": {},
        "size": 100,
        "attachments": [
            { "device": "/",
              "serverId": "%(uuid)s",
              "id": "%(uuid)s",
              "volumeId": "%(uuid)s"
            }
        ]
    }
}

delete volume API does not return any response body.

Partially implements blueprint nova-api-attribute-test

Change-Id: I84069dae64a70bc2a4f2313bb3da4e86630e4b1b
Honor suspend/pause config switches in scenario tests

Some tests missed checking for compute features as
set in compute-feature-enabled section in tempest.conf.

Reduce double-coverage of pause/suspend tests between
basic and advanced server tests by removing pause and
suspend actions in basic ops test.

Closes-bug: 1296858

Change-Id: I80d785bb5b325ccfac3c5cfd9d076718cf587e80
Merge "Cleanup common.debug"
Merge "Add os-migration tests for Nova v2 API"
Verify delete quota response of V2/V3 APIs

This patch adds the JSON schema for response status of Nova quota delete APIs
to block the backward incompatibility change in the future.

delete quota does not return the response body.
Response status of above APIs is below:
V2: 202
V3: 204

Partially implements blueprint nova-api-attribute-test

Change-Id: I3113e3a07937bd7cb44a19e5ef4a5fb880ce3721
Merge "Verify delete quota response of V2/V3 APIs"
Merge "Verify the response attributes of 'get_aggregate'"
Merge "Verify the create/delete volume APIs attributes"
Merge "Honor suspend/pause config switches in scenario tests"
Merge branch 'master' of https://github.com/openstack/tempest