diff options
author | Tiago Mello <tmello@linux.vnet.ibm.com> | 2012-12-17 11:24:10 -0200 |
---|---|---|
committer | Tiago Mello <tmello@linux.vnet.ibm.com> | 2013-02-11 10:53:36 -0200 |
commit | 851ea98e4ee7cd2ca74d2e98e72fb720092d050c (patch) | |
tree | ac5c3a6a54d86474bd35f31f93dc9f4690be1db5 /doc | |
parent | f262c435f4785ee18d7c3609767e5344915001b9 (diff) | |
download | nova-851ea98e4ee7cd2ca74d2e98e72fb720092d050c.tar.gz nova-851ea98e4ee7cd2ca74d2e98e72fb720092d050c.tar.xz nova-851ea98e4ee7cd2ca74d2e98e72fb720092d050c.zip |
Adds API Sample tests for FloatingIPDNS extension.
Partially implements blueprint nova-api-samples
Fixes bug 1070164
Change-Id: I4c3e5d406ce43c27bb49a651facaa831de646a66
Diffstat (limited to 'doc')
14 files changed, 87 insertions, 0 deletions
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 @@ +<?xml version='1.0' encoding='UTF-8'?> +<dns_entry> + <ip>192.168.53.11</ip> + <dns_type>A</dns_type> +</dns_entry>
\ 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 @@ +<?xml version='1.0' encoding='UTF-8'?> +<dns_entry ip="192.168.1.1" domain="domain1.example.org" type="A" id="None" name="instance1"/>
\ 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 @@ +<?xml version='1.0' encoding='UTF-8'?> +<domain_entry> + <domain>domain1.example.org</domain> + <scope>public</scope> + <project>project1</project> +</domain_entry>
\ 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 @@ +<?xml version='1.0' encoding='UTF-8'?> +<domain_entry project="project1" scope="public" domain="domain1.example.org" availability_zone="None"/>
\ 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 @@ +<?xml version='1.0' encoding='UTF-8'?> +<dns_entry ip="192.168.1.1" domain="domain1.example.org" type="None" id="None" name="instance1"/>
\ 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 @@ +<?xml version='1.0' encoding='UTF-8'?> +<dns_entries> + <dns_entry ip="192.168.1.1" domain="domain1.example.org" type="None" id="None" name="instance1"/> +</dns_entries>
\ 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 @@ +<?xml version='1.0' encoding='UTF-8'?> +<domain_entries> + <domain_entry project="project1" scope="public" domain="domain1.example.org" availability_zone="None"/> +</domain_entries>
\ No newline at end of file |