diff options
author | Sean Dague <sean@dague.net> | 2014-11-07 14:27:03 +0100 |
---|---|---|
committer | Sean Dague <sean@dague.net> | 2014-11-12 15:31:08 -0500 |
commit | 89cd6a0c493e26b5a9e017c99d731464292abbaf (patch) | |
tree | c2bf790d1684cd539b820247113492495123a163 /nova/tests/unit/integrated/api_samples/os-cells | |
parent | 5c8bbaafef590e4d346a03051a0ba55c8be26c5c (diff) | |
download | nova-89cd6a0c493e26b5a9e017c99d731464292abbaf.tar.gz |
move all tests to nova/tests/unit
As part of the split of functional and unit tests we need to isolate
the unit tests into a separate directory for having multiple test
targets in a sane way.
Part of bp:functional-tests-for-nova
Change-Id: Id42ba373c1bda6a312b673ab2b489ca56da8c628
Diffstat (limited to 'nova/tests/unit/integrated/api_samples/os-cells')
6 files changed, 64 insertions, 0 deletions
diff --git a/nova/tests/unit/integrated/api_samples/os-cells/cells-get-resp.json.tpl b/nova/tests/unit/integrated/api_samples/os-cells/cells-get-resp.json.tpl new file mode 100644 index 0000000000..2993b1df88 --- /dev/null +++ b/nova/tests/unit/integrated/api_samples/os-cells/cells-get-resp.json.tpl @@ -0,0 +1,9 @@ +{ + "cell": { + "name": "cell3", + "username": "username3", + "rpc_host": null, + "rpc_port": null, + "type": "child" + } +} diff --git a/nova/tests/unit/integrated/api_samples/os-cells/cells-get-resp.xml.tpl b/nova/tests/unit/integrated/api_samples/os-cells/cells-get-resp.xml.tpl new file mode 100644 index 0000000000..d31a674a2f --- /dev/null +++ b/nova/tests/unit/integrated/api_samples/os-cells/cells-get-resp.xml.tpl @@ -0,0 +1,2 @@ +<?xml version='1.0' encoding='UTF-8'?> +<cell xmlns="http://docs.rackspacecloud.com/servers/api/v1.0" name="cell3" username="username3" rpc_port="None" rpc_host="None" type="child"/> diff --git a/nova/tests/unit/integrated/api_samples/os-cells/cells-list-empty-resp.json.tpl b/nova/tests/unit/integrated/api_samples/os-cells/cells-list-empty-resp.json.tpl new file mode 100644 index 0000000000..b16e12cd69 --- /dev/null +++ b/nova/tests/unit/integrated/api_samples/os-cells/cells-list-empty-resp.json.tpl @@ -0,0 +1,4 @@ +{ + "cells": [] +} + diff --git a/nova/tests/unit/integrated/api_samples/os-cells/cells-list-empty-resp.xml.tpl b/nova/tests/unit/integrated/api_samples/os-cells/cells-list-empty-resp.xml.tpl new file mode 100644 index 0000000000..32fef4f048 --- /dev/null +++ b/nova/tests/unit/integrated/api_samples/os-cells/cells-list-empty-resp.xml.tpl @@ -0,0 +1,2 @@ +<?xml version='1.0' encoding='UTF-8'?> +<cells xmlns="http://docs.rackspacecloud.com/servers/api/v1.0"/> diff --git a/nova/tests/unit/integrated/api_samples/os-cells/cells-list-resp.json.tpl b/nova/tests/unit/integrated/api_samples/os-cells/cells-list-resp.json.tpl new file mode 100644 index 0000000000..3d7a6c207c --- /dev/null +++ b/nova/tests/unit/integrated/api_samples/os-cells/cells-list-resp.json.tpl @@ -0,0 +1,39 @@ +{ + "cells": [ + { + "name": "cell1", + "username": "username1", + "rpc_host": null, + "rpc_port": null, + "type": "child" + }, + { + "name": "cell2", + "username": "username2", + "rpc_host": null, + "rpc_port": null, + "type": "parent" + }, + { + "name": "cell3", + "username": "username3", + "rpc_host": null, + "rpc_port": null, + "type": "child" + }, + { + "name": "cell4", + "username": "username4", + "rpc_host": null, + "rpc_port": null, + "type": "parent" + }, + { + "name": "cell5", + "username": "username5", + "rpc_host": null, + "rpc_port": null, + "type": "child" + } + ] +} diff --git a/nova/tests/unit/integrated/api_samples/os-cells/cells-list-resp.xml.tpl b/nova/tests/unit/integrated/api_samples/os-cells/cells-list-resp.xml.tpl new file mode 100644 index 0000000000..58312201f6 --- /dev/null +++ b/nova/tests/unit/integrated/api_samples/os-cells/cells-list-resp.xml.tpl @@ -0,0 +1,8 @@ +<?xml version='1.0' encoding='UTF-8'?> +<cells xmlns="http://docs.rackspacecloud.com/servers/api/v1.0"> + <cell name="cell1" username="username1" rpc_port="None" rpc_host="None" type="child"/> + <cell name="cell2" username="username2" rpc_port="None" rpc_host="None" type="parent"/> + <cell name="cell3" username="username3" rpc_port="None" rpc_host="None" type="child"/> + <cell name="cell4" username="username4" rpc_port="None" rpc_host="None" type="parent"/> + <cell name="cell5" username="username5" rpc_port="None" rpc_host="None" type="child"/> +</cells> |