Commit 38008e95 authored by Bostjan Pintar's avatar Bostjan Pintar
Browse files

N5 starting point and Issues resolved

parent 516dd157
Loading
Loading
Loading
Loading
+367 −1
Original line number Diff line number Diff line
/*
Copyright (c) ETSI 20235
Copyright (c) ETSI 2025
This software is subject to copyrights owned by ETSI. Non-exclusive permission
is hereby granted, free of charge, to copy, reproduce and amend this file
under the following conditions: It is provided "as is", without warranty of any
@@ -14,10 +14,376 @@ file and shall not imply any sub-license right.
*  @author   TTF T044
*/

//   AAR ->  Npcf_PolicyAuthorization_Create request  -> PCR (TP name) 
//           POST /npcf-policyauthorization/v1/app-sessions with JSON(ascReqData)
//   AAA ->  Npcf_PolicyAuthorization_Create response -> PCA (TP name)
//           201 Created  with JSON(ascResData)
//   AAR ->  Npcf_PolicyAuthorization_Update request  -> PUR (TP name)
//           PATCH /npcf-policyauthorization/v1/app-sessions/{appSessionId} with JSON(ascReqData)
//   AAA ->  Npcf_PolicyAuthorization_Update response -> PUA (TP name) 
//           200 OK  with JSON(ascResData) or 204 No Content
//   STR ->  Npcf_PolicyAuthorization_Delete request  -> PDR (TP name) 
//           POST /npcf-policyauthorization/v1/app-sessions/{appSessionId}/delete
//   STA ->  Npcf_PolicyAuthorization_Delete response -> PDA (TP name) 
//           204 No Content
//   RAR ->  Npcf_PolicyAuthorization_Notify request  -> PNR (TP name) 
//   RAA ->  Npcf_PolicyAuthorization_Notify response -> PNA (TP name) 

