public class Conformance extends CommonFixture
requestLoggingFilter, responseLoggingFilter, rootUri| Constructor and Description |
|---|
Conformance() |
| Modifier and Type | Method and Description |
|---|---|
Object[][] |
conformanceUris(org.testng.ITestContext testContext) |
(package private) List<RequirementClass> |
parseAndValidateRequirementClasses(io.restassured.path.json.JsonPath jsonPath) |
void |
storeRequirementClassesInTestContext(org.testng.ITestContext testContext) |
void |
validateConformanceOperationAndResponse(TestPoint testPoint)
Abstract Test 7: /ats/core/conformance-op
Test Purpose: Validate that a Conformance Declaration can be retrieved from the expected location.
|
clearMessages, getRequest, getResponse, init, initCommonFixturepublic Object[][] conformanceUris(org.testng.ITestContext testContext)
public void storeRequirementClassesInTestContext(org.testng.ITestContext testContext)
public void validateConformanceOperationAndResponse(TestPoint testPoint)
Abstract Test 7: /ats/core/conformance-op
Test Purpose: Validate that a Conformance Declaration can be retrieved from the expected location.
Requirement: /req/core/conformance-op
Test Method:
1. Construct a path for each "conformance" link on the landing page as well as for the {root}/conformance path.
2. Issue an HTTP GET request on each path
3. Validate that a document was returned with a status code 200
4. Validate the contents of the returned document using test /ats/core/conformance-success.
Abstract Test 8: /ats/core/conformance-success Test Purpose: Validate that the Conformance Declaration response complies with the required structure and contents. Requirement: /req/core/conformance-success Test Method: 1. Validate the response document against OpenAPI 3.0 schema confClasses.yaml 2. Validate that the document includes the conformance class "http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/core" 3. Validate that the document list all OGC API conformance classes that the API implements.
testPoint - the test point to test, never nullList<RequirementClass> parseAndValidateRequirementClasses(io.restassured.path.json.JsonPath jsonPath)
jsonPath - never nullnullAssertionError - if the json does not follow the expected structureCopyright © 2024 Open Geospatial Consortium. All rights reserved.