Add nova migration-list CLI test

Change-Id: I22b49ee3244ff1c05a0041f0d8a5719824617b68
Move negative tests for test_images

This submission adds new test script "test_images_negative.py"
Which has negative tests separated from test_images.py

Partially implements blueprint negative-test-files

Change-Id: Id9b841b9cfca6461185674b7bf2c3777a130a900
Add unit tests for the tempest.common.utils.file_utils

This commit adds a positive and negative unit tests for the single
method from file_utils in tempest.common.utils.

Partially implements bp unit-tests

Change-Id: Ic19428a10785afd8849442f4d1f8f8e0a87f549b
Validate get fixed-ips attributes of Nova V2 API

This patch adds the JSON schema for Nova V2 get fixed-ips API
response and validate the response with added JSON schema to
block the backward incompatibility change in the future.

The response body of V2 get fixed-ip API is below:

{
    "fixed_ip": {
        "address": "192.168.1.1",
        "cidr": "192.168.1.0/24",
        "host": "host",
        "hostname": "openstack"
    }
}

Partially implements blueprint nova-api-attribute-test

Change-Id: I1b8b2c00492e85e6075c036b41f28e68357da653
Networks,Ports: delete with subnet, port with no IP

Following tests are added:
 - Delete a subnet by deleting the network it is associated with
 - Test create port with no IP address

Change-Id: Ia6ff87b122615fea685cc645cd0213cda2a769b7
Validate of Nova list Floating IPs attributes

This patch adds the JSON schema for Nova list Floating IPs API
response and validate the response of list Floating IPs API
with added JSON schema to block the backward incompatibility
change in the future.

The response body of list Floating IPs API is below:

{
    "floating_ips": [
        {
            "id": 1,
            "pool": "nova",
            "instance_id": null,
            "ip": "10.10.10.1",
            "fixed_ip": null,
        }
    ]
}

Partially implements blueprint nova-api-attribute-test

Change-Id: Ica266688af310bb804bcf7fb240ca6a005b156c0
Verify the response attributes of 'list_hosts'

This patch verifies the response attributes of list_hosts.
The response body of v2 and v3 API are in the same format:

"hosts": [
    {
        "host_name": "b6e4adbc193d428ea923899d07fb001e",
        "service": "conductor",
        "zone": "internal"
    }
]

Partially implements blueprint nova-api-attribute-test

Change-Id: Ia26d14e6fcec0e8f76224669ebde57ff8840605c
Fix cinder quota cleanup

The cinder quota update test is setting default quotas for volume types
that might have been removed while we were running tests. Only update
the default quotas for the global values.

https://review.openstack.org/#/c/81503 fixed the test comparison which
was also broken, now the race condition hits in the cleanup.

Change-Id: I496e699e3b805aa2130ed39476008a6cd2b0cb6d
Closes-Bug: 1294824
Verify "create a server" API response attributes

Now most attributes of Nova v2/v3 APIs are not checked in Tempest,
and this patch adds some tests which check these attributes to block
the backward incompatibility change in the future.

This patch adds the checks of "create a server" API responses.

The response body of v2 API is the following:
  {
    "server": {
      "id": "d099f759-021f-41ad-8ad3-7d9ddecaf07a",
      "security_groups": [{"name": "default"}],
      "links": [
        {"href": "http://[..]", "rel": "self"},
        {"href": "http://[..]", "rel": "bookmark"}
      ],
      "adminPass": "6GLunfZpNbB8",
      "OS-DCF:diskConfig": "MANUAL"
    }
  }

The one of v3 API is the following:
  {
    "server": {
      "id": "c2f2ebe8-5a25-442b-83d2-9f0926a7a88a",
      "os-security-groups:security_groups": [{"name": "default"}],
      "links": [
        {"href": "http://[..]", "rel": "self"},
        {"href": "http://[..]", "rel": "bookmark"}
      ],
      "admin_password": "7XW3fhZpe6iF",
      "os-access-ips:access_ip_v6": "",
      "os-access-ips:access_ip_v4": "",
    }
  }

Partially implements blueprint nova-api-attribute-test

Change-Id: I584c47df3de8be2dd593b39b5486c9ed38c9a7ed
Merge "Verify "create a server" API response attributes"
Merge "Validate of Nova list Floating IPs attributes"
Merge "Validate get fixed-ips attributes of Nova V2 API"
Merge "Verify the response attributes of 'list_hosts'"
Merge "Fix cinder quota cleanup"
Merge "Add nova migration-list CLI test"
API test for 'create server with scheduler hints'

It implements nova api test to create a server with scheduler
hints. To test this API 'SimpleCIDRAffinityFilter' filtering
schema is used.

Change-Id: Idfd53edf55735075af3b0601bf4e5181378f1d47
Merge "Networks,Ports: delete with subnet, port with no IP"
Merge "Move negative tests for test_images"
Merge "Add unit tests for the tempest.common.utils.file_utils"
Merge "API test for 'create server with scheduler hints'"