Package TP_N5_PCF {
    
    //import all from Http_Common;
    import all from Sip_Common;
    import all from Diameter_Common;
     

     
    Test Purpose {
        TP Id TP_N5_PCF_5G_ECO_PCA_01
        
        Test objective  "Verify that IUT after Npcf_PolicyAuthorization_Create request is received due to provisioning of AF Signalling flow for emergency registration sends Npcf_PolicyAuthorization_Create response."
        
        Reference 
            "TS 129 514 [6], Annex B.5"
        
        Config Id CF_VoNR_INT_ES
        
        PICS Selection NONE
        
        Initial conditions with {
        	the UE_A entity not is5GRegisteredTo the _5GC_A and
            the UE_A entity not isEmergencyRegisteredTo the IMS_A
        }
        
        Expected behaviour
            ensure that {
                when {
                    the IMS_P_CSCF_A entity sends an Npcf_PolicyAuthorization_Create_Request
                    to the _5GC_PCF_A entity
                }
                then {
                    the _5GC_PCF_A entity sends the Npcf_PolicyAuthorization_Create_Response containing
                        Result_Code_AVP
                            indicating value DIAMETER_SUCCESS
                        Subscription_Id_AVP containing
                            Subscription_Id_Type_AVP
                                indicating value END_USER_IMSI;, //or END_USERE_164   
                        "and/or" 
                        User_Equipment_Info_AVP containing
                            User_Equipment_Info_Type
                                indicating value IMEISV,
                            User_Equipment_Info_Value;;  
                    to the IMS_P_CSCF_A entity
                }
            }  
    }  // End of TP_N5_PCF_5G_ECO_PCA_01
     
    Test Purpose {
        TP Id TP_N5_PCF_5G_ECO_PCA_02
        
        Test objective  "Verify that IUT after AA-Request is received due to AF session for emergency session establishment sends AA-Answer."
        
        Reference 
            "TS 129 514 [6], Annexes A.5 and E.1"
        
        Config Id CF_VoNR_INT_ES
        
        PICS Selection NONE
        
        Initial conditions with {
        	the UE_A entity is5GRegisteredTo the _5GC_A
        }
        
        Expected behaviour
            ensure that {
                when {
                    the IMS_P_CSCF_A entity sends an AAR
                    to the _5GC_PCF_A entity
                }
                then {
                    the _5GC_PCF_A entity sends the AAA containing
                        Result_Code_AVP
                            indicating value DIAMETER_SUCCESS
                        Subscription_Id_AVP containing
                            Subscription_Id_Type_AVP
                                indicating value END_USER_IMSI;, //or END_USERE_164   
                        "and/or" 
                        User_Equipment_Info_AVP containing
                            User_Equipment_Info_Type
                                indicating value IMEISV,
                            User_Equipment_Info_Value;;  
                    to the IMS_P_CSCF_A entity
                }
            }  
    }  // End of TP_N5_PCF_5G_ECO_PCA_02
     
    Test Purpose {
        TP Id TP_N5_PCSCF_5G_ECO_PCR_01
        
        Test objective  "Verify that IUT after Emergency REGISTER sends an AA-Request due to provisioning of AF Signalling flow."
        
        Reference
            "TS 129 514 [6], Annexes A.5 and E.1"
        
        Config Id CF_VoNR_INT_ES
        
        PICS Selection NONE
        
        Initial conditions with {
        	the UE_A entity not is5GRegisteredTo the _5GC_A and
            the UE_A entity not isEmergencyRegisteredTo the IMS_A
        }
        
        Expected behaviour
            ensure that {
                when {
                    the UE_A entity sends a REGISTER
                    to the IMS_P_CSCF_A entity
                }
                then {
                    the IMS_P_CSCF_A entity sends an AAR containing
                        Framed_IPv4_Address_AVP 
                            indicating value "IPv4_Address of UE_A",
                        "or" Framed_IPv6_Address_AVP 
                            indicating value "IPv6_Address of UE_A",
                        AF_Requested_Data_AVP
                            indicating value "EPC-level identities required",
                        Service_URN_AVP
                            indicating value "sos*";
                    to the _5GC_PCF_A entity
                }
            }  
    }  // End of TP_N5_PCSCF_5G_ECO_PCR_01
    
    
    Test Purpose {
        TP Id TP_N5_PCSCF_5G_ECO_PCR_02
        
        Test objective  "Verify that IUT send AA-Request in case of emergency session establishment for originating side after INVITE is received."
        
        Reference 
            "TS 129 514 [6],  Annexes A.5 and E.1" //clauses 4.4.1, A.1, A.2 and annex B"
        
        Config Id CF_VoNR_INT_ES
        
        PICS Selection NONE
        
        Initial conditions with {
            the UE_A entity is5GRegisteredTo the _5GC_A and
            the UE_A entity isEmergencyRegisteredTo the IMS_A
        }
        
        Expected behaviour
            ensure that {
                when {
                    the IMS_P_CSCF_A entity receives an INVITE_Request_with_SDP_offer
                    from the UE_A entity
                }
                then {
                    the IMS_P_CSCF_A entity sends the AAR containing
                        Framed_IPv4_Address_AVP 
                            indicating value "IPv4_Address of UE_A",
                        "or" Framed_IPv6_Address_AVP 
                            indicating value "IPv6_Address of UE_A",
                        Service_URN_AVP
                            indicating value "sos*";
                    to the _5GC_PCF_A entity
                }
            }  
    }  // End of TP_N5_PCSCF_5G_ECO_PCR_02
    
    Test Purpose {
        TP Id TP_N5_PCSCF_5G_ECO_PCR_04
        Test objective  "Verify that IUT send AA-Request in case of session establishment for originating side after 183 response with SDP is received."
        
        Reference 
            "TS 129 514 [6], clauses 4.4.1, A.1, A.2 and Annex B"
       
        Config Id CF_VoNR_INT_ES
        
        PICS Selection NONE
        
        Initial conditions with {
            the UE_A entity is5GRegisteredTo the _5GC_A and
            the UE_A entity isRegisteredTo the IMS_A
        }
        
        Expected behaviour
            ensure that {
                when {
                    the IMS_P_CSCF_A entity receives a 183_Response_INVITE_with_SDP_offer
                    from the IMS_S_CSCF_A entity
                }
                then {
                    the IMS_P_CSCF_A entity sends the AAR containing
                        Framed_IPv4_Address_AVP 
                            indicating value "IPv4_Address of UE_A",
                        "or" Framed_IPv6_Address_AVP 
                            indicating value "IPv6_Address of UE_A",
                        "one or more" Media_Component_Description_AVP 
                        Rx_Request_Type_AVP
                            indicating value UPDATE_REQUEST '(1)',
                        Service_Info_Status_AVP
                            indicating value FINAL_SERVICE_INFORMATION '(1)'
                        ;
                    to the _5GC_PCF_A entity
                }
            }  
    }  // End of TP_N5_PCSCF_5G_ECO_PCR_04
    
    Test Purpose {
        TP Id TP_N5_PCSCF_PNA_01
        Test objective  "Verify that IUT sends RA-Answer after RAR is received from PCRF."
        
        Reference 
            "TS 129 514 [6], clauses 4.4.6.2, 5.3.13 and A.5"
        
        Config Id CF_VoNR_INT_ES
        
        PICS Selection NONE
        
        Initial conditions with {
            the UE_A entity is5GRegisteredTo the _5GC_A and
            the UE_A entity isRegisteredTo the IMS_A
        }
        
        Expected behaviour
            ensure that {
                when {
                    the _5GC_PCF_A entity sends a RAR containing
                        Specific_Action_AVP
                            indicating value INDICATION_OF_SUCCESSFUL_RESOURCES_ALLOCATION '(8)';
                    to the IMS_P_CSCF_A entity
                }
                then {
                    the IMS_P_CSCF_A entity sends the RAA containing
                        Result_Code_AVP
                            indicating value DIAMETER_SUCCESS "(2001)";
                    to the _5GC_PCF_A entity
                }
            }  
    }  // End of TP_N5_PCSCF_PNA_01
     
    Test Purpose {
        TP Id TP_N5_PCRF_5G_ECO_PDA_02
        Test objective  "Verify that IUT after reception of ST-Request sends ST-Answer."
        
        Reference 
            "TS 129 514 [6], clauses 4.4.4, 4.4.5, A.8 and A.5"
        
        Config Id CF_VoNR_INT_ES
        
        PICS Selection NONE
        
        Initial conditions with {
        	the UE_A entity is5GRegisteredTo the _5GC_A and
            the UE_A entity isRegisteredTo the IMS_A
        }
        
        Expected behaviour
            ensure that {
                when {
                    the IMS_P_CSCF_A entity sends an STR
                    to the _5GC_PCF_A entity
                }
                then {
                    the _5GC_PCF_A entity sends the STA containing
                        Result_Code_AVP
                            indicating value DIAMETER_SUCCESS;
                    to the IMS_P_CSCF_A entity
                }
            }  
    }  // End of TP_N5_PCRF_5G_ECO_PDA_02
    
    Test Purpose {
        TP Id TP_N5_PCSCF_5G_ECO_PDR_01
        Test objective  "Verify that IUT after reception of BYE sends an ST-Request at originating leg."
        
        Reference 
            "TS 129 514 [6], clause 4.4.4 and Annex A.5"
        
        Config Id CF_VoNR_INT_ES
        
        PICS Selection NONE
        
        Initial conditions with {
            the UE_A entity is5GRegisteredTo the _5GC_A and
            the UE_A entity isRegisteredTo the IMS_A and 
            the UE_A entity previouslyEstablishedCallWith the PSAP
        }
        
        Expected behaviour
            ensure that {
                when {
                    the IMS_P_CSCF_A entity receives a BYE
                    from the UE_A entity
                }
                then {
                    the IMS_P_CSCF_A entity sends the STR containing
                        Session_Id_AVP;
                    to the _5GC_PCF_A entity
                }
            }  
    }  // End of TP_N5_PCSCF_5G_ECO_PDR_01
    
    Test Purpose {
        TP Id TP_N5_PCSCF_5G_ECO_PDR_03
        Test objective  "Verify that IUT after reception of CANCEL sends an ST-Request at originating leg."
        
        Reference 
            "TS 129 514 [6], clause 4.4.4 and Annex A.5"
        
        Config Id CF_VoNR_INT_ES
        
        PICS Selection NONE
        
        Initial conditions with {
            the UE_A entity is5GRegisteredTo the _5GC_A and
            the UE_A entity isRegisteredTo the IMS_A
        }
        
        Expected behaviour
            ensure that {
                when {
                    the IMS_P_CSCF_A entity receives a CANCEL
                    from the UE_A entity
                }
                then {
                    the IMS_P_CSCF_A entity sends the STR containing
                        Session_Id_AVP;
                    to the _5GC_PCF_A entity
                }
            }  
    }  // End of TP_N5_PCSCF_5G_ECO_PDR_03
    
    Test Purpose {
        TP Id TP_N5_PCSCF_5G_ECO_PDR_05
        Test objective  "Verify that IUT after reception of 486 response sends an ST-Request at originating leg."
        
        Reference 
            "TS 129 514 [6], clause 4.4.4 and A.5"
        
        Config Id CF_VoNR_INT_ES
        
        PICS Selection NONE
        
        Initial conditions with {
            the UE_A entity is5GRegisteredTo the _5GC_A and
            the UE_A entity isRegisteredTo the IMS_A
        }
        
        Expected behaviour
            ensure that {
                when {
                    the IMS_P_CSCF_A entity receives a 486_Response_INVITE
                    from the IMS_S_CSCF_A entity
                }
                then {
                    the IMS_P_CSCF_A entity sends the STR containing
                        Session_Id_AVP;
                    to the _5GC_PCF_A entity
                }
            }  
    }  // End of TP_N5_PCSCF_5G_ECO_PDR_05
    
} // End of Package TP_N5_PCF
+6 −6
Original line number Diff line number Diff line

