From abba5574ca219ea3180edfa018ef36d98015394a Mon Sep 17 00:00:00 2001 From: ivan-zhu Date: Sat, 29 Dec 2012 16:34:27 +0800 Subject: Add API sample tests to FixedIPs extension Partially implements blueprint nova-api-samples Bug 1091739 Change-Id: Ie10fd85199ec10de29e99338c748f34cc04aeeb6 --- doc/api_samples/os-fixed-ips/fixedip-post-req.json | 3 +++ doc/api_samples/os-fixed-ips/fixedip-post-req.xml | 2 ++ doc/api_samples/os-fixed-ips/fixedips-get-resp.json | 8 ++++++++ doc/api_samples/os-fixed-ips/fixedips-get-resp.xml | 7 +++++++ 4 files changed, 20 insertions(+) create mode 100644 doc/api_samples/os-fixed-ips/fixedip-post-req.json create mode 100644 doc/api_samples/os-fixed-ips/fixedip-post-req.xml create mode 100644 doc/api_samples/os-fixed-ips/fixedips-get-resp.json create mode 100644 doc/api_samples/os-fixed-ips/fixedips-get-resp.xml (limited to 'doc') diff --git a/doc/api_samples/os-fixed-ips/fixedip-post-req.json b/doc/api_samples/os-fixed-ips/fixedip-post-req.json new file mode 100644 index 000000000..cf8ba0e0b --- /dev/null +++ b/doc/api_samples/os-fixed-ips/fixedip-post-req.json @@ -0,0 +1,3 @@ +{ + "reserve": "None" +} \ No newline at end of file diff --git a/doc/api_samples/os-fixed-ips/fixedip-post-req.xml b/doc/api_samples/os-fixed-ips/fixedip-post-req.xml new file mode 100644 index 000000000..e29b685be --- /dev/null +++ b/doc/api_samples/os-fixed-ips/fixedip-post-req.xml @@ -0,0 +1,2 @@ + +None \ No newline at end of file diff --git a/doc/api_samples/os-fixed-ips/fixedips-get-resp.json b/doc/api_samples/os-fixed-ips/fixedips-get-resp.json new file mode 100644 index 000000000..d63c91559 --- /dev/null +++ b/doc/api_samples/os-fixed-ips/fixedips-get-resp.json @@ -0,0 +1,8 @@ +{ + "fixed_ip": { + "address": "192.168.1.1", + "cidr": "192.168.1.0/24", + "host": "host", + "hostname": "openstack" + } +} \ No newline at end of file diff --git a/doc/api_samples/os-fixed-ips/fixedips-get-resp.xml b/doc/api_samples/os-fixed-ips/fixedips-get-resp.xml new file mode 100644 index 000000000..a9676721f --- /dev/null +++ b/doc/api_samples/os-fixed-ips/fixedips-get-resp.xml @@ -0,0 +1,7 @@ + + + 192.168.1.0/24 + openstack + host +
192.168.1.1
+
\ No newline at end of file -- cgit