Commit 3b12d7e9 authored by Andreas Liebig's avatar Andreas Liebig
Browse files

Adapt boundaries to ESTI location

parent 2787405c
Loading
Loading
Loading
Loading
+166 −25
Original line number Diff line number Diff line
@@ -46,54 +46,55 @@ Package NG112_ECRF {
//        SERVICE_BOUNDARY_1: "[
//          [
//            [
//              10.00,
//              50.00
//              43.61613168422215,
//              7.052139043807983
//            ],
//            [
//              15.00,
//              50.00
//              43.61613168422215,
//              7.054091691970825
//            ],
//            [
//              15.00,
//              55.00
//              43.6176463155033,
//              7.054091691970825
//            ],
//            [
//              10.00,
//              55.00
//              43.6176463155033,
//              7.052139043807983
//            ],
//            [
//              10.00,
//              50.00
//              43.61613168422215,
//              7.052139043807983
//            ]
//          ]
//        ]";
//        ]"; // (lat, lon))
//        SERVICE_BOUNDARY_1_POS_LIST: "43.61613168422215 7.052139043807983 43.61613168422215 7.054091691970825 43.6176463155033 7.054091691970825 43.6176463155033 7.052139043807983 43.61613168422215 7.052139043807983"
//        SERVICE_BOUNDARY_2: "[
//          [
//            [
//              20.00,
//              50.00
//              43.6201395485179,
//              7.04322338104248
//            ],
//            [
//              25.00,
//              50.00
//              43.6201395485179,
//              7.050046920776366
//            ],
//            [
//              25.00,
//              55.00
//              43.62383648877417,
//              7.050046920776366
//            ],
//            [
//              20.00,
//              55.00
//              43.62383648877417,
//              7.04322338104248
//            ],
//            [
//              20.00,
//              50.00
//              43.6201395485179,
//              7.04322338104248
//            ]
//          ]
//        ]";
//        POINT_IN_SERVICE_BOUNDARY_1: "12.00, 53.00"
//        CIRCLE_IN_SERVICE_BOUNDARY_2_POS: "22.00 52.00";
//        CIRCLE_IN_SERVICE_BOUNDARY_2_RADIUS: "1";
//        ]"; // (lat, lon)
//        POINT_IN_SERVICE_BOUNDARY_1: "43.616891, 7.053179"; // (lat, lon)
//        CIRCLE_IN_SERVICE_BOUNDARY_2_POS: "43.6219, 7.04648"; // (lat, lon)
//        CIRCLE_IN_SERVICE_BOUNDARY_2_RADIUS: "2";
//     }
        
//		Data {
@@ -315,4 +316,144 @@ Expected behaviour
        }
    }
}  //End of TP_ECRF_HTTP_POST_BV_03

Test Purpose {
TP Id TP_ECRF_HTTP_POST_BV_04
Test objective 
    "IUT successfully responds with an error response for an unrecognized location profile" 
Reference 
    "ETSI TS 103 479 Vm.t.e (yyyy-mm) Clause XXX EMERGENCY CALL ROUTING FUNCTION (ECRF)",
    "Next Generation 112 Long Term Definition http://www.eena.org/uploads/gallery/files/pdf/2013-03-15-eena_ng_longtermdefinitionupdated.pdf Clause 4.4",
    "https://tools.ietf.org/html/rfc5222"
//Config Id CFG_ECRF_01
PICS Selection PICS_HTTP_POST_REQUEST PICS_SERVICE_LOST
Initial conditions with {
    the IUT entity havingServiceBoundaryFor the SERVICE_BOUNDARY_1 containing
        serviceMappingFor SERVICE_URN_1 containing
        	URI indicating value SIP_URI_1;
    ;
    and the IUT entity havingServiceBoundaryFor the SERVICE_BOUNDARY_2 containing
        serviceMappingFor SERVICE_URN_2 containing
        	URI indicating value SIP_URI_2;
    ;
}
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 "findService" inNamespace "urn:ietf:params:xml:ns:lost1" containing
                            attribute "profile" indicating value "someUnknownProfile",
                            element "location" containing
                                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_SERVICE_BOUNDARY_1;
                            ,
                            element "service" indicating value SERVICE_URN_2;
                        ;
                    ;
                ;
            ;
        }
        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 "errors" inNamespace "urn:ietf:params:xml:ns:lost1" containing
                            element "locationProfileUnrecognized"
                        ;
                    ;
                ;
            ;
        }
    }
}//End of TP_ECRF_HTTP_POST_BV_04

Test Purpose {
TP Id TP_ECRF_HTTP_POST_BV_05
Test objective 
    "IUT successfully responds with service boundary by value if requested" 
Reference 
    "ETSI TS 103 479 Vm.t.e (yyyy-mm) Clause XXX EMERGENCY CALL ROUTING FUNCTION (ECRF)",
    "Next Generation 112 Long Term Definition http://www.eena.org/uploads/gallery/files/pdf/2013-03-15-eena_ng_longtermdefinitionupdated.pdf Clause 4.4",
    "https://tools.ietf.org/html/rfc5222"
//Config Id CFG_ECRF_01
PICS Selection PICS_HTTP_POST_REQUEST PICS_SERVICE_LOST
Initial conditions with {
    the IUT entity havingServiceBoundaryFor the SERVICE_BOUNDARY_1 containing
        serviceMappingFor SERVICE_URN_1 containing
        	URI indicating value SIP_URI_1;
    ;
}
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 "findService" inNamespace "urn:ietf:params:xml:ns:lost1" containing
                            attribute "serviceBoundary" indicating value "value"
                            element "location" containing
                                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_SERVICE_BOUNDARY_1;
                            ,
                            element "service" indicating value SERVICE_URN_2;
                        ;
                    ;
                ;
            ;
        }
        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 "findServiceResponse" inNamespace "urn:ietf:params:xml:ns:lost1" containing
                            element "mapping" containing
                                attribute "source",
                                attribute "sourceId",
                                attribute "lastUpdated",
                                attribute "expires",
                                element "service" indicating value SERVICE_URN_2,
                                element "<serviceBoundary" containing
                                	attribute "profile" indicating value "geodetic-2d",
                                	element "Polygon" inNamespace "http://www.opengis.net/gml" containing
                                	    attribute "srsName" indicating value "urn:ogc:def::crs:EPSG::4326",
                                	    element "exterior" containing
                                	        element "LinearRing" containing
                                	    	      element "posList" indicating value SERVICE_BOUNDARY_1_POS_LIST
                                	    	;
                                	    ;
                                	;
                                ;,
                                element "uri" indicating value SIP_URI_2;
                            ,
                            element "locationUsed"
                        ;
                    ;
                ;
            ;
        }
    }
}  //End of TP_ECRF_HTTP_POST_BV_05

}
 No newline at end of file