summaryrefslogtreecommitdiff
path: root/doc/api_samples/os-multiple-create
diff options
context:
space:
mode:
authorHe Jie Xu <hejie.xu@intel.com>2015-08-14 16:11:13 +0800
committerHe Jie Xu <hejie.xu@intel.com>2015-08-18 15:25:41 +0800
commit9f9802eebd56b7fa56de9c7e64f3424fc6334ea0 (patch)
tree1cf544487457eea46a54fbf8650f130d8b4a7296 /doc/api_samples/os-multiple-create
parent760ec42c6b843d3ff5ba2ed9f27fd87c547df617 (diff)
downloadnova-9f9802eebd56b7fa56de9c7e64f3424fc6334ea0.tar.gz
Move the v2 api_sample functional tests
This patch move the all v2.1 api sample tests under 'functional/api_sample_tests'. Also move sample files under 'doc/api-samples'. Co-Authored-By: Ed Leafe <ed@leafe.com> Co-Authored-By: Alex Xu <hejie.xu@intel.com> Partial-Bug: #1462901 Change-Id: I2b924f2ad7687a23a018a9b658e8acd9e04d7963
Diffstat (limited to 'doc/api_samples/os-multiple-create')
-rw-r--r--doc/api_samples/os-multiple-create/multiple-create-no-resv-post-req.json12
-rw-r--r--doc/api_samples/os-multiple-create/multiple-create-no-resv-post-resp.json16
-rw-r--r--doc/api_samples/os-multiple-create/multiple-create-post-req.json13
-rw-r--r--doc/api_samples/os-multiple-create/multiple-create-post-resp.json3
4 files changed, 44 insertions, 0 deletions
diff --git a/doc/api_samples/os-multiple-create/multiple-create-no-resv-post-req.json b/doc/api_samples/os-multiple-create/multiple-create-no-resv-post-req.json
new file mode 100644
index 0000000000..74a69f6b6c
--- /dev/null
+++ b/doc/api_samples/os-multiple-create/multiple-create-no-resv-post-req.json
@@ -0,0 +1,12 @@
+{
+ "server": {
+ "name": "new-server-test",
+ "imageRef": "http://openstack.example.com/openstack/images/70a599e0-31e7-49b7-b260-868f441e862b",
+ "flavorRef": "http://openstack.example.com/openstack/flavors/1",
+ "metadata": {
+ "My Server Name": "Apache1"
+ },
+ "min_count": "2",
+ "max_count": "3"
+ }
+}
diff --git a/doc/api_samples/os-multiple-create/multiple-create-no-resv-post-resp.json b/doc/api_samples/os-multiple-create/multiple-create-no-resv-post-resp.json
new file mode 100644
index 0000000000..ef38fbdbc8
--- /dev/null
+++ b/doc/api_samples/os-multiple-create/multiple-create-no-resv-post-resp.json
@@ -0,0 +1,16 @@
+{
+ "server": {
+ "adminPass": "wfksH3GTTseP",
+ "id": "440cf918-3ee0-4143-b289-f63e1d2000e6",
+ "links": [
+ {
+ "href": "http://openstack.example.com/v2/openstack/servers/440cf918-3ee0-4143-b289-f63e1d2000e6",
+ "rel": "self"
+ },
+ {
+ "href": "http://openstack.example.com/openstack/servers/440cf918-3ee0-4143-b289-f63e1d2000e6",
+ "rel": "bookmark"
+ }
+ ]
+ }
+}
diff --git a/doc/api_samples/os-multiple-create/multiple-create-post-req.json b/doc/api_samples/os-multiple-create/multiple-create-post-req.json
new file mode 100644
index 0000000000..91367de937
--- /dev/null
+++ b/doc/api_samples/os-multiple-create/multiple-create-post-req.json
@@ -0,0 +1,13 @@
+{
+ "server": {
+ "name": "new-server-test",
+ "imageRef": "http://openstack.example.com/openstack/images/70a599e0-31e7-49b7-b260-868f441e862b",
+ "flavorRef": "http://openstack.example.com/openstack/flavors/1",
+ "metadata": {
+ "My Server Name": "Apache1"
+ },
+ "return_reservation_id": "True",
+ "min_count": "2",
+ "max_count": "3"
+ }
+}
diff --git a/doc/api_samples/os-multiple-create/multiple-create-post-resp.json b/doc/api_samples/os-multiple-create/multiple-create-post-resp.json
new file mode 100644
index 0000000000..a67d680a11
--- /dev/null
+++ b/doc/api_samples/os-multiple-create/multiple-create-post-resp.json
@@ -0,0 +1,3 @@
+{
+ "reservation_id": "r-3fhpjulh"
+} \ No newline at end of file