Commit 556c41ee authored by Michael Proestler's avatar Michael Proestler
Browse files

Add TC_ESRP_TLS_SIP_BI_01

parent b49ca2e3
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -66,6 +66,11 @@ module AtsESRP_Pics {
   */
   */
  modulepar boolean PICS_ESRP_SIP_SERVICE_STATE := true
  modulepar boolean PICS_ESRP_SIP_SERVICE_STATE := true


  /**
  * @desc Does the IUT support mutual TLS ?
  */
  modulepar boolean PICS_ESRP_TLS_AUTHENTICATION := true

  /**
  /**
   * @desc HTTP post URI for LIS protocol
   * @desc HTTP post URI for LIS protocol
   */
   */
+48 −0
Original line number Original line Diff line number Diff line
@@ -1291,6 +1291,54 @@ module AtsESRP_TestCases {
    } // End of testcase TC_ESRP_SIP_BV_06
    } // End of testcase TC_ESRP_SIP_BV_06
  }
  }


  group Security {
    testcase TC_ESRP_TLS_SIP_BI_01() runs on HttpSipComponent system TestAdapter {
        // Local Variables
        var CSeq v_cSeq_s := {
          fieldName := CSEQ_E,
          seqNumber := 0,
          method := "SUBSCRIBE"
        };

        var SipUrl v_subscription_target :=  f_initSipUrl(c_serviceProfile_SUBSCRIPTION_SERVICE);

        // Test control        
        f_check_statements({
          { name := "PICS_ESRP_TLS_AUTHENTICATION", val := PICS_ESRP_TLS_AUTHENTICATION }        
        })

        // Preamble
        f_cf_01_up();                          
        f_init_userprofile(c_userProfile_ESINetSubscriber);        
        f_init_interfaceprofile(c_interfaceProfile_SUT_ECRF);
        
        // Preamble         
        LibIms_Steps.f_setHeadersSUBSCRIBE(v_cSeq_s, v_subscription_target, f_initSipUrl(c_serviceProfile_SUBSCRIBER));                                
        
        // Test Body
        template SUBSCRIBE_Request request := m_SUBSCRIBE_ServiceState_Request_Event(
          v_subscription_target, vc_callId ,v_cSeq_s, vc_from, vc_to, vc_via, omit
        );

        @try {
          f_SendSUBSCRIBE(request);

          log("The IUT should reject the connection."); 
          // Should not get here since connection should have been refused
          f_selfOrClientSyncAndVerdictTestBody(c_tbDone, e_error);
        
        } @catch(err) {
          if (match(err, pattern "*There is no connection alive*")) {
              f_selfOrClientSyncAndVerdictTestBody(c_tbDone, e_success);     
          }     
        }
            
        // Postamble
        f_cf_01_down();
    }    

  }

  group Headers {
  group Headers {
    /**
    /**
     * @desc "IUT successfully forwards an incoming SIP INVITE to a fixed target"
     * @desc "IUT successfully forwards an incoming SIP INVITE to a fixed target"