Commit 4c5dbc51 authored by Yann Garcia's avatar Yann Garcia
Browse files

Review LIS tests implementation

parent ec721896
Loading
Loading
Loading
Loading
+124 −0
Original line number Diff line number Diff line
@@ -1034,4 +1034,128 @@ Expected behaviour
    }
}  //End of TP_ECRF_HTTP_POST_BV_11


Test Purpose {
TP Id TP_ECRF_HTTP_POST_BV_12
Test objective 
    "IUT successfully responds with configured service types for a ListServices request without service element" 
Reference 
    "ETSI TS 103 479 [1], clause XXXX",
    "Next Generation 112 LTD [2], clause 4.4",
    "RFC5222 [5]"
Config Id CFG_ECRF_01
PICS Selection L_LST_ALL1
Initial conditions with {
    the IUT entity havingServiceBoundaryFor the E_POLICE_SERVICE_BOUNDARY containing
        serviceMappingFor E_POLICE_SERVICE_URN containing
            URI indicating value E_POLICE_SIP_URI;
    ;
    and the IUT entity havingServiceBoundaryFor the V_FIRE_SERVICE_BOUNDARY containing
        serviceMappingFor V_FIRE_SERVICE_URN containing
            URI indicating value V_FIRE_SIP_URI;
    ;
}
Expected behaviour
    ensure that {
        when {
            the IUT entity receives a POST containing
                Uri indicating value "/service",
                Host,
                not Accept,
                Content_type indicating value "application/lost+xml;charset=utf-8",
                body containing
                    xmlMessage containing
                        version indicating value "1.0",
                        element "listServices" inNamespace "urn:ietf:params:xml:ns:lost1"
                    ;
                ;
            ;
        }
        then {
            the IUT entity sends a httpResponse containing
                Status_Code indicating value "200 OK",
                version indicating value "1.0",
                Content_type indicating value "application/lost+xml;charset=utf-8",
                body containing
                    xmlMessage containing
                        version indicating value "1.0",
                        element "listServicesResponse" inNamespace "urn:ietf:params:xml:ns:lost1" containing
                            element "serviceList" indicating value "urn:service:sos.fire urn:service:sos.police",
                            element "path" containing
                              element via containing attribute "source";
                            ;
                        ;
                    ;
                ;
            ;
        }
    }
}  //End of TP_ECRF_HTTP_POST_BV_12

Test Purpose {
TP Id TP_ECRF_HTTP_POST_BV_13
Test objective 
    "IUT successfully responds with configured service types for a ListServicesByLocation request without service element" 
Reference 
    "ETSI TS 103 479 [1], clause XXXX",
    "Next Generation 112 LTD [2], clause 4.4",
    "RFC5222 [5]"
Config Id CFG_ECRF_01
PICS Selection L_LST_GEO1
Initial conditions with {
    the IUT entity havingServiceBoundaryFor the E_POLICE_SERVICE_BOUNDARY containing
        serviceMappingFor E_POLICE_SERVICE_URN containing
            URI indicating value E_POLICE_SIP_URI;
    ;
    and the IUT entity havingServiceBoundaryFor the V_FIRE_SERVICE_BOUNDARY containing
        serviceMappingFor V_FIRE_SERVICE_URN containing
            URI indicating value V_FIRE_SIP_URI;
    ;
}
Expected behaviour
    ensure that {
        when {
            the IUT entity receives a POST containing
                Uri indicating value "/service",
                Host,
                not Accept,
                Content_type indicating value "application/lost+xml;charset=utf-8",
                body containing
                    xmlMessage containing
                        version indicating value "1.0",
                        element "listServicesByLocation" inNamespace "urn:ietf:params:xml:ns:lost1" containing
                             element "location" containing
                                attribute "profile" indicating value "geodetic-2d",
                                attribute "id" indicating value LOCATION_ID,
                                element "Point" inNamespace "http://www.opengis.net/gml" containing
                                    attribute "srsName" indicating value "urn:ogc:def:crs:EPSG::4326",
                                    element "pos" indicating value POINT_IN_E_POLICE_SERVICE_BOUNDARY;
                           ;
                        ;
                    ;
                ;
            ;
        }
        then {
            the IUT entity sends a httpResponse containing
                Status_Code indicating value "200 OK",
                version indicating value "1.0",
                Content_type indicating value "application/lost+xml;charset=utf-8",
                body containing
                    xmlMessage containing
                        version indicating value "1.0",
                        element "listServicesByLocationResponse" inNamespace "urn:ietf:params:xml:ns:lost1" containing
                            element "serviceList" indicating value "urn:service:sos.police",
                            element "path" containing
                              element via containing attribute "source";
                            ;,
                            element "locationUsed" containing
                              attribute "id" indicating value LOCATION_ID;
                        ;
                    ;
                ;
            ;
        }
    }
}  //End of TP_ECRF_HTTP_POST_BV_13
}
 No newline at end of file