Class OpenSearchPreconditions

java.lang.Object
org.opengis.cite.cat30.opensearch.OpenSearchPreconditions

public class OpenSearchPreconditions extends Object
Checks that various preconditions are satisfied before the tests for OpenSearch conformance are run. If any of these checks fail, all applicable tests are skipped.
  • Constructor Details

    • OpenSearchPreconditions

      public OpenSearchPreconditions()

      Constructor for OpenSearchPreconditions.

  • Method Details

    • setClient

      void setClient(CSWClient client)
    • checkOpenSearchImplementationStatus

      @BeforeTest public void checkOpenSearchImplementationStatus(org.testng.ITestContext testContext)
      Checks that the service capabilities document advertises OpenSearch support. The implementation status of the corresponding conformance class must be set to "TRUE". The ows:DefaultValue element takes precedence; if it does not appear then the value of the first occurrence of the ows:Value element will be checked.
      <OperationsMetadata xmlns="http://www.opengis.net/ows/2.0">
        <!-- Operation elements omitted -->
        <Constraint name="http://www.opengis.net/spec/csw/3.0/conf/OpenSearch">
          <AllowedValues>
            <Value>TRUE</Value>
            <Value>FALSE</Value>
          </AllowedValues>
          <DefaultValue>TRUE</DefaultValue>
          <Meaning>Conformance class</Meaning>
        </Constraint>
      </OperationsMetadata>
      
       

      An attempt will be made to retrieve an OpenSearch description document from the IUT. A representation is expected to be obtained by dereferencing the URI corresponding to the GetCapabilities (GET) endpoint. The resulting Document object is stored as the value of the suite attribute SuiteAttribute.OPENSEARCH_DESCR.

      Parameters:
      testContext - Information about the current test run.
      See Also:
      • "OGC 12-176r5, Table 17: Service constraints"