Commit a36aacc6 authored by garciay's avatar garciay
Browse files

Validate TC_ECRF_HTTP_POST_BV_05

parent c5d965a0
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -3,12 +3,12 @@

LibCommon_Time.PX_TAC := 30.0

#LibItsHttp_Pics.PICS_HEADER_HOST := "e4iutdpic5.execute-api.eu-central-1.amazonaws.com" # Used for LIS
LibItsHttp_Pics.PICS_HEADER_HOST := "6fsrcxrqm1.execute-api.eu-central-1.amazonaws.com" # Used for ECRF
#LibItsHttp_Pics.PICS_HEADER_HOST := "lis.gridgears.io" # Used for LIS
LibItsHttp_Pics.PICS_HEADER_HOST := "ecrf.gridgears.io" # Used for ECRF
#LibItsHttp_Pics.PICS_HEADER_HOST := "ptsv2.com"

LibNg112_Pics.PICS_LIS_URI := "/Prod";
LibNg112_Pics.PICS_ECRF_URI := "/Prod";
LibNg112_Pics.PICS_LIS_URI := "/api";
LibNg112_Pics.PICS_ECRF_URI := "/api";

#LibItsHttp_Pics.PICS_HEADER_CONTENT_TYPE := "application/held+xml;charset=utf-8";
LibItsHttp_Pics.PICS_HEADER_CONTENT_TYPE := "application/lost+xml;charset=utf-8";
@@ -41,9 +41,9 @@ LogEventTypes:= Yes
# In this section you can specify parameters that are passed to Test Ports.

# LIS
#system.httpPort.params := "HTTP(codecs=lost:lost_codec;held:held_codec)/TCP(debug=1,server=e4iutdpic5.execute-api.eu-central-1.amazonaws.com,use_ssl=1)"
#system.httpPort.params := "HTTP(codecs=lost:lost_codec;held:held_codec)/TCP(debug=1,server=lis.gridgears.io,use_ssl=1)"
# ECRF
system.httpPort.params := "HTTP(codecs=lost:lost_codec;held:held_codec)/TCP(debug=1,server=6fsrcxrqm1.execute-api.eu-central-1.amazonaws.com,use_ssl=1)"
system.httpPort.params := "HTTP(codecs=lost:lost_codec;held:held_codec)/TCP(debug=1,server=ecrf.gridgears.io,use_ssl=1)"
# Test
#system.httpPort.params := "HTTP(codecs=lost:lost_codec;held:held_codec)/TCP(debug=1,server=ptsv2.com,port=80,use_ssl=0)"

@@ -84,8 +84,8 @@ system.httpPort.params := "HTTP(codecs=lost:lost_codec;held:held_codec)/TCP(debu
#AtsNg112_TestCases.TC_ECRF_HTTP_POST_BV_01
#AtsNg112_TestCases.TC_ECRF_HTTP_POST_BV_02
#AtsNg112_TestCases.TC_ECRF_HTTP_POST_BV_03
AtsNg112_TestCases.TC_ECRF_HTTP_POST_BV_04
#AtsNg112_TestCases.TC_ECRF_HTTP_POST_BV_05
#AtsNg112_TestCases.TC_ECRF_HTTP_POST_BV_04
AtsNg112_TestCases.TC_ECRF_HTTP_POST_BV_05