[1]    ETSI TS 124 229:   "Digital cellular telecommunications system (Phase 2+) (GSM); Universal Mobile Telecommunications System (UMTS); LTE; IP multimedia call control protocol based on Session Initiation Protocol (SIP) and Session Description Protocol (SDP); Stage 3 (3GPP TS 24.229 Release 15)".
[2]    ETSI TS 129 165:   "Digital cellular telecommunications system (Phase 2+) (GSM); Universal Mobile Telecommunications System (UMTS); LTE; Inter-IMS Network to Network Interface (NNI) (3GPP TS 29.165 Release 15)".
[3]    ETSI TS 129 228:   "Digital cellular telecommunications system (Phase 2+) (GSM); Universal Mobile Telecommunications System (UMTS); LTE; IP Multimedia (IM) Subsystem Cx and Dx Interfaces; Signalling flows and message contents (3GPP TS 29.228 Release 15)".
[4]    ETSI TS 129 229:   "Digital cellular telecommunications system (Phase 2+) (GSM); Universal Mobile Telecommunications System (UMTS); LTE; Cx and Dx interfaces based on the Diameter protocol; Protocol details (3GPP TS 29.229 Release 15)".
[5]    ETSI TS 129 214:   "Universal Mobile Telecommunications System (UMTS); LTE; Policy and charging control over Rx reference point (3GPP TS 29.214 Release 15)".

