Conformance class: SubscriptionOrder http:www.opengis.netspecROSEO1.0confSubscriptionOrder

185 Copyright © 2014 Open Geospatial Consortium roseo:OrderorderItemdownloadURL roseo:OrderorderItemsceneSelection d References: ฀ http:www.opengis.netspecROSEO1.0reqSceneSelectionOrderretriever esponse e Test type: Capability

11.3 Conformance class: SubscriptionOrder http:www.opengis.netspecROSEO1.0confSubscriptionOrder

11.3.1 GET Capabilities a Test id:

http:www.opengis.netspecROSEO1.0confSubscriptionOrderGET_Capabil ities b Test purpose: To verify that the ROSEO Server under test correctly supports the HTTP GET method on Capabilities resource and advertises support for Subscription orders. c Test method: Verify that the ROSEO Server under test accepts the following request: o HTTP Method: GET o PATH: http:hostname:portcontext pathROSEO1.0.0 Verify the response message: o HTTP Status: 200 OK o HTTP Entity Body: o complies with the Capabilities element of roseo.xsd schema; o Subscription orders are supported: Either CapabilitiesContentsSubscriptionOrderssupported = true Or at least one element CapabilitiesContentsSupportedCollectionSubscriptionOrders supported = true o Online Download is supported: Either CapabilitiesContentsDescribeResultAccessCapabilitiessuppor ted = true Or at least one element CapabilitiesContentsSupportedCollectionDescribeResultAccess Capabilitiessupported = true 186 Copyright © 2014 Open Geospatial Consortium o Request Cancellation is supported: Either CapabilitiesContentsCancelCapabilitiessupported = true Or at least one element CapabilitiesContentsSupportedCollectionCancelCapabilitiess upported = true Pass if the assertion is satisfied; fail otherwise. d References: ฀ http:www.opengis.netspecROSEO1.0reqSubscriptionOrderCapabilities resource e Test type: Capability

11.3.2 GET OrderOptionsxml a Test id:

http:www.opengis.netspecROSEO1.0confSubscriptionOrderGET_Order OptionsXML b Test purpose: To verify whether the ROSEO Server under test supports order options for at least one subscription. c Test method: Verify that the ROSEO Server under test accepts the following request: o HTTP Method: GET o PATH: o http:hostname:portcontext pathROSEO1.0.0options{collection identifier}xml Verify the response message: o HTTP Status: 200 OK o HTTP Entity Body: o the returned OrderOptions element is valid against roseo.xsd XML Schema. o include OrderOptionsOrderOptionGrouporderType set with: SUBSCRIPTION_ORDER. o include at least on instance of OrderOptionsOrderOptionGroupproductDeliveryOptionsonlineData Accessprotocol d References: 187 Copyright © 2014 Open Geospatial Consortium ฀ http:www.opengis.netspecROSEO1.0reqSubscriptionOrderOrderOptio ns ฀ http:www.opengis.netspecROSEO1.0reqSubscriptionOrderOrderOptio nsformatxml e Test type: Capability

11.3.3 POST Order a Test id:

http:www.opengis.netspecROSEO1.0confSubscriptionOrderPOST_Order b Test purpose: To verify that the ROSEO Server under test is able to create Subscription Orders. c Test method: Verify that the ROSEO Server under test accepts the following request: ฀ HTTP Method: POST ฀ PATH: http:hostname:portcontext pathROSEO1.0.0order ฀ HTTP Entity Body: o Including roseo:Order valid against the XML schema roseo.xsd; o Specifying product order: OrderorderType = “SUBSCRIPTION_ORDER” o Specifying one Subscription to Earth Observation Products: OrderorderItemsubscriptionId o Setting unique OrderorderItemitemId within the order itself. o Setting order options according to OrderOptions resource corresponding to the specified subscriptionId: OrderorderItemproductOrderOptionsId OrderorderItemoption o Setting options for online access according to OrderOptions resource corresponding to the specified subscriptionId: Either: OrderdeliveryOptionsonlineDataAccessprotocol Or: OrderorderItemdeliveryOptionsonlineDataAccessprotocol Verify the response message: ฀ HTTP Status: 200 OK 188 Copyright © 2014 Open Geospatial Consortium ฀ HTTP Entity Body: o Includes one instance of oseo:orderId: that is valid against roseo.xsd XML Schema; that includes a unique ID; which is also a valid URL composed as follows: http:hostname:portcontext pathROSEO1.0.0order{order identifier} d References: ฀ http:www.opengis.netspecROSEO1.0reqSubscriptionOrderOrdercreati oncontent e Test type: Capability

11.3.4 GET OrderID a Test id:

http:www.opengis.netspecROSEO1.0confSubscriptionOrderGET_Order ID b Test purpose: To verify whether the ROSEO Server under test is able to correctly return an Order resource that include a Subscription. c Test method: Send the following request: o HTTP Method: GET o PATH: http:hostname:portcontext pathROSEO1.0.0order{order identifier} The PATH shall be set using the roseo:orderId returned by test §11.3.3. Verify the response message: o HTTP Status: 200 OK o HTTP Entity Body: o Includes roseo:Order element; o The returned element is valid against roseo.xsd XML Schema; o The ID of the returned order roseo:OrderorderId matches the one in the request; o The returned roseo:Order element includes all parameters set at order creation §11.3.3, specifically: roseo:OrderorderType = ”SUBSCRIPTION_ORDER” roseo:OrderorderItemsubscriptionId o The returned roseo:Order element shall include all order status information: 189 Copyright © 2014 Open Geospatial Consortium roseo:OrderorderId roseo:OrderorderStatusInfo roseo:OrderorderDateTime roseo:OrderorderItemorderStatusInfo o In case the orderItem has been completed then: roseo:orderItemorderItemStatusInfostatus = Completed Otherwise the item status can be: Submitted, Accepted, InProduction. o The returned roseo:Order element shall include the download URL: roseo:OrderdownloadURL o The returned roseo:OrderorderItem shall include: roseo:OrderorderItemitemIdURL roseo:OrderorderItemdownloadURL d References: ฀ http:www.opengis.netspecROSEO1.0reqSubscriptionOrderOrderretriev eresponse e Test type: Capability

11.3.5 GET OrderedProductall a Test id:

http:www.opengis.netspecROSEO1.0confSubscriptionOrderGET_Ordere dProductall b Test purpose: To verify whether the ROSEO Server under test is able to retrieve the OrderProducts corresponding to a Subscription. c Test method: Send the following request: o HTTP Method: GET o PATH: http:hostname:portcontext pathROSEO1.0.0order{order identifier}file The PATH shall be set using the roseo:orderId returned by test §11.3.3. Verify the response message: o HTTP Status: 200 OK o HTTP Entity Body: o Includes roseo:OrderedProducts, which is valid against roseo.xsd XML Schema; o All ordered products generated by the subscription ready for download shall include: OrderedProductsURL 190 Copyright © 2014 Open Geospatial Consortium OrderedProductsURLitemId corresponding to the itemId of the POSTed Order OrderedProductsURLproductId OrderedProductsURLitemAddress OrderedProductsURLexpirationDate in case the item has limited time availability d References: ฀ http:www.opengis.netspecROSEO1.0reqSubscriptionOrderOrderedProd uctitemId ฀ http:www.opengis.netspecROSEO1.0reqSubscriptionOrderOrderedProd uctproductId e Test type: Capability 11.4 Traceability Matrix 11.4.1 Requirements vs. Conformance Tests Traceability Matrix