Commit c9da9a45 authored by Michael Proestler's avatar Michael Proestler
Browse files

Add TC_ESRP_TARGET_SIP_REGISTER_BV_01

Add PSAP Profile, Interface Profile, Mocks
parent 3d21a3d8
Loading
Loading
Loading
Loading
+41 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">

<!-- This program is free software; you can redistribute it and/or      -->
<!-- modify it under the terms of the GNU General Public License as     -->
<!-- published by the Free Software Foundation; either version 2 of the -->
<!-- License, or (at your option) any later version.                    -->
<!--                                                                    -->
<!-- This program is distributed in the hope that it will be useful,    -->
<!-- but WITHOUT ANY WARRANTY; without even the implied warranty of     -->
<!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the      -->
<!-- GNU General Public License for more details.                       -->
<!--                                                                    -->
<!-- You should have received a copy of the GNU General Public License  -->
<!-- along with this program; if not, write to the                      -->
<!-- Free Software Foundation, Inc.,                                    -->
<!-- 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA             -->
<!--                                                                    -->
<!--                 Sipp default 'uac' scenario.                       -->
<!--                                                                    -->

<scenario name="Basic Sipstone UAC">
  <!-- In client mode (sipp placing calls), the Call-ID MUST be         -->
  <!-- generated by sipp. To do so, use [call_id] keyword.                -->
  
  <recv request="REGISTER" crlf="true">
  </recv>

  <send>
    <![CDATA[
      SIP/2.0 200 OK
      [last_Via:]
      [last_From:]
      [last_To:];tag=[pid]SIPpTag01[call_number]
      [last_Call-ID:]
      [last_CSeq:]
      Contact: <sip:[local_ip]:[local_port];transport=[transport]>
    ]]>
  </send>
</scenario>
+6 −0
Original line number Diff line number Diff line
@@ -31,6 +31,12 @@ module AtsESRP_Pics {
  */
  modulepar boolean PICS_ESRP_FIXED_TARGET_SUPPORT := true

  /**
  * @desc Does the IUT support SIP Registrations ?
  */
  modulepar boolean PICS_ESRP_TARGET_SIP_REGISTER_SUPPORT := true


  /**
   * @desc HTTP post URI for LIS protocol
   */
+54 −1
Original line number Diff line number Diff line
@@ -403,6 +403,59 @@ module AtsESRP_TestCases {

    } // End of testcase TC_ESRP_FIXED_TARGET_SIP_INVITE_BV_01

    /**
     * @desc "IUT successfully forwards an incoming SIP INVITE to a fixed target"
     */
    testcase TC_ESRP_TARGET_SIP_REGISTER_BV_01() runs on HttpImsComponent system TestAdapter {             
        // Local variables                        
        var ImsComponent v_psap;
        
        var CSeq v_cSeq_s := {
          fieldName := CSEQ_E,
          seqNumber := 0,
          method := "REGISTER"
        };
        
        // Test control
        f_check_statements({
          { "PICS_ESRP_TARGET_SIP_REGISTER_SUPPORT", PICS_ESRP_TARGET_SIP_REGISTER_SUPPORT }
        })
        
        f_cf_07_up(v_psap);

        f_incCSeq(v_cSeq_s);
        v_psap.start(f_TC_ESRP_TARGET_SIP_REGISTER_BV_01_REGISTER(v_cSeq_s));
        f_serverSyncNClientsAndStop(1, {c_prDone, c_tbDone, c_poDone});

        f_cf_07_down(v_psap);
    } // End of testcase TC_ESRP_TARGET_SIP_REGISTER_BV_01

    group f_TC_ESRP_TARGET_SIP_REGISTER_BV_01 {
      function f_TC_ESRP_TARGET_SIP_REGISTER_BV_01_REGISTER(
                                                                in CSeq p_cSeq_s
                                                                ) runs on ImsComponent {              
          // Local Variables
          var template REGISTER_Request p_register;

          // Preamble                                                            
          // Test component configuration                      
          f_init_userprofile(c_userProfile_ESINetPSAP);        
          f_init_interfaceprofile(c_interfaceProfile_SUT_ESRP);
        
          // Test control                        
          f_IMS_preamble_woRegistration(p_cSeq_s);

          f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);

          // Test Body           
          f_Registration(p_cSeq_s, p_register, false);          
          f_selfOrClientSyncAndVerdictTestBody(c_tbDone, e_success);

          // Postamble        
          f_clientSyncAndVerdictPostamble(c_poDone, e_success);
        }
    }

    group Common {
       //
       function f_TC_ESRP_SIP_INVITE_Upstream(
+23 −0
Original line number Diff line number Diff line
@@ -151,6 +151,16 @@ module LibNg112_Functions {
        map(p_downstream:SIPP, system:SIPP);                
      } // End of function f_cf_06_up

      function f_cf_07_up(                                                    
                          out ImsComponent p_psap
                          ) runs on HttpImsComponent {        
        p_psap := ImsComponent.create("Psap") alive;
                
        connect(p_psap:syncPort, self:syncPort);
                
        map(p_psap:SIPP, system:SIPP);                
      } // End of function f_cf_07_up

    } // End of group preambles
    
    group postambles {
@@ -286,6 +296,19 @@ module LibNg112_Functions {
        deactivate;
      } // End of function f_cf_06_down

      function f_cf_07_down(                                                  
                            inout ImsComponent p_psap
                            ) runs on HttpImsComponent {
                        
        disconnect(p_psap:syncPort, self:syncPort);
                        
        unmap(p_psap:SIPP, system:SIPP);       
                        
        p_psap.done;
        
        deactivate;
      } // End of function f_cf_06_down

      /**
       * @desc Default handling cf01 de-initialisation.
       */
+19 −0
Original line number Diff line number Diff line
@@ -532,6 +532,21 @@ module LibNg112_Pixits {
      modulepar charstring  PX_SUT_ECRF_SIP_HOME_DOMAIN := "esinet.io";
    }

    group SUT_ESRP {

      /** @desc charstring for SUT - LIS IP address to exchange SIP messages
       */
      modulepar charstring  PX_SUT_ESRP_SIP_IPADDR := "172.31.10.8";

      /** @desc	integer for SUT - LIS port number to exchange SIP messages
       */
      modulepar integer	  PX_SUT_ESRP_SIP_PORT := 5060;
	
      /** @desc	charstring for SUT/LIS domain
       */
      modulepar charstring  PX_SUT_ESRP_SIP_HOME_DOMAIN := "esinet.io";
    }
    
  } // End og grup sut

  group ts_ue1 {
@@ -559,6 +574,10 @@ module LibNg112_Pixits {
    modulepar charstring PX_ESINET_TS_SUBSCRIBER_HOME_DOMAIN    := "esinet.io"
    modulepar charstring PX_ESINET_TS_SUBSCRIBER_PUBLIC_USER    := "subscriber"

    modulepar charstring PX_ESINET_SUT_PRIVAT_USERNAME          := "psap"
    modulepar charstring PX_ESINET_SUT_PRIVAT_PASSWD           := "secret"
    modulepar charstring PX_ESINET_SUT_REGISTRAR               := "registrar.esinet.io"
    
    modulepar charstring PX_ESINET_SUT_SERVICE                  := "service";
    modulepar charstring PX_ESINET_SUT_HOME_DOMAIN              := "esinet.io";
    modulepar charstring PX_ESINET_SUT_IPADDR                   := "172.0.0.1";
Loading