[GROUPS]
# In this section you can specify groups of hosts. These groups can be used inside the
+2 −41
Original line number Diff line number Diff line
https://github.com/eclipse/titan.core.git
https://github.com/eclipse/titan.TestPorts.Common_Components.Abstract_Socket.git
https://github.com/eclipse/titan.TestPorts.HTTPmsg.git
https://github.com/eclipse/titan.TestPorts.LANL2asp.git
https://github.com/eclipse/titan.TestPorts.PCAPasp.git
https://github.com/eclipse/titan.TestPorts.PIPEasp.git
https://github.com/eclipse/titan.TestPorts.SCTPasp.git
https://github.com/eclipse/titan.TestPorts.SIPmsg.git
https://github.com/eclipse/titan.TestPorts.SQLasp.git
https://github.com/eclipse/titan.TestPorts.TCPasp.git
https://github.com/eclipse/titan.TestPorts.TELNETasp.git
https://github.com/eclipse/titan.TestPorts.UDPasp.git
@@ -18,64 +16,27 @@ https://github.com/eclipse/titan.ProtocolModules.DNS.git
https://github.com/eclipse/titan.ProtocolModules.ICMP.git
https://github.com/eclipse/titan.ProtocolModules.ICMPv6.git
https://github.com/eclipse/titan.ProtocolModules.IP.git
https://github.com/eclipse/titan.ProtocolModules.RTP.git
https://github.com/eclipse/titan.ProtocolModules.RTSP.git
https://github.com/eclipse/titan.ProtocolModules.SMPP.git
https://github.com/eclipse/titan.ProtocolModules.SMTP.git
https://github.com/eclipse/titan.ProtocolModules.SNMP.git
https://github.com/eclipse/titan.ProtocolModules.TCP.git
https://github.com/eclipse/titan.ProtocolModules.UDP.git
https://github.com/eclipse/titan.ProtocolModules.XMPP.git
https://github.com/eclipse/titan.EclipsePlug-ins.git
https://github.com/eclipse/titan.misc.git
https://github.com/eclipse/titan.TestPorts.LDAPasp_RFC4511.git
https://github.com/eclipse/titan.TestPorts.LDAPmsg.git
https://github.com/eclipse/titan.TestPorts.Common_Components.Socket-API.git
https://github.com/eclipse/titan.TestPorts.SSHCLIENTasp.git
https://github.com/eclipse/titan.TestPorts.STDINOUTmsg.git
https://github.com/eclipse/titan.TestPorts.SUNRPCasp.git
https://github.com/eclipse/titan.TestPorts.UNIX_DOMAIN_SOCKETasp.git
https://github.com/eclipse/titan.TestPorts.IPL4asp.git
https://github.com/eclipse/titan.ProtocolModules.FrameRelay.git
https://github.com/eclipse/titan.ProtocolModules.H248_v2.git
https://github.com/eclipse/titan.ProtocolModules.IMAP_4rev1.git
https://github.com/eclipse/titan.ProtocolModules.ICAP.git
https://github.com/eclipse/titan.ProtocolModules.IKEv2.git
https://github.com/eclipse/titan.ProtocolModules.IPsec.git
https://github.com/eclipse/titan.ProtocolModules.IUA.git
https://github.com/eclipse/titan.ProtocolModules.JSON_v07_2006.git
https://github.com/eclipse/titan.ProtocolModules.L2TP.git
https://github.com/eclipse/titan.ProtocolModules.M3UA.git
https://github.com/eclipse/titan.ProtocolModules.MIME.git
https://github.com/eclipse/titan.ProtocolModules.MSRP.git
https://github.com/eclipse/titan.ProtocolModules.PPP.git
https://github.com/eclipse/titan.ProtocolModules.ProtoBuff.git
https://github.com/eclipse/titan.ProtocolModules.RADIUS_ProtocolModule_Generator.git
https://github.com/eclipse/titan.ProtocolModules.SRTP.git
https://github.com/eclipse/titan.ProtocolModules.WebSocket.git
https://github.com/eclipse/titan.ProtocolModules.HTTP2.0.git
https://github.com/eclipse/titan.Libraries.TCCUsefulFunctions.git
https://git.eclipse.org/r/titan/titan.ApplicationLibraries.CoAP
https://git.eclipse.org/r/titan/titan.ApplicationLibraries.MQTT
https://git.eclipse.org/r/titan/titan.ProtocolModules.CoAP.git
https://git.eclipse.org/r/titan/titan.ProtocolModules.DSS1_ETSI.git
https://git.eclipse.org/r/titan/titan.ProtocolModules.DUA.git
https://git.eclipse.org/r/titan/titan.ProtocolModules.EAP.git
https://git.eclipse.org/r/titan/titan.ProtocolModules.GRE.git
https://git.eclipse.org/r/titan/titan.ProtocolModules.M2PA.git
https://git.eclipse.org/r/titan/titan.ProtocolModules.M2UA.git
https://git.eclipse.org/r/titan/titan.ProtocolModules.MobileL3_v13.4.0.git
https://git.eclipse.org/r/titan/titan.ProtocolModules.MongoDB.git
https://git.eclipse.org/r/titan/titan.ProtocolModules.MQTT.git
https://git.eclipse.org/r/titan/titan.ProtocolModules.NDP.git
https://git.eclipse.org/r/titan/titan.ProtocolModules.NTAF.git
https://git.eclipse.org/r/titan/titan.ProtocolModules.ROSE.git
https://git.eclipse.org/r/titan/titan.ProtocolModules.SCTP.git
https://git.eclipse.org/r/titan/titan.ProtocolModules.SDP.git
https://git.eclipse.org/r/titan/titan.ProtocolModules.SNDCP_v7.0.0.git
https://git.eclipse.org/r/titan/titan.ProtocolModules.STOMP.git
https://git.eclipse.org/r/titan/titan.ProtocolModules.STUN_RFC5389.git
https://git.eclipse.org/r/titan/titan.ProtocolModules.SUA.git
https://git.eclipse.org/r/titan/titan.ProtocolModules.TLS.git
https://git.eclipse.org/r/titan/titan.ProtocolModules.WTP.git
https://git.eclipse.org/r/titan/titan.TestPorts.GPIO.git
https://git.eclipse.org/r/titan/titan.TestPorts.MTP3asp.git
https://git.eclipse.org/r/titan/titan.TestPorts.Serial.git
+125 −122
Original line number Diff line number Diff line
@@ -1111,8 +1111,7 @@ module AtsNg112_TestCases {
                                                                                                                                      },
                                                                                 { /*m_notLost(encvalue_unichar(valueof(m_point(PX_LOST_NO_LOST, PX_SRS_NAME, "point1"))))*/ },
                                                                                                                                    PX_E_POLICE_SERVICE_URN,
                                                                                                                                    true,
                                                                                                                                    value_
                                                                                                                                    true
                                                                                                                                    )))
        )));
        f_selfOrClientSyncAndVerdictTestBody(c_prDone, e_success);
