Conformance Class: SOS Observation Insertion

120 Copyright © 2012 Open Geospatial Consortium. Test type Conformance Test http:www.opengis.netspecSOS2.0confsensorDeletionobservation- deletion Requirement http:www.opengis.netspecSOS2.0reqsensorDeletionobser vation-deletion Test purpose Check that the observations of the sensor which has been deleted are no more provided by the service. Test method Delete a sensor and send a GetObservation request for the sensor which has been deleted to the service. Verify that no observations but an Exception with code InvalidParameterValue is returned. Test type Conformance Test http:www.opengis.netspecSOS2.0confsensorDeletionexception Requirement http:www.opengis.netspecSOS2.0reqsensorDeletionexcep tion Test purpose Check that the server returns appropriate exception messages in case of an error while executing the DeleteSensor operation. Test method Send invalid DeleteSensor requests to the server and verify that the server returns appropriate exception messages according to section 10.3.1.1 of this specification. Test type Conformance

14.3.4 Conformance Class: SOS Observation Insertion

This conformance class defines conformance tests for the insertion of observations in a SOS instance. http:www.opengis.netspecSOS2.0confobsInsertion Requirements http:www.opengis.netspecSOS2.0reqobsInsertion Dependency http:www.opengis.netspecSOS2.0confcore Dependency http:www.opengis.netspecSOS2.0confinsertionCap Copyright © 2012 Open Geospatial Consortium. 121 Dependency urn:iso:ts:iso:19156:clause:A1 Test http:www.opengis.netspecSOS2.0confobsInsertionrequest-structure Requirement http:www.opengis.netspecSOS2.0reqobsInsertionrequest- structure Test purpose Check that the service accepts InsertObservation requests as defined in Subclause 10.4.1.1 of this specification. Test method Send a valid InsertObservation request to the service and verify that an appropriate response according to this specification is returned. Test type Conformance Test http:www.opengis.netspecSOS2.0confobsInsertionsupported-types Requirement http:www.opengis.netspecSOS2.0reqobsInsertionsupporte d-types Test purpose Check that the observationTypes listed in the Capabilities are supported by the SOS and are also listed in the ObservationOffering to which the observations are added. Test method Query the Capabilities . Send valid InsertObservation requests for each observationType - to the service and verify that an appropriate response according to this specification is returned. Retrieve a new Capabilities document and check that the observationTypes are also listed in the ObservationOfferings to which the observations have been added. Test type Conformance Test http:www.opengis.netspecSOS2.0confobsInsertionproperty- constellation Requirement http:www.opengis.netspecSOS2.0reqobsInsertionrequest- structure Test purpose To verify that a particular constellation of procedure , observedProperty and ObservationOffering for observations is always encoded in the same observation - and resultType . Verify that the service checks that the 122 Copyright © 2012 Open Geospatial Consortium. observation - and resultType is valid for a particular constellation. Test method Send an InsertObservation request with an incorrect observation - and resultType to the service. Verify that the observations are not inserted and an Exception is returned. Test type Conformance Test http:www.opengis.netspecSOS2.0confobsInsertionmultiple-offerings Requirement http:www.opengis.netspecSOS2.0reqobsInsertionmultiple -offerings Test purpose Check that the observations are inserted in all offerings that are specified in an InsertObservation request.. Test method Send an InsertObservation request that specifies multiple offerings to the server and verify that the all observations are inserted in all offerings that are specified in the request.. Test type Conformance Test http:www.opengis.netspecSOS2.0confobsInsertionresponse-structure Requirement http:www.opengis.netspecSOS2.0reqobsInsertionrespons e-structure Test purpose Check that the service returns an InsertObservation response as defined in Subclause 10.4.1.2 of this specification. Test method Send a valid InsertObservation request to the service. Verify that service returns a response as defined in Subclause 10.4.1.2 of this specification. Test type Conformance Test http:www.opengis.netspecSOS2.0confobsInsertionexception Requirement http:www.opengis.netspecSOS2.0reqobsInsertionexceptio n Test purpose Check that the server returns appropriate exception messages in case of an error while executing the InsertObservation Copyright © 2012 Open Geospatial Consortium. 123 operation. Test method Send invalid InsertObservation requests to the server and verify that the server returns appropriate exception messages according to section 10.4.1.3 of this specification. Test type Conformance Test http:www.opengis.netspecSOS2.0confobsInsertionexception- supported-types Requirement http:www.opengis.netspecSOS2.0reqobsInsertionexceptio n-supported-types Test purpose Check that an exception is returned with the ExceptionCode “InvalidParameterValue” and locator value “observationType” or “resultType”, if the observationType and resultType of the observation which should be inserted is not supported by the SOS or the types are not listed in the ObservationOfferings of the sensor in the Capabilities . Test method Send valid InsertObservation request containing an observation of invalid type to the server and verify that the server returns appropriate exception messages as described above. Test type Conformance Test http:www.opengis.netspecSOS2.0confobsInsertionexception-property- constellation Requirement http:www.opengis.netspecSOS2.0reqobsInsertionexceptio n-property-constellation Test purpose Check that an exception is returned with the ExceptionCode “InvalidParameterValue” and locator value “observationType”, if an observationType is inserted for the same constellation of procedure , observedProperty as well as ObservationOffering and that observationType is different than in previous insertions of observations with that property constellation. Test method Send valid InsertObservation request containing an observation of invalid type to the server and verify that the server returns appropriate exception messages as described above. 124 Copyright © 2012 Open Geospatial Consortium. Test type Conformance

14.4 SOS Result Handling Extension