[1]    ETSI TS 124 229:   "Digital cellular telecommunications system (Phase 2+) (GSM); Universal Mobile Telecommunications System (UMTS); LTE; IP multimedia call control protocol based on Session Initiation Protocol (SIP) and Session Description Protocol (SDP); Stage 3 (3GPP TS 24.229 Release 16.16)".
[2]    ETSI TS 129 165:   "Digital cellular telecommunications system (Phase 2+) (GSM); Universal Mobile Telecommunications System (UMTS); LTE; Inter-IMS Network to Network Interface (NNI) (3GPP TS 29.165 Release 16.6)".
[3]    ETSI TS 129 228:   "Digital cellular telecommunications system (Phase 2+) (GSM); Universal Mobile Telecommunications System (UMTS); LTE; IP Multimedia (IM) Subsystem Cx and Dx Interfaces; Signalling flows and message contents (3GPP TS 29.228 Release 16.1)".
[4]    ETSI TS 129 229:   "Digital cellular telecommunications system (Phase 2+) (GSM); Universal Mobile Telecommunications System (UMTS); LTE; Cx and Dx interfaces based on the Diameter protocol; Protocol details (3GPP TS 29.229 Release 16.3)".
[5]    ETSI TS 129 214:   "Universal Mobile Telecommunications System (UMTS); LTE; Policy and charging control over Rx reference point (3GPP TS 29.214 Release 16.8)".
[6]    ETSI TS 129 514:   "5G; 5G System; Policy Authorization Service; Stage 3 (3GPP TS 29.514 Release 16.21)".


