This patch changes v3 agents API to v2.1 and makes v2 unit tests
share between v2 and v2.1.
The differences between v2 and v3 are described on the wiki page
https://wiki.openstack.org/wiki/NovaAPIv2tov3 .
Partially implements blueprint v2-on-v3-api
Change-Id: I96dd9cd3672c6d584bd0019c385544c08f687e7f
More work needs to be done in rfc3986 to give the user more control over what
they consider to be a valid URI in the context of RFC 3986. For example, a
previous incarnation of these tests checked that "1" and "abc" were invalid
when according to the RFC they are.
Update the API samples and tests to use valid URIs
DocImpact
Change-Id: I288fbaead64990db1053b7a11e82904611b8498f
Currently the agent update return agent_id with integer, that is
inconsistent with the response of agent create and index. It because
agent update use the agent_id that passed from url as the response.
This problem is fixed by converting the agent id as integer.
And the API sample tests provide agent_id with string type in the fake
data. This patch fix this problem for API sample files and tests.
And for back-compatibility, we should add translator for v2.1 API later.
Then this fix will be exposed after v3 API feature exposed by microversion
in the future.
DocImpact: The agent_is is changed to integer type for agents'update action.
Change-Id: Ia9c1034a325b77a2057934cc80b6eab679ff1d2b
Partial-Bug: #1333494
This is a step toward removing XML support from the v3 compute API.
First, we need to remove all of the tests that would fail once we start
ripping out the real code.
Part of blueprint remove-v3-xml-api
Change-Id: Ie2c280d5ea1e6b8756535deb05982a92561552db
The parameter of agent update API has been changed from "para" to
"agent" since Nova v3 API, and this patch fixes the sample doc.
Partially implements blueprint v3-api-specification
Change-Id: Ic9c0f11a637e48daa9457ab9ae923fefc0fb350d
Adds v3 API samples for the agents, aggregates, and certificates
extensions. Bundling them together to save on review load
Partially implements blueprint v3-api-unittests
Partially implements blueprint v3-api-specification
Change-Id: Iee26fe25b5fd369f2a1f5690ddc095a90526a549