@@ -1157,13 +1156,13 @@ module AtsNg112_TestCases {
     * @remark PICS Selection PICS_HTTP_POST_REQUEST PICS_SERVICE_LOST
     * <pre>
     * Initial conditions with {
     *   the IUT entity havingServiceBoundaryFor the SERVICE_BOUNDARY_1 containing
     *     serviceMappingFor SERVICE_URN_1 containing
     *        URI indicating value SIP_URI_1;
     *   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 SERVICE_BOUNDARY_2 containing
     *     serviceMappingFor SERVICE_URN_2 containing
     *        URI indicating value SIP_URI_2;
     *   and the IUT entity havingServiceBoundaryFor the V_POLICE_SERVICE_BOUNDARY containing
     *     serviceMappingFor V_POLICE_SERVICE_URN containing
     *        URI indicating value V_POLICE_SIP_URI;
     *   ;
     * }
     * </pre>
@@ -1202,9 +1201,8 @@ module AtsNg112_TestCases {
                                                                                                                                                 )
                                                                                                                                      },
                                                                                 { /*m_notLost(encvalue_unichar(valueof(m_point(PX_LOST_NO_LOST, PX_SRS_NAME, "point1"))))*/ },
                                                                                                                                    PX_E_UNKNOWN_SERVICE_URN,
                                                                                                                                    true,
                                                                                                                                    value_
                                                                                                                                    PX_V_POLICE_SERVICE_URN,
                                                                                                                                    true
                                                                                                                                    )))
        )));
        f_selfOrClientSyncAndVerdictTestBody(c_prDone, e_success);
@@ -1295,8 +1293,7 @@ module AtsNg112_TestCases {
                                                                                                                                          },
                                                                                                                                        { },
                                                                                                                                        PX_E_FIRE_SERVICE_URN,
                                                                                                                                    true,
                                                                                                                                    value_
                                                                                                                                        true
                                                                                                                                        )))
                                                         )));
        f_selfOrClientSyncAndVerdictTestBody(c_prDone, e_success);
@@ -1382,8 +1379,7 @@ module AtsNg112_TestCases {
                                                                                                                                          },
                                                                                                                                        { },
                                                                                                                                        PX_E_POLICE_SERVICE_URN,
                                                                                                                                    true,
                                                                                                                                    value_
                                                                                                                                        true
                                                                                                                                        )))
                                                         )));
        f_selfOrClientSyncAndVerdictTestBody(c_prDone, e_success);
@@ -1415,7 +1411,7 @@ module AtsNg112_TestCases {
    } // End of testcase TC_ECRF_HTTP_POST_BV_04
    
    /**
     * @desc "unsupportedProfiles"
     * @desc "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",
@@ -1451,17 +1447,24 @@ module AtsNg112_TestCases {
        httpPort.send(
                      m_http_request(
                                     m_http_request_post(
                                                         PICS_LIS_URI,
                                                         PICS_ECRF_URI,
                                                         v_headers,
                                                         m_http_message_body_xml(m_body_xml_location_request(
                                                                                                             m_locationRequest(
                                                                                                                               { encvalue_unichar(valueof(m_device({ PX_DEVICE_URI_TEL }))) }
                                                                                                                               )
                                                                                                             )
                                                                                 )
                                                         )
                                                         m_http_message_body_xml(
                                                                                 m_body_xml_find_service_request(
                                                                                                                 m_find_service_request(
                                                                                                                                        {
                                                                                                                                          m_location(
                                                                                                                                                     PX_LOST_ID,
                                                                                                                                                     { m_extension_point(encvalue_unichar(valueof(m_point(PX_POINT_IN_E_POLICE_SERVICE_BOUNDARY, PX_SRS_NAME, "point2")))) },
                                                                                                                                                     "geodetic-2d" // TODO Use a Pixit
                                                                                                                                                     )
                      );
                                                                                                                                          },
                                                                                                                                        { },
                                                                                                                                        PX_E_POLICE_SERVICE_URN,
                                                                                                                                        true,
                                                                                                                                        value_
                                                                                                                                        )))
                                                         )));
        f_selfOrClientSyncAndVerdictTestBody(c_prDone, e_success);
        
        // Test body
+1970 −0

File added.

Preview size limit exceeded, changes collapsed.