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
4 files changed