Verify flavor extra specs attributes of Nova APIs

This patch adds the JSON schema for Nova V2/V3 flavor extra specs APIs
response and validate the response with added JSON schema to
block the backward incompatibility change in the future.

The response body of flavor extra specs APIs are below:

Response of set & get extra specs of V2 & V3-

{
    "extra_specs": {
        "key1": "%(value1)s",
        "key2": "%(value2)s"
    }
}
Response code of set extra specs API differ-
 200 - V2
 201 - V3

Response of update & get extra specs key of V2 & V3-

{
    "key1": "%(value1)s"
}

Response code of unset extra specs API differ-
 200 - V2
 204 - V3
This does not return any response body.

Partially implements blueprint nova-api-attribute-test

Change-Id: I41e566cb484d0b7fa29197c639f9f231c8c32ea9
5 files changed