Commit cb7d622f authored by Iztok Juvancic's avatar Iztok Juvancic
Browse files

added TPs 5GNAS_AMF_REG_ACC_06*

parent 50c20133
Loading
Loading
Loading
Loading
+112 −0
Changes for ttcn/Ats_NG_NAS/NG_NAS_TestCases.ttcn: 112 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -554,6 +554,118 @@ module NG_NAS_TestCases {

            } // End of testcase TC_5GNAS_AMF_REG_ACC_05

            /**
             * @desc Verify that, during the initial registration procedure, when the REGISTRATION_REQUEST message contains a Requested NSSAI IE with one S-NSSAI that is allowed by the IUT, then the IUT sends a REGISTRATION_ACCEPT message containing an Allowed NSSAI IE with the requested S-NSSAI.
             * @see ETSI TS 124 501 [1], Clauses 4.4.6, 5.4.2.4, 5.5.1.2.4, 8.2.6, 8.2.7 and 8.2.26
             */
            testcase TC_5GNAS_AMF_REG_ACC_06() runs on aMF_NGNAS_NGAPComponent system TestAdapter {
        
                // Local variables
                var aMF_NGNAS_NGAPComponent v_ngnas_ngap_gnb;

                // Test control
                if (not (PICS_NGNAS and PICS_NAS_A4_8_1)) {
                    log("*** " & __SCOPE__ & ": ERROR: 'PICS_NGNAS' and 'PICS_NAS_A4_8_1' shall be set to true for executing the TC. ***");
                    stop;
                }

                // Test component configuration
                f_cf_NGNAS_aMF_Up(v_ngnas_ngap_gnb);

                // Start
                v_ngnas_ngap_gnb.start(f_TC_5GNAS_AMF_REG_ACC_06());

                // synchronize PTC on 1 sychronization points
                f_serverSyncNClientsAndStop(1, {c_prDone, c_tbDone, c_poDone});

                //f_cf_Down/*gNBoraMF*/();

            } // End of testcase TC_5GNAS_AMF_REG_ACC_06

            /**
             * @desc Verify that, during the initial registration procedure, when the REGISTRATION_REQUEST message contains a Requested NSSAI IE with one S-NSSAI that is allowed by the IUT, then the IUT sends a REGISTRATION_ACCEPT message containing an Allowed NSSAI IE with the requested S-NSSAI.
             * @see ETSI TS 124 501 [1], Clauses 4.4.2.5, 4.4.6, 5.5.1.2.4, 8.2.6 and 8.2.7
             */
            testcase TC_5GNAS_AMF_REG_ACC_06_1() runs on aMF_NGNAS_NGAPComponent system TestAdapter {
        
                // Local variables
                var aMF_NGNAS_NGAPComponent v_ngnas_ngap_gnb;

                // Test control
                if (not (PICS_NGNAS and PICS_NAS_A4_8_1)) {
                    log("*** " & __SCOPE__ & ": ERROR: 'PICS_NGNAS' and 'PICS_NAS_A4_8_1' shall be set to true for executing the TC. ***");
                    stop;
                }

                // Test component configuration
                f_cf_NGNAS_aMF_Up(v_ngnas_ngap_gnb);

                // Start
                v_ngnas_ngap_gnb.start(f_TC_5GNAS_AMF_REG_ACC_06());

                // synchronize PTC on 1 sychronization points
                f_serverSyncNClientsAndStop(1, {c_prDone, c_tbDone, c_poDone});

                //f_cf_Down/*gNBoraMF*/();

            } // End of testcase TC_5GNAS_AMF_REG_ACC_06_1

            /**
             * @desc Verify that, during the initial registration procedure, when the REGISTRATION_REQUEST message contains a Requested NSSAI IE with one S-NSSAI that is allowed by the IUT, then the IUT sends a REGISTRATION_ACCEPT message containing an Allowed NSSAI IE with the requested S-NSSAI.
             * @see "ETSI TS 124 501 [1], Clauses 4.4.6, 5.4.2.4, 5.5.1.2.4, 8.2.6, 8.2.7 and 8.2.26"
             */
            testcase TC_5GNAS_AMF_REG_ACC_06_2() runs on aMF_NGNAS_NGAPComponent system TestAdapter {
        
                // Local variables
                var aMF_NGNAS_NGAPComponent v_ngnas_ngap_gnb;

                // Test control
                if (not (PICS_NGNAS and PICS_NAS_A4_8_1)) {
                    log("*** " & __SCOPE__ & ": ERROR: 'PICS_NGNAS' and 'PICS_NAS_A4_8_1' shall be set to true for executing the TC. ***");
                    stop;
                }

                // Test component configuration
                f_cf_NGNAS_aMF_Up(v_ngnas_ngap_gnb);

                // Start
                v_ngnas_ngap_gnb.start(f_TC_5GNAS_AMF_REG_ACC_06());

                // synchronize PTC on 1 sychronization points
                f_serverSyncNClientsAndStop(1, {c_prDone, c_tbDone, c_poDone});

                //f_cf_Down/*gNBoraMF*/();

            } // End of testcase TC_5GNAS_AMF_REG_ACC_06_2

            /**
             * @desc Verify that, during the initial registration procedure, when the REGISTRATION_REQUEST message contains a Requested NSSAI IE with one S-NSSAI that is allowed by the IUT, then the IUT sends a REGISTRATION_ACCEPT message containing an Allowed NSSAI IE with the requested S-NSSAI.
             * @see ETSI TS 124 501 [1], Clauses 4.4.2.5, 4.4.6, 5.5.1.2.4, 8.2.6 and 8.2.7
             */
            testcase TC_5GNAS_AMF_REG_ACC_06_3() runs on aMF_NGNAS_NGAPComponent system TestAdapter {
        
                // Local variables
                var aMF_NGNAS_NGAPComponent v_ngnas_ngap_gnb;

                // Test control
                if (not (PICS_NGNAS and PICS_NAS_A4_8_1)) {
                    log("*** " & __SCOPE__ & ": ERROR: 'PICS_NGNAS' and 'PICS_NAS_A4_8_1' shall be set to true for executing the TC. ***");
                    stop;
                }

                // Test component configuration
                f_cf_NGNAS_aMF_Up(v_ngnas_ngap_gnb);

                // Start
                v_ngnas_ngap_gnb.start(f_TC_5GNAS_AMF_REG_ACC_06());

                // synchronize PTC on 1 sychronization points
                f_serverSyncNClientsAndStop(1, {c_prDone, c_tbDone, c_poDone});

                //f_cf_Down/*gNBoraMF*/();

            } // End of testcase TC_5GNAS_AMF_REG_ACC_06_3

            /**
             * @desc Verify that the IUT rejects initial registration request due to general NAS level mobility management congestion control with 5GMM cause value #22 - congestion and assign a value for back-off timer T3346
             * @see ETSI TS 124 501 [1], Clauses 5.5.1.2.5 and 8.2.9