---older TO BE CHECKED
+4 −4
Original line number Diff line number Diff line
@@ -32,12 +32,12 @@ Package TP_RTP {
        Reference 
            "TS 124 229 [1], clause 6"
        
        Config Id CF_VoLTE_INT_ES
        Config Id CF_VoNR_INT_ES
        
        PICS Selection NONE
        
        Initial conditions with {
            the UE_A is5GRegisteredTo the _5GC_A and
            the UE_A entity is5GRegisteredTo the _5GC_A and
            the UE_A entity isRegisteredTo the IMS_A
        }
        
@@ -64,12 +64,12 @@ Package TP_RTP {
        Reference 
            "TS 124 229 [1], clause 6"
        
        Config Id CF_VoLTE_INT_ES
        Config Id CF_VoNR_INT_ES
        
        PICS Selection NONE
        
        Initial conditions with {
            the UE_A is5GRegisteredTo the _5GC_A and
            the UE_A entity is5GRegisteredTo the _5GC_A and
            the UE_A entity isRegisteredTo the IMS_A
        }
        
+13 −12
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ Package TP_RX {
        PICS Selection NONE
        
        Initial conditions with {
        	the UE_A entity isNotRegisteredTo the _5GC_A and
        	the UE_A entity not is5GRegisteredTo the _5GC_A and
            the UE_A entity not isEmergencyRegisteredTo the IMS_A
        }
        
@@ -76,7 +76,7 @@ Package TP_RX {
        PICS Selection NONE
        
        Initial conditions with {
        	the UE_A entity isRegisteredTo the _5GC_A
        	the UE_A entity is5GRegisteredTo the _5GC_A
        }
        
        Expected behaviour
@@ -115,7 +115,7 @@ Package TP_RX {
        PICS Selection NONE
        
        Initial conditions with {
        	the UE_A entity isNotAttachedTo the _5GC_A and
        	the UE_A entity not is5GRegisteredTo the _5GC_A and
            the UE_A entity not isEmergencyRegisteredTo the IMS_A
        }
        
@@ -154,7 +154,7 @@ Package TP_RX {
        PICS Selection NONE
        
        Initial conditions with {
            the UE_A entity isRegisteredTo the _5GC_A and
            the UE_A entity is5GRegisteredTo the _5GC_A and
            the UE_A entity isEmergencyRegisteredTo the IMS_A
        }
        
@@ -190,7 +190,7 @@ Package TP_RX {
        PICS Selection NONE
        
        Initial conditions with {
            the UE_A entity isRegisteredTo the _5GC_A and
            the UE_A entity is5GRegisteredTo the _5GC_A and
            the UE_A entity isRegisteredTo the IMS_A
        }
        
@@ -220,6 +220,7 @@ Package TP_RX {
    Test Purpose {
        TP Id TP_RX_PCSCF_RAA_01
        //TP_RX_PCSCF_RAA_01 from TS 103 795-1 V1.1.1 (LTE)
        //RAR/RAA messages optional due to ETSI 129 213 but described in below references
        Test objective  "Verify that IUT sends RA-Answer after RAR is received from PCRF."
        
        Reference 
@@ -230,7 +231,7 @@ Package TP_RX {
        PICS Selection NONE
        
        Initial conditions with {
            the UE_A entity isRegisteredTo the _5GC_A and
            the UE_A entity is5GRegisteredTo the _5GC_A and
            the UE_A entity isRegisteredTo the IMS_A
        }
        
@@ -264,8 +265,8 @@ Package TP_RX {
        PICS Selection NONE
        
        Initial conditions with {
        	the UE_A entity isNotAttachedTo the _5GC_A and
            the UE_A entity isNotRegisteredTo the IMS_A
        	the UE_A entity is5GRegisteredTo the _5GC_A and
            the UE_A entity isRegisteredTo the IMS_A
        }
        
        Expected behaviour
@@ -296,9 +297,9 @@ Package TP_RX {
        PICS Selection NONE
        
        Initial conditions with {
            the UE_A entity isRegisteredTo the _5GC_A and
            the UE_A entity is5GRegisteredTo the _5GC_A and
            the UE_A entity isRegisteredTo the IMS_A and 
            the UE_A entity previouslyEstablishedCallWith the UE_B
            the UE_A entity previouslyEstablishedCallWith the PSAP
        }
        
        Expected behaviour
@@ -328,7 +329,7 @@ Package TP_RX {
        PICS Selection NONE
        
        Initial conditions with {
            the UE_A entity isRegisteredTo the _5GC_A and
            the UE_A entity is5GRegisteredTo the _5GC_A and
            the UE_A entity isRegisteredTo the IMS_A
        }
        
@@ -359,7 +360,7 @@ Package TP_RX {
        PICS Selection NONE
        
        Initial conditions with {
            the UE_A entity isRegisteredTo the _5GC_A and
            the UE_A entity is5GRegisteredTo the _5GC_A and
            the UE_A entity isRegisteredTo the IMS_A
        }