diff options
author | Andrea Rosa <andrea.rosa@hp.com> | 2013-02-20 11:52:10 +0000 |
---|---|---|
committer | Andrea Rosa <andrea.rosa@hp.com> | 2013-03-28 10:38:36 +0000 |
commit | 48b41e0b880adf80e3be6d128cd392af57b8477e (patch) | |
tree | a2603e045204d1f26dc57c16359f060888746405 /doc | |
parent | 7bf541cc907bd0e4c881a1bdbd6a14fd7146a5f9 (diff) | |
download | nova-48b41e0b880adf80e3be6d128cd392af57b8477e.tar.gz nova-48b41e0b880adf80e3be6d128cd392af57b8477e.tar.xz nova-48b41e0b880adf80e3be6d128cd392af57b8477e.zip |
Fix typo in the XML serialization os-services API.
Partially implements blueprint nova-api-samples
fixes bug 1130609
The XML serializer for the update method in the os-services API extensions was
not serializing the "updated_at" field because of a typo in the code.
In this change we added api_samples for the XML output.
Change-Id: I9fff0677e9bad650b19e559b3ed6e9bc0ffe8c3c
Diffstat (limited to 'doc')
6 files changed, 15 insertions, 1 deletions
diff --git a/doc/api_samples/os-services/service-disable-put-req.xml b/doc/api_samples/os-services/service-disable-put-req.xml new file mode 100644 index 000000000..598ffc0ca --- /dev/null +++ b/doc/api_samples/os-services/service-disable-put-req.xml @@ -0,0 +1,2 @@ +<?xml version='1.0' encoding='UTF-8'?> +<service host="host1" binary="nova-compute" /> diff --git a/doc/api_samples/os-services/service-disable-put-resp.xml b/doc/api_samples/os-services/service-disable-put-resp.xml new file mode 100644 index 000000000..f7569159d --- /dev/null +++ b/doc/api_samples/os-services/service-disable-put-resp.xml @@ -0,0 +1,2 @@ +<?xml version='1.0' encoding='UTF-8'?> +<service host="host1" binary="nova-compute" status="disabled" /> diff --git a/doc/api_samples/os-services/service-enable-put-req.json b/doc/api_samples/os-services/service-enable-put-req.json index d11afaed9..ffe896999 100644 --- a/doc/api_samples/os-services/service-enable-put-req.json +++ b/doc/api_samples/os-services/service-enable-put-req.json @@ -1,4 +1,4 @@ { "host": "host1", "service": "nova-compute" -}
\ No newline at end of file +} diff --git a/doc/api_samples/os-services/service-enable-put-req.xml b/doc/api_samples/os-services/service-enable-put-req.xml new file mode 100644 index 000000000..598ffc0ca --- /dev/null +++ b/doc/api_samples/os-services/service-enable-put-req.xml @@ -0,0 +1,2 @@ +<?xml version='1.0' encoding='UTF-8'?> +<service host="host1" binary="nova-compute" /> diff --git a/doc/api_samples/os-services/service-enable-put-resp.xml b/doc/api_samples/os-services/service-enable-put-resp.xml new file mode 100644 index 000000000..04c29ffa0 --- /dev/null +++ b/doc/api_samples/os-services/service-enable-put-resp.xml @@ -0,0 +1,2 @@ +<?xml version='1.0' encoding='UTF-8'?> +<service host="host1" binary="nova-compute" status="enabled" /> diff --git a/doc/api_samples/os-services/services-list-get-resp.xml b/doc/api_samples/os-services/services-list-get-resp.xml new file mode 100644 index 000000000..68809e9aa --- /dev/null +++ b/doc/api_samples/os-services/services-list-get-resp.xml @@ -0,0 +1,6 @@ +<services> + <service status="disabled" binary="nova-scheduler" zone="internal" state="up" host="host1" updated_at="2012-10-29T13:42:02.000000"/> + <service status="disabled" binary="nova-compute" zone="nova" state="up" host="host1" updated_at="2012-10-29T13:42:05.000000" /> + <service status="enabled" binary="nova-scheduler" zone="internal" state="down" host="host2" updated_at="2012-09-19T06:55:34.000000"/> + <service status="disabled" binary="nova-compute" zone="nova" state="down" host="host2" updated_at="2012-09-18T08:03:38.000000"/> +</services> |