Commit 2e3b70de authored by Andreas Liebig's avatar Andreas Liebig
Browse files

add testcase for unmapped location type

parent 35350165
Loading
Loading
Loading
Loading
+637 −579
Original line number Diff line number Diff line
@@ -476,6 +476,64 @@ Expected behaviour
    }
} //End of TP_LIS_HTTP_POST_BV_06

Test Purpose {
TP Id TP_LIS_HTTP_POST_BV_07
Test objective 
    "IUT successfully responds with an error response when it receives a HTTP POST location request with an unknown location type" 
Reference 
    "ETSI TS 103 479 Vm.t.e (yyyy-mm) Clause 5.5 Location Information Server (LIS)",
    "Next Generation 112 Long Term Definition http://www.eena.org/uploads/gallery/files/pdf/2013-03-15-eena_ng_longtermdefinitionupdated.pdf Clause 4.10",
    "https://tools.ietf.org/html/rfc5985 - HTTP-Enabled Location Delivery (HELD)"
Config Id CFG_LIS_01
PICS Selection PICS_HTTP_POST_REQUEST and PICS_LOCATION_HELD
Initial conditions with {
    the IUT entity havingLocationMappingFor the DEVICE_NUMBER containing
        "point" containing 
            "position" indicating value POINT_POS
        ;
    ;
}
Expected behaviour
    ensure that {
        when {
            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 DEVICE_NUMBER
                            ;
                        ,
                        element "locationType" indicating value "civic" containing
                                attribute "exact" indicating value "true"
                        ;
                       ; 
                    ;
                ;
            ;
        }
        then {
            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 "error" inNamespace "urn:ietf:params:xml:ns:geopriv:held" containing
                            attribute "code" indicating value "cannotProvideLiType"
                        ;
                    ;
                ;
            ;
      	}
	}
} //End of TP_LIS_HTTP_POST_BV_07

Test Purpose {
TP Id TP_LIS_HTTP_GET_BV_01