From 851ea98e4ee7cd2ca74d2e98e72fb720092d050c Mon Sep 17 00:00:00 2001 From: Tiago Mello Date: Mon, 17 Dec 2012 11:24:10 -0200 Subject: Adds API Sample tests for FloatingIPDNS extension. Partially implements blueprint nova-api-samples Fixes bug 1070164 Change-Id: I4c3e5d406ce43c27bb49a651facaa831de646a66 --- .../floating-ip-dns-create-or-update-entry-req.json | 7 +++++++ .../floating-ip-dns-create-or-update-entry-req.xml | 5 +++++ .../floating-ip-dns-create-or-update-entry-resp.json | 9 +++++++++ .../floating-ip-dns-create-or-update-entry-resp.xml | 2 ++ .../floating-ip-dns-create-or-update-req.json | 8 ++++++++ .../floating-ip-dns-create-or-update-req.xml | 6 ++++++ .../floating-ip-dns-create-or-update-resp.json | 8 ++++++++ .../floating-ip-dns-create-or-update-resp.xml | 2 ++ .../os-floating-ip-dns/floating-ip-dns-entry-get-resp.json | 9 +++++++++ .../os-floating-ip-dns/floating-ip-dns-entry-get-resp.xml | 2 ++ .../os-floating-ip-dns/floating-ip-dns-entry-list-resp.json | 11 +++++++++++ .../os-floating-ip-dns/floating-ip-dns-entry-list-resp.xml | 4 ++++ .../os-floating-ip-dns/floating-ip-dns-list-resp.json | 10 ++++++++++ .../os-floating-ip-dns/floating-ip-dns-list-resp.xml | 4 ++++ 14 files changed, 87 insertions(+) create mode 100644 doc/api_samples/os-floating-ip-dns/floating-ip-dns-create-or-update-entry-req.json create mode 100644 doc/api_samples/os-floating-ip-dns/floating-ip-dns-create-or-update-entry-req.xml create mode 100644 doc/api_samples/os-floating-ip-dns/floating-ip-dns-create-or-update-entry-resp.json create mode 100644 doc/api_samples/os-floating-ip-dns/floating-ip-dns-create-or-update-entry-resp.xml create mode 100644 doc/api_samples/os-floating-ip-dns/floating-ip-dns-create-or-update-req.json create mode 100644 doc/api_samples/os-floating-ip-dns/floating-ip-dns-create-or-update-req.xml create mode 100644 doc/api_samples/os-floating-ip-dns/floating-ip-dns-create-or-update-resp.json create mode 100644 doc/api_samples/os-floating-ip-dns/floating-ip-dns-create-or-update-resp.xml create mode 100644 doc/api_samples/os-floating-ip-dns/floating-ip-dns-entry-get-resp.json create mode 100644 doc/api_samples/os-floating-ip-dns/floating-ip-dns-entry-get-resp.xml create mode 100644 doc/api_samples/os-floating-ip-dns/floating-ip-dns-entry-list-resp.json create mode 100644 doc/api_samples/os-floating-ip-dns/floating-ip-dns-entry-list-resp.xml create mode 100644 doc/api_samples/os-floating-ip-dns/floating-ip-dns-list-resp.json create mode 100644 doc/api_samples/os-floating-ip-dns/floating-ip-dns-list-resp.xml (limited to 'doc') diff --git a/doc/api_samples/os-floating-ip-dns/floating-ip-dns-create-or-update-entry-req.json b/doc/api_samples/os-floating-ip-dns/floating-ip-dns-create-or-update-entry-req.json new file mode 100644 index 000000000..934ed21b2 --- /dev/null +++ b/doc/api_samples/os-floating-ip-dns/floating-ip-dns-create-or-update-entry-req.json @@ -0,0 +1,7 @@ +{ + 'dns_entry' : + { + 'ip': '192.168.53.11', + 'dns_type': 'A' + } +} \ No newline at end of file diff --git a/doc/api_samples/os-floating-ip-dns/floating-ip-dns-create-or-update-entry-req.xml b/doc/api_samples/os-floating-ip-dns/floating-ip-dns-create-or-update-entry-req.xml new file mode 100644 index 000000000..36fa41120 --- /dev/null +++ b/doc/api_samples/os-floating-ip-dns/floating-ip-dns-create-or-update-entry-req.xml @@ -0,0 +1,5 @@ + + + 192.168.53.11 + A + \ No newline at end of file diff --git a/doc/api_samples/os-floating-ip-dns/floating-ip-dns-create-or-update-entry-resp.json b/doc/api_samples/os-floating-ip-dns/floating-ip-dns-create-or-update-entry-resp.json new file mode 100644 index 000000000..70c903886 --- /dev/null +++ b/doc/api_samples/os-floating-ip-dns/floating-ip-dns-create-or-update-entry-resp.json @@ -0,0 +1,9 @@ +{ + "dns_entry": { + "domain": "domain1.example.org", + "id": null, + "ip": "192.168.1.1", + "name": "instance1", + "type": "A" + } +} \ No newline at end of file diff --git a/doc/api_samples/os-floating-ip-dns/floating-ip-dns-create-or-update-entry-resp.xml b/doc/api_samples/os-floating-ip-dns/floating-ip-dns-create-or-update-entry-resp.xml new file mode 100644 index 000000000..25afe599a --- /dev/null +++ b/doc/api_samples/os-floating-ip-dns/floating-ip-dns-create-or-update-entry-resp.xml @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/doc/api_samples/os-floating-ip-dns/floating-ip-dns-create-or-update-req.json b/doc/api_samples/os-floating-ip-dns/floating-ip-dns-create-or-update-req.json new file mode 100644 index 000000000..05aac422d --- /dev/null +++ b/doc/api_samples/os-floating-ip-dns/floating-ip-dns-create-or-update-req.json @@ -0,0 +1,8 @@ +{ + 'domain_entry' : + { + 'domain': 'domain1.example.org', + 'scope': 'public', + 'project': 'project1' + } +} \ No newline at end of file diff --git a/doc/api_samples/os-floating-ip-dns/floating-ip-dns-create-or-update-req.xml b/doc/api_samples/os-floating-ip-dns/floating-ip-dns-create-or-update-req.xml new file mode 100644 index 000000000..df12b61cf --- /dev/null +++ b/doc/api_samples/os-floating-ip-dns/floating-ip-dns-create-or-update-req.xml @@ -0,0 +1,6 @@ + + + domain1.example.org + public + project1 + \ No newline at end of file diff --git a/doc/api_samples/os-floating-ip-dns/floating-ip-dns-create-or-update-resp.json b/doc/api_samples/os-floating-ip-dns/floating-ip-dns-create-or-update-resp.json new file mode 100644 index 000000000..db43e92d3 --- /dev/null +++ b/doc/api_samples/os-floating-ip-dns/floating-ip-dns-create-or-update-resp.json @@ -0,0 +1,8 @@ +{ + "domain_entry": { + "availability_zone": null, + "domain": "domain1.example.org", + "project": "project1", + "scope": "public" + } +} \ No newline at end of file diff --git a/doc/api_samples/os-floating-ip-dns/floating-ip-dns-create-or-update-resp.xml b/doc/api_samples/os-floating-ip-dns/floating-ip-dns-create-or-update-resp.xml new file mode 100644 index 000000000..8bdf42c41 --- /dev/null +++ b/doc/api_samples/os-floating-ip-dns/floating-ip-dns-create-or-update-resp.xml @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/doc/api_samples/os-floating-ip-dns/floating-ip-dns-entry-get-resp.json b/doc/api_samples/os-floating-ip-dns/floating-ip-dns-entry-get-resp.json new file mode 100644 index 000000000..84ee3930a --- /dev/null +++ b/doc/api_samples/os-floating-ip-dns/floating-ip-dns-entry-get-resp.json @@ -0,0 +1,9 @@ +{ + "dns_entry": { + "domain": "domain1.example.org", + "id": null, + "ip": "192.168.1.1", + "name": "instance1", + "type": null + } +} \ No newline at end of file diff --git a/doc/api_samples/os-floating-ip-dns/floating-ip-dns-entry-get-resp.xml b/doc/api_samples/os-floating-ip-dns/floating-ip-dns-entry-get-resp.xml new file mode 100644 index 000000000..441b977e6 --- /dev/null +++ b/doc/api_samples/os-floating-ip-dns/floating-ip-dns-entry-get-resp.xml @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/doc/api_samples/os-floating-ip-dns/floating-ip-dns-entry-list-resp.json b/doc/api_samples/os-floating-ip-dns/floating-ip-dns-entry-list-resp.json new file mode 100644 index 000000000..3263de43a --- /dev/null +++ b/doc/api_samples/os-floating-ip-dns/floating-ip-dns-entry-list-resp.json @@ -0,0 +1,11 @@ +{ + "dns_entries": [ + { + "domain": "domain1.example.org", + "id": null, + "ip": "192.168.1.1", + "name": "instance1", + "type": null + } + ] +} \ No newline at end of file diff --git a/doc/api_samples/os-floating-ip-dns/floating-ip-dns-entry-list-resp.xml b/doc/api_samples/os-floating-ip-dns/floating-ip-dns-entry-list-resp.xml new file mode 100644 index 000000000..8d910e09b --- /dev/null +++ b/doc/api_samples/os-floating-ip-dns/floating-ip-dns-entry-list-resp.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/doc/api_samples/os-floating-ip-dns/floating-ip-dns-list-resp.json b/doc/api_samples/os-floating-ip-dns/floating-ip-dns-list-resp.json new file mode 100644 index 000000000..8882c23a3 --- /dev/null +++ b/doc/api_samples/os-floating-ip-dns/floating-ip-dns-list-resp.json @@ -0,0 +1,10 @@ +{ + "domain_entries": [ + { + "availability_zone": null, + "domain": "domain1.example.org", + "project": "project1", + "scope": "public" + } + ] +} \ No newline at end of file diff --git a/doc/api_samples/os-floating-ip-dns/floating-ip-dns-list-resp.xml b/doc/api_samples/os-floating-ip-dns/floating-ip-dns-list-resp.xml new file mode 100644 index 000000000..d874ef058 --- /dev/null +++ b/doc/api_samples/os-floating-ip-dns/floating-ip-dns-list-resp.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file -- cgit