Add unit tests for debug

This commit adds unit tests for common.debug.

Partially implements bp unit-tests

Change-Id: I3ab573942293eea72294d395ae40e92c2126708d
Adds "add_dhcp_agent" to test_dhcp_agent_scheduler

This submission is to verify add-dhcp-agent-to-network functionality
and also added required support functions in both XML/JSON interfaces.

Change-Id: I6e9f8336db6d72b1123220f792091ca17b1b1647
Check create/delete keypair attribute of Nova APIs

This patch adds the JSON Schema for response of Nova V2 & V3
create & delete keypair APIs and validate the response with
added JSON Schema to block the backward incompatibility change
in the future.

The response body of V2 & V3 create_keypairs APIs is same and
given below:

{
    "keypair": {
        "fingerprint": "%(fingerprint)s",
        "name": "%(keypair_name)s",
        "public_key": "%(public_key)s",
        "user_id": "fake",
        "private_key": "%(private_key)s"
    }
}

Response status code differ for create and delete keypairs

V2 - create_keypair = 200
V2 - delete_keypair = 202
V3 - create_keypair = 201
V3 - delete_keypair = 204

Partially implements blueprint nova-api-attribute-test

Change-Id: I179f0f11a43324d81ecbb41c0eae2f7072e8979a
Validate hypervisors_servers Nova V2/V3 API

This patch adds the JSON Schema for response of Nova V2 & V3
hypervisors_servers  API and validate the response with added
JSON Schema to block the backward incompatibility change in the future.

The response body of V2 hypervisors_servers API is below:

{
    "hypervisors": [
        {
            "id": 1,
            "hypervisor_hostname": "fake-mini",
            "servers": []
        }
    ]
}

The response body of V3 hypervisors_servers API is below:

{
    "hypervisor": {
        "id": 1,
        "hypervisor_hostname": "fake-mini",
        "servers": []
    }
}

Partially implements blueprint nova-api-attribute-test

Change-Id: I0456c9f2cd9576edd8ce457ac805fab3ba03c060
Check list & search hypervisor attributes of Nova

This patch adds the JSON Schema for response of Nova V2 & V3
list & search hypervisor APIs and validate the response with added
JSON Schema to block the backward incompatibility change in the future.

The response body of V2 & V3 list & search hypervisor API is same
& given below:

{
    "hypervisors": [
        {
            "id": 1,
            "hypervisor_hostname": "fake-mini",
        }
    ]
}

Partially implements blueprint nova-api-attribute-test

Change-Id: I3929794061e0709561f905cd053249d36afb0a82
Merge "Add unit tests for debug"
Merge "Check create/delete keypair attribute of Nova APIs"
Merge "Adds "add_dhcp_agent" to test_dhcp_agent_scheduler"
Merge "Validate hypervisors_servers Nova V2/V3 API"
Merge "Check list & search hypervisor attributes of Nova"
Merge branch 'master' of https://github.com/openstack/tempest