aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2015-03-03 16:33:29 +0100
committerMilo Casagrande <milo.casagrande@linaro.org>2015-03-03 16:33:29 +0100
commitc1228be6e52f5c33a87094f089c3f3c044af99e8 (patch)
treecff2dd7b350342bad10e369646dc5bde43e232ef /doc
parent097eafe414f08c77c2a0ee031f2240a02b9c03d3 (diff)
doc: Fix test schemas.
Change-Id: Ifda2e3d71f1eca9d7dca0909c2e14cba21f475de
Diffstat (limited to 'doc')
-rw-r--r--doc/schema-test-case.rst8
-rw-r--r--doc/schema-test-set.rst13
-rw-r--r--doc/schema-test-suite.rst15
-rw-r--r--doc/schema/1.0/test_set_post.json14
-rw-r--r--doc/schema/1.0/test_suite_post.json12
5 files changed, 55 insertions, 7 deletions
diff --git a/doc/schema-test-case.rst b/doc/schema-test-case.rst
index 147b8dd..2197489 100644
--- a/doc/schema-test-case.rst
+++ b/doc/schema-test-case.rst
@@ -18,3 +18,11 @@ POST
.. literalinclude:: schema/1.0/test_case_post.json
:language: json
+
+More Info
+*********
+
+* :ref:`Test suite schema <schema_test_suite>`
+* :ref:`Test set schema <schema_test_set>`
+* :ref:`API results <intro_schema_results>`
+* :ref:`Schema time and date <intro_schema_time_date>`
diff --git a/doc/schema-test-set.rst b/doc/schema-test-set.rst
index 34b7cc6..cb760dd 100644
--- a/doc/schema-test-set.rst
+++ b/doc/schema-test-set.rst
@@ -23,3 +23,16 @@ POST
.. literalinclude:: schema/1.0/test_set_post.json
:language: json
+
+Notes
++++++
+
+* ``test_case``: If not specified, the test case executed must be registered using the appropriate API call.
+
+More Info
+*********
+
+* :ref:`Test suite schema <schema_test_suite>`
+* :ref:`Test case schema <schema_test_case>`
+* :ref:`API results <intro_schema_results>`
+* :ref:`Schema time and date <intro_schema_time_date>`
diff --git a/doc/schema-test-suite.rst b/doc/schema-test-suite.rst
index a183100..a82c7cf 100644
--- a/doc/schema-test-suite.rst
+++ b/doc/schema-test-suite.rst
@@ -23,3 +23,18 @@ POST
.. literalinclude:: schema/1.0/test_suite_post.json
:language: json
+
+Notes
++++++
+
+* ``test_set``: If not specified, the test set executed must be registered using the appropiate API call.
+
+* ``test_case``: If not specified, the test case executed must be registered using the appropriate API call.
+
+More Info
+*********
+
+* :ref:`Test set schema <schema_test_set>`
+* :ref:`Test case schema <schema_test_case>`
+* :ref:`API results <intro_schema_results>`
+* :ref:`Schema time and date <intro_schema_time_date>`
diff --git a/doc/schema/1.0/test_set_post.json b/doc/schema/1.0/test_set_post.json
index b81d8d4..fc5cb50 100644
--- a/doc/schema/1.0/test_set_post.json
+++ b/doc/schema/1.0/test_set_post.json
@@ -20,13 +20,7 @@
},
"test_suite_id": {
"type": "string",
- "description": "The test suite ID associated with this test case"
- },
- "test_case": {
- "type": "array",
- "description": "The list of test_case IDs executed by this test suite",
- "items": {"$ref": "http://api.kernelci.org/schema/1.0/test_case_post.json"},
- "additionalItems": true
+ "description": "The test suite ID associated with this test set"
},
"uri": {
"type": "uri",
@@ -39,6 +33,12 @@
"metadata": {
"type": "object",
"description": "Free form object where to store accessory test set data"
+ },
+ "test_case": {
+ "type": "array",
+ "description": "The list of test case objects executed by this test set",
+ "items": {"$ref": "http://api.kernelci.org/json-schema/1.0/test_case_get.json"},
+ "additionalItems": true
}
},
"required": ["version", "name", "test_suite_id"]
diff --git a/doc/schema/1.0/test_suite_post.json b/doc/schema/1.0/test_suite_post.json
index d0f8e1e..2c2a992 100644
--- a/doc/schema/1.0/test_suite_post.json
+++ b/doc/schema/1.0/test_suite_post.json
@@ -69,6 +69,18 @@
"metadata": {
"type": "object",
"description": "Free form object where to store accessory test suite data"
+ },
+ "test_set": {
+ "type": "array",
+ "description": "The list of test set objects executed by this test suite",
+ "items": {"$ref": "http://api.kernelci.org/json-schema/1.0/test_set_get.json"},
+ "additionalItems": true
+ },
+ "test_case": {
+ "type": "array",
+ "description": "The list of test case objects executed by this test suite",
+ "items": {"$ref": "http://api.kernelci.org/json-schema/1.0/test_case_get.json"},
+ "additionalItems": true
}
},
"required": ["version", "name", "lab_name"]