Loading test_purposes/lis.tplan2 +103 −50 Original line number Diff line number Diff line Loading @@ -18,50 +18,103 @@ */ Package tplan_lis { Package NG112_LIS { Domain { pics: - pic_lis_basic - pic_lis_advanced; - PICS_HTTP_POST_REQUEST - PICS_LOCATION_HELD ; entities: - IUT; - IUT - MTC ; events: - receives - sends - havingLocationMappingFor; - receives //for packets coming from the network to the IUT - sends //for packets sent by the IUT to the network - havingLocationMappingFor //IUT is provisioned with the relevant location data - isRequestedToSend //an upper layer requests the IUT to send a packet - generates //for internal event generation ; } // Data { // type PDU; // } // Configuration { // Interface Type defaultGT accepts PDU; // Component Type NG112Comp with gate g of type defaultGT; // Test Configuration CFG_ESRP_01 // containing // Tester component BCF of type NG112Comp // Tester component LIS of type NG112Comp // Tester component ECRF of type NG112Comp // SUT component IUT of type NG112Comp // connection between BCF.g and IUT.g // connection between LIS.g and IUT.g // connection between ECRF.g and IUT.g; // } Test Purpose { TP Id TP_LIS_HELD_LocByValue_BV_001 TP Id TP_LIS_HTTP_POST_BV_01 Test objective "HELD request with locationType geodetic returns the existing location by value." "IUT successfully processes all mandatory HTTP headers when it receives a HTTP POST request" Reference "http://www.eena.org/uploads/gallery/files/pdf/2013-03-15-eena_ng_longtermdefinitionupdated.pdf, clause 4.10", "https://tools.ietf.org/html/rfc7840" // Config Id "my_cfg" FIXME PICS Selection pic_lis_basic "ETSI TS 103 479 Vm.t.e (yyyy-mm) Clause 5.5 Location Information Server (LIS)", "https://tools.ietf.org/html/rfc5985" //Config Id CFG_LIS_01 PICS Selection PICS_HTTP_POST_REQUEST PICS_LOCATION_HELD Initial conditions with { the IUT entity havingLocationMappingFor the "identifier" the IUT entity havingLocationMappingFor the "deviceNumber" containing "point" indicating value "-34.407 150.88001" ; } Expected behaviour ensure that { when { the IUT entity receives a held_request containing uri indicating value "identifier", locationType indicating value "geodetic"; the IUT entity receives a POST containing Uri indicating value "/location", Host, "not" Accept, Content_type indicating value "application/held+xml;charset=utf-8", body containing xmlMessage containing version indicating value "1.0", element "locationRequest" inNamespace "urn:ietf:params:xml:ns:geopriv:held" containing element "device" inNamespace "urn:ietf:params:xml:ns:geopriv:held:id" containing element "uri" inNamespace "urn:ietf:params:xml:ns:geopriv:held:id" indicating value "deviceNumber" ; ; ; ; ; } then { the IUT entity sends a held_response containing response_code indicating value 200, response_body containing locationResponse containing "location-info" indicating value "mappedLocation"; the IUT entity sends a httpResponse containing Status_Code indicating value "200 OK", version indicating value "1.0", Content_type indicating value "application/held+xml;charset=utf-8", body containing xmlMessage containing version indicating value "1.0", element "locationResponse" inNamespace "urn:ietf:params:xml:ns:geopriv:held" containing element "presence" inNamespace "urn:ietf:params:xml:ns:pidf" containing attribute "entity" indicating value valid "pres:" uri, element "tuple" containing attribute "id" indicating value not empty, element "status" containing element "geopriv" inNamespace "urn:ietf:params:xml:ns:pidf:geopriv10" containing element "location-info" containing element "Point" inNamespace "http://www.opengis.net/gml" containing attribute "srsName" indicating value "urn:ogc:def:crs:EPSG::4326", element "pos" indicating value "-34.407 150.88001" ; ; ; ; ; ; ; ; ; ; } Loading Loading
test_purposes/lis.tplan2 +103 −50 Original line number Diff line number Diff line Loading @@ -18,50 +18,103 @@ */ Package tplan_lis { Package NG112_LIS { Domain { pics: - pic_lis_basic - pic_lis_advanced; - PICS_HTTP_POST_REQUEST - PICS_LOCATION_HELD ; entities: - IUT; - IUT - MTC ; events: - receives - sends - havingLocationMappingFor; - receives //for packets coming from the network to the IUT - sends //for packets sent by the IUT to the network - havingLocationMappingFor //IUT is provisioned with the relevant location data - isRequestedToSend //an upper layer requests the IUT to send a packet - generates //for internal event generation ; } // Data { // type PDU; // } // Configuration { // Interface Type defaultGT accepts PDU; // Component Type NG112Comp with gate g of type defaultGT; // Test Configuration CFG_ESRP_01 // containing // Tester component BCF of type NG112Comp // Tester component LIS of type NG112Comp // Tester component ECRF of type NG112Comp // SUT component IUT of type NG112Comp // connection between BCF.g and IUT.g // connection between LIS.g and IUT.g // connection between ECRF.g and IUT.g; // } Test Purpose { TP Id TP_LIS_HELD_LocByValue_BV_001 TP Id TP_LIS_HTTP_POST_BV_01 Test objective "HELD request with locationType geodetic returns the existing location by value." "IUT successfully processes all mandatory HTTP headers when it receives a HTTP POST request" Reference "http://www.eena.org/uploads/gallery/files/pdf/2013-03-15-eena_ng_longtermdefinitionupdated.pdf, clause 4.10", "https://tools.ietf.org/html/rfc7840" // Config Id "my_cfg" FIXME PICS Selection pic_lis_basic "ETSI TS 103 479 Vm.t.e (yyyy-mm) Clause 5.5 Location Information Server (LIS)", "https://tools.ietf.org/html/rfc5985" //Config Id CFG_LIS_01 PICS Selection PICS_HTTP_POST_REQUEST PICS_LOCATION_HELD Initial conditions with { the IUT entity havingLocationMappingFor the "identifier" the IUT entity havingLocationMappingFor the "deviceNumber" containing "point" indicating value "-34.407 150.88001" ; } Expected behaviour ensure that { when { the IUT entity receives a held_request containing uri indicating value "identifier", locationType indicating value "geodetic"; the IUT entity receives a POST containing Uri indicating value "/location", Host, "not" Accept, Content_type indicating value "application/held+xml;charset=utf-8", body containing xmlMessage containing version indicating value "1.0", element "locationRequest" inNamespace "urn:ietf:params:xml:ns:geopriv:held" containing element "device" inNamespace "urn:ietf:params:xml:ns:geopriv:held:id" containing element "uri" inNamespace "urn:ietf:params:xml:ns:geopriv:held:id" indicating value "deviceNumber" ; ; ; ; ; } then { the IUT entity sends a held_response containing response_code indicating value 200, response_body containing locationResponse containing "location-info" indicating value "mappedLocation"; the IUT entity sends a httpResponse containing Status_Code indicating value "200 OK", version indicating value "1.0", Content_type indicating value "application/held+xml;charset=utf-8", body containing xmlMessage containing version indicating value "1.0", element "locationResponse" inNamespace "urn:ietf:params:xml:ns:geopriv:held" containing element "presence" inNamespace "urn:ietf:params:xml:ns:pidf" containing attribute "entity" indicating value valid "pres:" uri, element "tuple" containing attribute "id" indicating value not empty, element "status" containing element "geopriv" inNamespace "urn:ietf:params:xml:ns:pidf:geopriv10" containing element "location-info" containing element "Point" inNamespace "http://www.opengis.net/gml" containing attribute "srsName" indicating value "urn:ogc:def:crs:EPSG::4326", element "pos" indicating value "-34.407 150.88001" ; ; ; ; ; ; ; ; ; ; } Loading