Merge "api-ref: add 'migrations' param to GET /os-migrations"

This commit is contained in:
Zuul 2018-09-26 20:51:45 +00:00 committed by Gerrit Code Review
commit fda8068dbd
4 changed files with 7 additions and 6 deletions

View File

@ -42,6 +42,7 @@ Response
.. rest_parameters:: parameters.yaml
- migrations: migrations
- created_at: created
- dest_compute: migrate_dest_compute
- dest_host: migrate_dest_host

View File

@ -11,7 +11,7 @@
"old_instance_type_id": 1,
"source_compute": "compute1",
"source_node": "node1",
"status": "Done",
"status": "done",
"updated_at": "2012-10-29T13:42:02.000000"
},
{
@ -25,7 +25,7 @@
"old_instance_type_id": 5,
"source_compute": "compute10",
"source_node": "node10",
"status": "Done",
"status": "done",
"updated_at": "2013-10-22T13:42:02.000000"
}
]

View File

@ -11,7 +11,7 @@
"old_instance_type_id": 1,
"source_compute": "compute1",
"source_node": "node1",
"status": "Done",
"status": "done",
"updated_at": "2012-10-29T13:42:02.000000"
},
{
@ -25,7 +25,7 @@
"old_instance_type_id": 5,
"source_compute": "compute10",
"source_node": "node10",
"status": "Done",
"status": "done",
"updated_at": "2013-10-22T13:42:02.000000"
}
]

View File

@ -37,7 +37,7 @@ def _stub_migrations(stub_self, context, filters):
'source_compute': 'compute1',
'dest_compute': 'compute2',
'dest_host': '1.2.3.4',
'status': 'Done',
'status': 'done',
'instance_uuid': 'instance_id_123',
'old_instance_type_id': 1,
'new_instance_type_id': 2,
@ -56,7 +56,7 @@ def _stub_migrations(stub_self, context, filters):
'source_compute': 'compute10',
'dest_compute': 'compute20',
'dest_host': '5.6.7.8',
'status': 'Done',
'status': 'done',
'instance_uuid': 'instance_id_456',
'old_instance_type_id': 5,
'new_instance_type_id': 6,