diff options
author | ivan-zhu <bozhu@linux.vnet.ibm.com> | 2013-01-09 22:52:46 +0800 |
---|---|---|
committer | ivan-zhu <bozhu@linux.vnet.ibm.com> | 2013-02-13 17:49:16 +0800 |
commit | 43485291881d0af431ac0ff1ff7bbc0d5c528441 (patch) | |
tree | 6afa41d0295a90dd8699c3643d965fd7e6672886 /doc | |
parent | d980805880c681881504e269e03130e4452630ab (diff) | |
download | nova-43485291881d0af431ac0ff1ff7bbc0d5c528441.tar.gz nova-43485291881d0af431ac0ff1ff7bbc0d5c528441.tar.xz nova-43485291881d0af431ac0ff1ff7bbc0d5c528441.zip |
Add API sample tests to Services extension
Partially implements blueprint nova-api-samples
Bug 1091755
Change-Id: I7a0e124871c248bbb7613bfcdf335fee29a887f2
Diffstat (limited to 'doc')
5 files changed, 54 insertions, 0 deletions
diff --git a/doc/api_samples/os-services/service-disable-put-req.json b/doc/api_samples/os-services/service-disable-put-req.json new file mode 100644 index 000000000..d11afaed9 --- /dev/null +++ b/doc/api_samples/os-services/service-disable-put-req.json @@ -0,0 +1,4 @@ +{ + "host": "host1", + "service": "nova-compute" +}
\ No newline at end of file diff --git a/doc/api_samples/os-services/service-disable-put-resp.json b/doc/api_samples/os-services/service-disable-put-resp.json new file mode 100644 index 000000000..2e461bc6d --- /dev/null +++ b/doc/api_samples/os-services/service-disable-put-resp.json @@ -0,0 +1,5 @@ +{ + "disabled": true, + "host": "host1", + "service": "nova-compute" +}
\ No newline at end of file diff --git a/doc/api_samples/os-services/service-enable-put-req.json b/doc/api_samples/os-services/service-enable-put-req.json new file mode 100644 index 000000000..d11afaed9 --- /dev/null +++ b/doc/api_samples/os-services/service-enable-put-req.json @@ -0,0 +1,4 @@ +{ + "host": "host1", + "service": "nova-compute" +}
\ No newline at end of file diff --git a/doc/api_samples/os-services/service-enable-put-resp.json b/doc/api_samples/os-services/service-enable-put-resp.json new file mode 100644 index 000000000..88b9dc7f9 --- /dev/null +++ b/doc/api_samples/os-services/service-enable-put-resp.json @@ -0,0 +1,5 @@ +{ + "disabled": false, + "host": "host1", + "service": "nova-compute" +}
\ No newline at end of file diff --git a/doc/api_samples/os-services/services-list-get-resp.json b/doc/api_samples/os-services/services-list-get-resp.json new file mode 100644 index 000000000..dcda1a46e --- /dev/null +++ b/doc/api_samples/os-services/services-list-get-resp.json @@ -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" + } + ] +}
\ No newline at end of file |