Class Process
java.lang.Object
org.opengis.cite.ogcapiprocesses10.CommonFixture
org.opengis.cite.ogcapiprocesses10.process.Process
A.2.5. List of processes {root}/processes
- Author:
- Benjamin Pross
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opengis.cite.ogcapiprocesses10.CommonFixture
CommonFixture.Input, CommonFixture.Output, CommonFixture.Type
-
Field Summary
Fields inherited from class org.opengis.cite.ogcapiprocesses10.CommonFixture
CONTENT_ENCODING_PROPERTY_KEY, CONTENT_MEDIA_TYPE_PROPERTY_KEY, CONTENT_SCHEMA_PROPERTY_KEY, CONTENT_TYPE, limit, reqEntity, requestLoggingFilter, responseLoggingFilter, rootUri, rspEntity, specURL, testAllProcesses
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setup
(org.testng.ITestContext testContext) setup.void
Abstract Test 13: /conf/core/process Test Purpose: Validate that a process description can be retrieved from the expected location.void
Abstract Test 15: /conf/core/process-exception-no-such-process Test Purpose: Validate that an invalid process identifier is handled correctly.void
Abstract Test 14: /conf/core/process-success Test Purpose: Validate that the content complies with the required structure and contents.Methods inherited from class org.opengis.cite.ogcapiprocesses10.CommonFixture
addAttributesOnTestFailure, addServerUnderTest, checkHtmlConfClass, clearMessages, createInput, createOutput, getRequest, getResponse, init, initCommonFixture, printResults, validateResponseAgainstSchema
-
Constructor Details
-
Process
public Process()
-
-
Method Details
-
setup
@BeforeClass public void setup(org.testng.ITestContext testContext) setup.
- Parameters:
testContext
- aITestContext
object
-
testProcessExceptionNoSuchProcess
public void testProcessExceptionNoSuchProcess()Abstract Test 15: /conf/core/process-exception-no-such-process Test Purpose: Validate that an invalid process identifier is handled correctly. Requirement: /req/core/process-exception-no-such-process Test Method: 1. Validate that the document contains the exception `type` "http://wwwopengisnet/def/exceptions/ogcapi-processes-1/10/no-such-process" 2. Validate the document for all supported media types using the resources and tests identified in no-such-process |=== An exception response caused by the use of an invalid process identifier may be retrieved in a number of different formats. The following table identifies the applicable schema document for each format and the test to be used to validate the response. All supported formats should be exercised. [[no-such-process]] 3. Schema and Tests for Non-existent Process [width="90%",cols="3",options="header"] |=== |Format |Schema Document |Test ID |HTML |link:http://schemas.opengis.net/ogcapi/processes/part1/1.0/openapi/schemas/exception.yaml[exception.yaml] |ats_html_content,/conf/html/content |JSON |link:http://schemas.opengis.net/ogcapi/processes/part1/1.0/openapi/schemas/exception.yaml[exception.yaml] |ats_json_content,/conf/json/content |=== TODO: Check additional content
-
testProcess
public void testProcess()Abstract Test 13: /conf/core/process Test Purpose: Validate that a process description can be retrieved from the expected location. Requirement: /req/core/process Test Method: |=== TODO: Check additional content
-
testProcessSuccess
public void testProcessSuccess()Abstract Test 14: /conf/core/process-success Test Purpose: Validate that the content complies with the required structure and contents. Requirement: /req/core/process-success Test Method: |=== The interface of a process may be describing using a number of different models or process description languages. The following table identifies the applicable schema document for each process description model described in this standard. [[process-description-model]] 1. Schema and Tests for Process Description Models [width="90%",cols="3",options="header"] |=== |Model |Schema Document |Test ID |OGC Process Description JSON|link:http://schemas.opengis.net/ogcapi/processes/part1/1.0/openapi/schemas/process.yaml[process.yaml] |req_ogc-process-description_json-encoding,/conf/ogc-process-description/json-encoding |=== TODO: Check additional content
-