diff options
Diffstat (limited to 'nova/tests/integrated/v3/api_samples/os-remote-consoles')
12 files changed, 97 insertions, 0 deletions
diff --git a/nova/tests/integrated/v3/api_samples/os-remote-consoles/get-spice-console-post-req.json.tpl b/nova/tests/integrated/v3/api_samples/os-remote-consoles/get-spice-console-post-req.json.tpl new file mode 100644 index 0000000000..dffe8f1388 --- /dev/null +++ b/nova/tests/integrated/v3/api_samples/os-remote-consoles/get-spice-console-post-req.json.tpl @@ -0,0 +1,5 @@ +{ + "get_spice_console": { + "type": "spice-html5" + } +} diff --git a/nova/tests/integrated/v3/api_samples/os-remote-consoles/get-spice-console-post-req.xml.tpl b/nova/tests/integrated/v3/api_samples/os-remote-consoles/get-spice-console-post-req.xml.tpl new file mode 100644 index 0000000000..42b8a8437f --- /dev/null +++ b/nova/tests/integrated/v3/api_samples/os-remote-consoles/get-spice-console-post-req.xml.tpl @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="UTF-8"?> +<get_spice_console> + <type>spice-html5</type> +</get_spice_console> diff --git a/nova/tests/integrated/v3/api_samples/os-remote-consoles/get-spice-console-post-resp.json.tpl b/nova/tests/integrated/v3/api_samples/os-remote-consoles/get-spice-console-post-resp.json.tpl new file mode 100644 index 0000000000..65b72a866f --- /dev/null +++ b/nova/tests/integrated/v3/api_samples/os-remote-consoles/get-spice-console-post-resp.json.tpl @@ -0,0 +1,6 @@ +{ + "console": { + "type": "spice-html5", + "url": "http://127.0.0.1:6082/spice_auto.html?token=%(uuid)s" + } +} diff --git a/nova/tests/integrated/v3/api_samples/os-remote-consoles/get-spice-console-post-resp.xml.tpl b/nova/tests/integrated/v3/api_samples/os-remote-consoles/get-spice-console-post-resp.xml.tpl new file mode 100644 index 0000000000..6fd06d7eec --- /dev/null +++ b/nova/tests/integrated/v3/api_samples/os-remote-consoles/get-spice-console-post-resp.xml.tpl @@ -0,0 +1,5 @@ +<?xml version='1.0' encoding='UTF-8'?> +<console> + <url>http://127.0.0.1:6082/spice_auto.html?token=%(uuid)s</url> + <type>spice-html5</type> +</console> diff --git a/nova/tests/integrated/v3/api_samples/os-remote-consoles/get-vnc-console-post-req.json.tpl b/nova/tests/integrated/v3/api_samples/os-remote-consoles/get-vnc-console-post-req.json.tpl new file mode 100644 index 0000000000..54be90040c --- /dev/null +++ b/nova/tests/integrated/v3/api_samples/os-remote-consoles/get-vnc-console-post-req.json.tpl @@ -0,0 +1,5 @@ +{ + "get_vnc_console": { + "type": "novnc" + } +} diff --git a/nova/tests/integrated/v3/api_samples/os-remote-consoles/get-vnc-console-post-req.xml.tpl b/nova/tests/integrated/v3/api_samples/os-remote-consoles/get-vnc-console-post-req.xml.tpl new file mode 100644 index 0000000000..794e3b8b89 --- /dev/null +++ b/nova/tests/integrated/v3/api_samples/os-remote-consoles/get-vnc-console-post-req.xml.tpl @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="UTF-8"?> +<get_vnc_console> + <type>novnc</type> +</get_vnc_console> diff --git a/nova/tests/integrated/v3/api_samples/os-remote-consoles/get-vnc-console-post-resp.json.tpl b/nova/tests/integrated/v3/api_samples/os-remote-consoles/get-vnc-console-post-resp.json.tpl new file mode 100644 index 0000000000..2eeee7c543 --- /dev/null +++ b/nova/tests/integrated/v3/api_samples/os-remote-consoles/get-vnc-console-post-resp.json.tpl @@ -0,0 +1,6 @@ +{ + "console": { + "type": "novnc", + "url": "http://127.0.0.1:6080/vnc_auto.html?token=%(uuid)s" + } +} diff --git a/nova/tests/integrated/v3/api_samples/os-remote-consoles/get-vnc-console-post-resp.xml.tpl b/nova/tests/integrated/v3/api_samples/os-remote-consoles/get-vnc-console-post-resp.xml.tpl new file mode 100644 index 0000000000..4efaf45064 --- /dev/null +++ b/nova/tests/integrated/v3/api_samples/os-remote-consoles/get-vnc-console-post-resp.xml.tpl @@ -0,0 +1,5 @@ +<?xml version='1.0' encoding='UTF-8'?> +<console> + <url>http://127.0.0.1:6080/vnc_auto.html?token=%(uuid)s</url> + <type>novnc</type> +</console> diff --git a/nova/tests/integrated/v3/api_samples/os-remote-consoles/server-post-req.json.tpl b/nova/tests/integrated/v3/api_samples/os-remote-consoles/server-post-req.json.tpl new file mode 100644 index 0000000000..1dcb63e3b2 --- /dev/null +++ b/nova/tests/integrated/v3/api_samples/os-remote-consoles/server-post-req.json.tpl @@ -0,0 +1,16 @@ +{ + "server" : { + "name" : "new-server-test", + "image_ref" : "%(host)s/openstack/images/%(image_id)s", + "flavor_ref" : "%(host)s/openstack/flavors/1", + "metadata" : { + "My Server Name" : "Apache1" + }, + "personality" : [ + { + "path" : "/etc/banner.txt", + "contents" : "ICAgICAgDQoiQSBjbG91ZCBkb2VzIG5vdCBrbm93IHdoeSBpdCBtb3ZlcyBpbiBqdXN0IHN1Y2ggYSBkaXJlY3Rpb24gYW5kIGF0IHN1Y2ggYSBzcGVlZC4uLkl0IGZlZWxzIGFuIGltcHVsc2lvbi4uLnRoaXMgaXMgdGhlIHBsYWNlIHRvIGdvIG5vdy4gQnV0IHRoZSBza3kga25vd3MgdGhlIHJlYXNvbnMgYW5kIHRoZSBwYXR0ZXJucyBiZWhpbmQgYWxsIGNsb3VkcywgYW5kIHlvdSB3aWxsIGtub3csIHRvbywgd2hlbiB5b3UgbGlmdCB5b3Vyc2VsZiBoaWdoIGVub3VnaCB0byBzZWUgYmV5b25kIGhvcml6b25zLiINCg0KLVJpY2hhcmQgQmFjaA==" + } + ] + } +} diff --git a/nova/tests/integrated/v3/api_samples/os-remote-consoles/server-post-req.xml.tpl b/nova/tests/integrated/v3/api_samples/os-remote-consoles/server-post-req.xml.tpl new file mode 100644 index 0000000000..ddb5ea78c4 --- /dev/null +++ b/nova/tests/integrated/v3/api_samples/os-remote-consoles/server-post-req.xml.tpl @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<server xmlns="http://docs.openstack.org/compute/api/v1.1" image_ref="%(host)s/openstack/images/%(image_id)s" flavor_ref="%(host)s/openstack/flavors/1" name="new-server-test"> + <metadata> + <meta key="My Server Name">Apache1</meta> + </metadata> + <personality> + <file path="/etc/banner.txt"> + ICAgICAgDQoiQSBjbG91ZCBkb2VzIG5vdCBrbm93IHdoeSBp + dCBtb3ZlcyBpbiBqdXN0IHN1Y2ggYSBkaXJlY3Rpb24gYW5k + IGF0IHN1Y2ggYSBzcGVlZC4uLkl0IGZlZWxzIGFuIGltcHVs + c2lvbi4uLnRoaXMgaXMgdGhlIHBsYWNlIHRvIGdvIG5vdy4g + QnV0IHRoZSBza3kga25vd3MgdGhlIHJlYXNvbnMgYW5kIHRo + ZSBwYXR0ZXJucyBiZWhpbmQgYWxsIGNsb3VkcywgYW5kIHlv + dSB3aWxsIGtub3csIHRvbywgd2hlbiB5b3UgbGlmdCB5b3Vy + c2VsZiBoaWdoIGVub3VnaCB0byBzZWUgYmV5b25kIGhvcml6 + b25zLiINCg0KLVJpY2hhcmQgQmFjaA== + </file> + </personality> +</server> diff --git a/nova/tests/integrated/v3/api_samples/os-remote-consoles/server-post-resp.json.tpl b/nova/tests/integrated/v3/api_samples/os-remote-consoles/server-post-resp.json.tpl new file mode 100644 index 0000000000..d061e9cb2e --- /dev/null +++ b/nova/tests/integrated/v3/api_samples/os-remote-consoles/server-post-resp.json.tpl @@ -0,0 +1,16 @@ +{ + "server": { + "admin_pass": "%(password)s", + "id": "%(id)s", + "links": [ + { + "href": "%(host)s/v3/servers/%(uuid)s", + "rel": "self" + }, + { + "href": "%(host)s/servers/%(uuid)s", + "rel": "bookmark" + } + ] + } +} diff --git a/nova/tests/integrated/v3/api_samples/os-remote-consoles/server-post-resp.xml.tpl b/nova/tests/integrated/v3/api_samples/os-remote-consoles/server-post-resp.xml.tpl new file mode 100644 index 0000000000..3470373e17 --- /dev/null +++ b/nova/tests/integrated/v3/api_samples/os-remote-consoles/server-post-resp.xml.tpl @@ -0,0 +1,6 @@ +<?xml version='1.0' encoding='UTF-8'?> +<server xmlns:atom="http://www.w3.org/2005/Atom" xmlns="http://docs.openstack.org/compute/api/v1.1" id="%(id)s" admin_pass="%(password)s"> + <metadata/> + <atom:link href="%(host)s/v3/servers/%(uuid)s" rel="self"/> + <atom:link href="%(host)s/servers/%(uuid)s" rel="bookmark"/> +</server> |