Add API sample tests to Services extension
Partially implements blueprint nova-api-samples Bug 1091755 Change-Id: I7a0e124871c248bbb7613bfcdf335fee29a887f2
This commit is contained in:
4
doc/api_samples/os-services/service-disable-put-req.json
Normal file
4
doc/api_samples/os-services/service-disable-put-req.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"host": "host1",
|
||||
"service": "nova-compute"
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"disabled": true,
|
||||
"host": "host1",
|
||||
"service": "nova-compute"
|
||||
}
|
||||
4
doc/api_samples/os-services/service-enable-put-req.json
Normal file
4
doc/api_samples/os-services/service-enable-put-req.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"host": "host1",
|
||||
"service": "nova-compute"
|
||||
}
|
||||
5
doc/api_samples/os-services/service-enable-put-resp.json
Normal file
5
doc/api_samples/os-services/service-enable-put-resp.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"disabled": false,
|
||||
"host": "host1",
|
||||
"service": "nova-compute"
|
||||
}
|
||||
36
doc/api_samples/os-services/services-list-get-resp.json
Normal file
36
doc/api_samples/os-services/services-list-get-resp.json
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"services": [
|
||||
{
|
||||
"binary": "nova-scheduler",
|
||||
"host": "host1",
|
||||
"state": "up",
|
||||
"status": "disabled",
|
||||
"updated_at": "2012-10-29T13:42:02.000000",
|
||||
"zone": "internal"
|
||||
},
|
||||
{
|
||||
"binary": "nova-compute",
|
||||
"host": "host1",
|
||||
"state": "up",
|
||||
"status": "disabled",
|
||||
"updated_at": "2012-10-29T13:42:05.000000",
|
||||
"zone": "nova"
|
||||
},
|
||||
{
|
||||
"binary": "nova-scheduler",
|
||||
"host": "host2",
|
||||
"state": "down",
|
||||
"status": "enabled",
|
||||
"updated_at": "2012-09-19T06:55:34.000000",
|
||||
"zone": "internal"
|
||||
},
|
||||
{
|
||||
"binary": "nova-compute",
|
||||
"host": "host2",
|
||||
"state": "down",
|
||||
"status": "disabled",
|
||||
"updated_at": "2012-09-18T08:03:38.000000",
|
||||
"zone": "nova"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user