Class Conformance
java.lang.Object
org.opengis.cite.ogcapifeatures10.conformance.CommonFixture
org.opengis.cite.ogcapifeatures10.conformance.core.conformance.Conformance
A.2.4. Conformance Path {root}/conformance
- Author:
- Lyn Goltz
-
Field Summary
Fields inherited from class org.opengis.cite.ogcapifeatures10.conformance.CommonFixture
requestLoggingFilter, responseLoggingFilter, rootUri -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObject[][]conformanceUris(org.testng.ITestContext testContext) conformanceUris.(package private) List<RequirementClass>parseAndValidateRequirementClasses(io.restassured.path.json.JsonPath jsonPath) voidstoreRequirementClassesInTestContext(org.testng.ITestContext testContext) storeRequirementClassesInTestContext.voidvalidateConformanceOperationAndResponse(TestPoint testPoint) Abstract Test 7: /ats/core/conformance-op Test Purpose: Validate that a Conformance Declaration can be retrieved from the expected location.Methods inherited from class org.opengis.cite.ogcapifeatures10.conformance.CommonFixture
clearMessages, getRequest, getResponse, init, initCommonFixture
-
Constructor Details
-
Conformance
public Conformance()
-
-
Method Details
-
conformanceUris
@DataProvider(name="conformanceUris") public Object[][] conformanceUris(org.testng.ITestContext testContext) conformanceUris.
- Parameters:
testContext- aITestContextobject- Returns:
- an array of
Objectobjects
-
storeRequirementClassesInTestContext
@AfterClass public void storeRequirementClassesInTestContext(org.testng.ITestContext testContext) storeRequirementClassesInTestContext.
- Parameters:
testContext- aITestContextobject
-
validateConformanceOperationAndResponse
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.
- Parameters:
testPoint- the test point to test, nevernull
-
parseAndValidateRequirementClasses
List<RequirementClass> parseAndValidateRequirementClasses(io.restassured.path.json.JsonPath jsonPath) - Parameters:
jsonPath- nevernull- Returns:
- the parsed requirement classes, never
null - Throws:
AssertionError- if the json does not follow the expected structure
-