Commit a705e9a3 authored by Andreas Liebig's avatar Andreas Liebig
Browse files

add ESRP target unreachable test purpose

parent 046ed713
Loading
Loading
Loading
Loading
+147 −0
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@ Package NG112_ESRP {
                - forwards //forwards the previously received message to the next hop
                - isConfiguredWith //IUT is configured to use the specified service
                - isReachableWith // the PSAP is reachable via the specified URI
                - isNotReachable // the PSAP is not reachable
                - receivedInitialInviteRequestAndSentLostQueryToEcrf // [ref esrp.txt:RECEIVED_INITITAL_INVITE_AND_SENT_LOST_REQUEST]
                - receivedInitialInviteRequestWithoutLocationAndSentHeldRequestToLisFor // [ref esrp.txt:RECEIVED_INITITAL_INVITE_WITHOUT_LOCATION_AND_SENT_HELD_REQUEST_FOR]
                - receivedInitialInviteRequestWithLocationReferenceAndSentGetRequestToLisFor // [ref esrp.txt:RECEIVED_INITITAL_INVITE_WITH_LOCATIONREFERENCE_AND_SENT_GET_REQUEST_FOR]
@@ -47,6 +48,7 @@ Package NG112_ESRP {

//			Const {
//        DEVICE_NUMBER: "+33123456789";
//        PIDF [ref esrp.txt:PIDF];
//        SDP_AND_PIDF_MULTIPART [ref esrp.txt:SDP_AND_PIDF_MULTIPART];
//        SERVICE_URN_1: "urn:service:sos.police";
//        SIP_URI_1: "sip:police@city.com";
@@ -288,4 +290,149 @@ Expected behaviour
    }
}  //End of TP_ESRP_SIP_INVITE_BV_05

Test Purpose {
TP Id TP_ESRP_SIP_INVITE_BV_06
Test objective 
    "IUT successfully forwards an incoming SIP MESSAGE to the correct downstream element, based on the ECRF response" 
Reference 
    "Next Generation 112 Long Term Definition http://www.eena.org/uploads/gallery/files/pdf/2013-03-15-eena_ng_longtermdefinitionupdated.pdf Clause 4.3",
    "https://tools.ietf.org/html/rfc5222"
Config Id CFG_ESRP_01
PICS Selection PICS_SERVICE_ESRP
Initial conditions with {
    the IUT entity isConfiguredWith the ECRF
    and the PSAP entity isReachableWith the SIP_URI_1
    and the IUT entity receivedInitialInviteRequestAndSentLostQueryToEcrf
}
Expected behaviour
    ensure that {
        when {
            the IUT entity receives a TCP SIP_MESSAGE containing
            	Request_URI indicating value SERVICE_URN_1,
                Content_Type indicating value "application/pidf+xml",
                body containing
                    PIDF
                ;
             ;
             and the IUT entity sends a POST containing
             Content_type indicating value "application/lost+xml;charset=utf-8",
                body containingreceivedInitialInviteRequestWithLocationReferenceAndSentGetRequestToLisFor
                    xmlMessage containing
                        version indicating value "1.0",
                        element "findService" inNamespace "urn:ietf:params:xml:ns:lost1" containing
                            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 LOCATION_1;
                            ,
                            element "service" indicating value SERVICE_URN_1;
                        ;
                    ;
                ;
             	; to the ECRF entity
             	and the IUT entity receives 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_1,
                                element "uri" indicating value SIP_URI_1;
                            ,
                            element "locationUsed"
                        ;
                    ;
                ;
              ; from the ECRF entity
        }
        then {
            the IUT entity forwards a SIP_MESSAGE containing
                Request_URI indicating value SERVICE_URN_1,
                Content_Type indicating value "application/pidf+xml",
                Route_Header indicating value SIP_URI_1
                body containing
                    PIDF
                ;
            ; to the PSAP entity
        }
    }
}  //End of TP_ESRP_SIP_INVITE_BV_06


Test Purpose {
TP Id TP_ESRP_SIP_INVITE_BV_07
Test objective 
    "IUT responds BUSY for an incoming SIP MESSAGE when downstream element is not reachable" 
Reference 
    "Next Generation 112 Long Term Definition http://www.eena.org/uploads/gallery/files/pdf/2013-03-15-eena_ng_longtermdefinitionupdated.pdf Clause 4.3",
    "https://tools.ietf.org/html/rfc5222"
Config Id CFG_ESRP_01
PICS Selection PICS_SERVICE_ESRP
Initial conditions with {
    the IUT entity isConfiguredWith the ECRF
    and the PSAP entity isNotReachable
    and the IUT entity receivedInitialInviteRequestAndSentLostQueryToEcrf
}
Expected behaviour
    ensure that {
        when {
            the IUT entity receives a TCP SIP_MESSAGE containing
            	Request_URI indicating value SERVICE_URN_1,
                Content_Type indicating value "application/pidf+xml",
                body containing
                    PIDF
                ;
             ;
             and the IUT entity sends a POST containing
             Content_type indicating value "application/lost+xml;charset=utf-8",
                body containingreceivedInitialInviteRequestWithLocationReferenceAndSentGetRequestToLisFor
                    xmlMessage containing
                        version indicating value "1.0",
                        element "findService" inNamespace "urn:ietf:params:xml:ns:lost1" containing
                            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 LOCATION_1;
                            ,
                            element "service" indicating value SERVICE_URN_1;
                        ;
                    ;
                ;
             	; to the ECRF entity
             	and the IUT entity receives 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_1,
                                element "uri" indicating value SIP_URI_1;
                            ,
                            element "locationUsed"
                        ;
                    ;
                ;
              ; from the ECRF entity
        }
        then {
            the IUT entity sends a SIP_RESPONSE containing
              Status_Code indicating value "486 BUSY HERE"
        }
    }
}  //End of TP_ESRP_SIP_INVITE_BV_07

}
 No newline at end of file
+25 −0
Original line number Diff line number Diff line
@@ -10,6 +10,31 @@ m=video 20002 RTP/AVP 31
a=rtpmap:31 H261/90000


*** PIDF
<?xml version="1.0" encoding="UTF-8"?>
    <presence xmlns="urn:ietf:params:xml:ns:pidf"
    entity="pres:3650n87934c@ls.example.com">
    <tuple id="b650sf789nd">
     <status>
      <geopriv xmlns="urn:ietf:params:xml:ns:pidf:geopriv10">
       <location-info>
        <Point xmlns="http://www.opengis.net/gml"
         srsName="urn:ogc:def:crs:EPSG::4326">
         <pos>12.00, 53.00</pos>
        </Point>
       </location-info>
       <usage-rules
        xmlns:gbp="urn:ietf:params:xml:ns:pidf:geopriv10:basicPolicy">
        <gbp:retention-expiry>2006-01-11T03:42:28+00:00
        </gbp:retention-expiry>
       </usage-rules>
       <method>Wiremap</method>
      </geopriv>
     </status>
     <timestamp>2006-01-10T03:42:28+00:00</timestamp>
    </tuple>
  </presence>

*** SDP_AND_PIDF_MULTIPART
 --boundary1
Content-Type: application/sdp