Newer
Older
/*
* @author STF 574, TTF006
* @version $Id$
* @desc This module provides the TP behaviour functions at CX interface
*/
module AtsImsIot_TP_behavior_CX
{
// LibDiameter
import from LibDiameter_Templates all;
import from LibIot_PIXITS all;
import from LibIot_TestInterface all;
import from LibIot_TypesAndValues all;
import from LibIot_Functions all;
import from LibIot_PIXITS all;
import from AtsImsIot_Templates all;
import from AtsImsIot_TypesAndValues all;
import from AtsImsIot_Functions all;
import from AtsImsIot_Diameter_Templates all;
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
// LibIms
import from LibIms_UpperTester all;
group g_HSS {
/**
* Starts monitor component behavior for TP_CX_HSS_MAA_01
* @param p_monitorCompRef Reference to monitor component
* <pre>
* Test objective "IUT successfully processes all mandatory AVPs in a MA-Request received due to S-CSCF registration notification procedure and sends SA-Answer."
*
* <pre>
*
* Config Id CF_VxLTE_INT
*
* Initial conditions with {
* the UE_A entity isNotRegisteredTo the IMS_A
* }
*
* ensure that {
* when {
* the IMS_S_CSCF_A entity sends a MAR containing
* Session_ID_AVP
* Vendor_Specific_Application_Id_AVP
* Auth_Session_State_AVP
* indicating value NO_STATE_MAINTAINED
* Origin_Host_AVP
* Origin_Realm_AVP
* Destination_Realm_AVP
* Public_Identity_AVP
* User_Name_AVP
* Server_Name_AVP
* SIP_Number_Auth_Items_AVP
* SIP_Auth_Data_Item_AVP containing
* SIP_Authentication_Scheme_AVP
* ;
* ;
* to the IMS_HSS_A entity
* }
* then {
* the IMS_HSS_A entity sends the MAA containing
* Session_ID_AVP
* Vendor_Specific_Application_Id_AVP
* Auth_Session_State_AVP
* Origin_Host_AVP
* Origin_Realm_AVP
* not Experimental_Result_AVP
* Result_Code_AVP
* indicating value DIAMETER_SUCCESS
* User_Name_AVP
* SIP_Number_Auth_Items_AVP
* SIP_Auth_Data_Item_AVP containing
* SIP_Authentication_Scheme_AVP
* ;
* ;
* to the IMS_S_CSCF_A entity
* }
* }
* </pre>
* @see TS 103 653-1 clause 7.4
*/
function f_mtc_check_TP_CX_HSS_MAA_01(
DiameterInterfaceMonitor p_monitorCompRef,
in boolean p_checkMessage := false,
in boolean p_forward_to_mtc := false
) runs on ImsTestCoordinator {
if (isvalue(p_monitorCompRef)){
var ImsUserInfo v_userInfoA := f_getSipUserId(PX_EUT_A);
var charstring v_publicIdentity := "sip:"&v_userInfoA.publicId&"@"&v_userInfoA.domain;
var template DIAMETER_MSG mw_diameter_msg_pass := { mAR_MSG := mw_MAR(mw_publicIdentity(v_publicIdentity)) };
var template DIAMETER_MSG mw_diameter_msg_fail := { mAR_MSG := mw_MAR_basic };
p_monitorCompRef.start (
f_Iot_Diameter_receive(
{
},
{0, omit},
"TP_CX_HSS_MAA_01 - MAR",
p_forward_to_mtc,
p_checkMessage
)
);
p_monitorCompRef.done;
mw_diameter_msg_pass := { mAA_MSG := mw_MAA };
mw_diameter_msg_fail := { mAA_MSG := mw_MAA_basic };
p_monitorCompRef.start (
f_Iot_Diameter_receive(
{
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
},
{0, omit},
"TP_CX_HSS_MAA_01 - MAA",
p_forward_to_mtc,
p_checkMessage
)
);
p_monitorCompRef.done;
}
} // End of function f_mtc_check_TP_CX_HSS_MAA_01
/**
* Starts monitor component behavior for TP_CX_HSS_RTA_01
* @param p_monitorCompRef Reference to monitor component
* <pre>
* Test objective "IUT successfully processes all mandatory AVPs in a RT-Request received due to S-CSCF network de-registration notification procedure and sends RT-Answer."
*
* <pre>
*
* Config Id CF_VxLTE_INT
*
* Initial conditions with {
* the UE_A entity isRegisteredTo the IMS_A
* }
*
* ensure that {
* when {
* the IMS_S_CSCF_A entity sends a RTR containing
* Session_ID_AVP
* Vendor_Specific_Application_Id_AVP
* Auth_Session_State_AVP
* indicating value NO_STATE_MAINTAINED
* Origin_Host_AVP
* Origin_Realm_AVP
* Destination_Host_AVP
* Destination_Realm_AVP
* User_Name_AVP
* Deregistration_Reason_AVP containing
* Reason_Code_AVP
* ;;
* to the IMS_HSS_A entity
* }
* then {
* the IMS_HSS_A entity sends the RTA containing
* Session_ID_AVP
* Vendor_Specific_Application_Id_AVP
* Auth_Session_State_AVP
* Origin_Host_AVP
* Origin_Realm_AVP
* Result_Code_AVP
* indicating value DIAMETER_SUCCESS
* ;
* to the IMS_S_CSCF_A entity
* }
* }
* </pre>
* @see TS 103 653-1 clause 7.4
*/
function f_mtc_check_TP_CX_HSS_RTA_01(
DiameterInterfaceMonitor p_monitorCompRef,
in boolean p_checkMessage := false,
in boolean p_forward_to_mtc := false
) runs on ImsTestCoordinator {
if (isvalue(p_monitorCompRef)){
var template DIAMETER_MSG mw_diameter_msg_pass := { rTR_MSG := mw_RTR };
var template DIAMETER_MSG mw_diameter_msg_fail := { rTR_MSG := mw_RTR_basic };
p_monitorCompRef.start (
f_Iot_Diameter_receive(
{
},
{0, omit},
"TP_CX_HSS_RTA_01 - RTR",
p_forward_to_mtc,
p_checkMessage
)
);
p_monitorCompRef.done;
mw_diameter_msg_pass := { rTA_MSG := mw_RTA };
mw_diameter_msg_fail := { rTA_MSG := mw_RTA_basic };
p_monitorCompRef.start (
f_Iot_Diameter_receive(
{
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
},
{0, omit},
"TP_CX_HSS_RTA_01 - RTA",
p_forward_to_mtc,
p_checkMessage
)
);
p_monitorCompRef.done;
}
} // End of function f_mtc_check_TP_CX_HSS_RTA_01
/**
* Starts monitor component behavior for TP_CX_HSS_SAA_01
* @param p_monitorCompRef Reference to monitor component
* <pre>
* Test objective "IUT successfully processes all mandatory AVPs in a SA-Request received due to S-CSCF registration notification procedure and sends SA-Answer."
*
* <pre>
*
* Config Id CF_VxLTE_INT
*
* Initial conditions with {
* the UE_A entity isNotRegisteredTo the IMS_A
* }
*
* ensure that {
* when {
* the IMS_S_CSCF_A entity sends a SAR containing
* Session_ID_AVP
* Vendor_Specific_Application_Id_AVP
* Auth_Session_State_AVP
* indicating value NO_STATE_MAINTAINED,
* Origin_Host_AVP
* Origin_Realm_AVP
* Public_Identity_AVP
* not User_Name_AVP
* Destination_Realm_AVP
* Server_Name_AVP
* Server_Assignment_Type_AVP
* indicating value UNREGISTERED_USER
* User_Data_Already_Available_AVP
* ;
* to the IMS_HSS_A entity
* }
* then {
* the IMS_HSS_A entity sends the SAA containing
* Session_ID_AVP
* Vendor_Specific_Application_Id_AVP
* Auth_Session_State_AVP
* Origin_Host_AVP
* Origin_Realm_AVP
* Result_Code_AVP
* indicating value DIAMETER_SUCCESS
* User_Data AVP
* Charging_Information_AVP
* ;
* to the IMS_S_CSCF_A entity
* }
* }
* </pre>
* @see TS 103 653-1 clause 7.4
*/
function f_mtc_check_TP_CX_HSS_SAA_01(
DiameterInterfaceMonitor p_monitorCompRef,
in boolean p_checkMessage := false,
in boolean p_forward_to_mtc := false
) runs on ImsTestCoordinator {
if (isvalue(p_monitorCompRef)){
var ImsUserInfo v_userInfoA := f_getSipUserId(PX_EUT_A);
var charstring v_publicIdentity := "sip:"&v_userInfoA.publicId&"@"&v_userInfoA.domain;
var template DIAMETER_MSG mw_diameter_msg_pass := { sAR_MSG := mw_SAR_Registration(mw_publicIdentity(v_publicIdentity)) };
var template DIAMETER_MSG mw_diameter_msg_fail := { sAR_MSG := mw_SAR_basic };
p_monitorCompRef.start (
f_Iot_Diameter_receive(
{
},
{0, omit},
"TP_CX_HSS_SAA_01 - SAR",
p_forward_to_mtc,
p_checkMessage
)
);
p_monitorCompRef.done;
mw_diameter_msg_pass := { sAA_MSG := mw_SAA_userData };
mw_diameter_msg_fail := { sAA_MSG := mw_SAA_basic };
p_monitorCompRef.start (
f_Iot_Diameter_receive(
{
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
},
{0, omit},
"TP_CX_HSS_SAA_01 - SAA",
p_forward_to_mtc,
p_checkMessage
)
);
p_monitorCompRef.done;
}
} // End of function f_mtc_check_TP_CX_HSS_SAA_01
/**
* Starts monitor component behavior for TP_CX_HSS_SAA_02
* @param p_monitorCompRef Reference to monitor component
* <pre>
* Test objective "IUT successfully processes all mandatory AVPs in an SA-Request received due to S-CSCF de-registration procedure and sends SA-Answer."
*
* <pre>
*
* Config Id CF_VxLTE_INT
*
* Initial conditions with {
* the UE_A entity isRegisteredTo the IMS_A
* }
*
* ensure that {
* when {
* the IMS_S_CSCF_A entity sends a SAR containing
* Session_ID_AVP
* Vendor_Specific_Application_Id_AVP
* Auth_Session_State_AVP
* indicating value NO_STATE_MAINTAINED,
* Origin_Host_AVP
* Origin_Realm_AVP
* Public_Identity_AVP
* User_Name_AVP
* Destination_Realm_AVP
* Server_Name_AVP
* Server_Assignment_Type_AVP
* indicating value USER_DEREGISTRATION
* User_Data_Already_Available_AVP
* ;
* to the IMS_HSS_A entity
* }
* then {
* the IMS_HSS_A entity sends the SAA containing
* Session_ID_AVP
* Vendor_Specific_Application_Id_AVP
* Auth_Session_State_AVP
* Origin_Host_AVP
* Origin_Realm_AVP
* Result_Code_AVP
* indicating value DIAMETER_SUCCESS
* ;
* to the IMS_S_CSCF_A entity
* }
* }
* </pre>
* @see TS 103 653-1 clause 7.4
*/
function f_mtc_check_TP_CX_HSS_SAA_02(
DiameterInterfaceMonitor p_monitorCompRef,
in boolean p_checkMessage := false,
in boolean p_forward_to_mtc := false
) runs on ImsTestCoordinator {
if (isvalue(p_monitorCompRef)){
var ImsUserInfo v_userInfoA := f_getSipUserId(PX_EUT_A);
var charstring v_publicIdentity := "sip:"&v_userInfoA.publicId&"@"&v_userInfoA.domain;
var template DIAMETER_MSG mw_diameter_msg_pass := { sAR_MSG := mw_SAR_UserDeregistration(mw_publicIdentity(v_publicIdentity)) };
var template DIAMETER_MSG mw_diameter_msg_fail := { sAR_MSG := mw_SAR_basic };
p_monitorCompRef.start (
f_Iot_Diameter_receive(
{
},
{0, omit},
"TP_CX_HSS_SAA_02 -SAR",
p_forward_to_mtc,
p_checkMessage
)
);
p_monitorCompRef.done;
mw_diameter_msg_pass := { sAA_MSG := mw_SAA };
mw_diameter_msg_fail := { sAA_MSG := mw_SAA_basic };
p_monitorCompRef.start (
f_Iot_Diameter_receive(
{
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
},
{0, omit},
"TP_CX_HSS_SAA_02 - SAA",
p_forward_to_mtc,
p_checkMessage
)
);
p_monitorCompRef.done;
}
} // End of function f_mtc_check_TP_CX_HSS_SAA_02
/**
* Starts monitor component behavior for TP_CX_HSS_UAA_01
* @param p_monitorCompRef Reference to monitor component
* <pre>
* Test objective "IUT successfully processes all mandatory AVPs in a UA-Request received due to first UE initial registration and sends UA-Answer."
*
* <pre>
*
* Config Id CF_VxLTE_INT
*
* Initial conditions with {
* the UE_A entity isNotRegisteredTo the IMS_A
* }
*
* ensure that {
* when {
* the IMS_I_CSCF_A entity sends a UAR containing
* Session_ID_AVP
* Vendor_Specific_Application_Id_AVP
* Auth_Session_State_AVP
* indicating value NO_STATE_MAINTAINED,
* Origin_Host_AVP
* Origin_Realm_AVP
* Public_Identity_AVP
* Visited_Network_Identifier_AVP
* User_Authorization_Type_AVP
* indicating value REGISTRATION,
* User_Name_AVP
* Destination_Host_AVP
* Destination_Realm_AVP
* UAR_Flags_AVP
* indicating value IMS_Emergency_Registration_bit_not_set
* ;
* to the IMS_HSS_A entity
* }
* then {
* the IMS_HSS_A entity sends the UAA containing
* Session_ID_AVP
* Vendor_Specific_Application_Id_AVP
* Auth_Session_State_AVP
* Origin_Host_AVP
* Origin_Realm_AVP
* not Result_Code_AVP
* Experimental_Result_AVP containing
* Experimental_Result_Code_AVP
* indicating value DIAMETER_FIRST_REGISTRATION
* ;
* ;
* to the IMS_I_CSCF_A entity
* }
* }
* </pre>
* @see TS 103 653-1 clause 7.4
*/
function f_mtc_check_TP_CX_HSS_UAA_01(
DiameterInterfaceMonitor p_monitorCompRef,
in boolean p_checkMessage := false,
in boolean p_forward_to_mtc := false
) runs on ImsTestCoordinator {
if (isvalue(p_monitorCompRef)){
var ImsUserInfo v_userInfoA := f_getSipUserId(PX_EUT_A);
var charstring v_publicIdentity := "sip:"&v_userInfoA.publicId&"@"&v_userInfoA.domain;
//"sip:"&v_userInfoA.publicId&@&v_userInfoA.domain
var template DIAMETER_MSG mw_diameter_msg_pass := { uAR_MSG := mw_UAR_Registration(mw_publicIdentity(v_publicIdentity)) };
var template DIAMETER_MSG mw_diameter_msg_fail := { uAR_MSG := mw_UAR_basic };
p_monitorCompRef.start (
f_Iot_Diameter_receive(
{
},
{0, omit},
"TP_CX_HSS_UAA_01 - UAR",
p_forward_to_mtc,
p_checkMessage
)
);
p_monitorCompRef.done;
mw_diameter_msg_pass := { uAA_MSG := mw_UAA_diamFirstRegistration };
mw_diameter_msg_fail := { uAA_MSG := mw_UAA_basic };
p_monitorCompRef.start (
f_Iot_Diameter_receive(
{
},
{0, omit},
"TP_CX_HSS_UAA_01 - UAA",
p_forward_to_mtc,
p_checkMessage
)
);
p_monitorCompRef.done;
}
} // End of function f_mtc_check_TP_CX_HSS_UAA_01
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
/**
* Starts monitor component behavior for f_mtc_check_TP_CX_HSS_ECO_UAA_01
* @param p_monitorCompRef Reference to monitor component
* <pre>
* Test objective "IUT successfully processes all mandatory AVPs in a UA-Request received due to first UE initial registration and sends UA-Answer."
*
* <pre>
*
* Config Id CF_VxLTE_INT
*
* Initial conditions with {
* the UE_A entity isNotRegisteredTo the IMS_A
* }
*
* ensure that {
* when {
* the IMS_I_CSCF_A entity sends a UAR containing
* Session_ID_AVP
* Vendor_Specific_Application_Id_AVP
* Auth_Session_State_AVP
* indicating value NO_STATE_MAINTAINED,
* Origin_Host_AVP
* Origin_Realm_AVP
* Public_Identity_AVP
* Visited_Network_Identifier_AVP
* User_Authorization_Type_AVP
* indicating value REGISTRATION,
* User_Name_AVP
* Destination_Host_AVP
* Destination_Realm_AVP
* UAR_Flags_AVP
* indicating value IMS_Emergency_Registration_bit_not_set
* ;
* to the IMS_HSS_A entity
* }
* then {
* the IMS_HSS_A entity sends the UAA containing
* Session_ID_AVP
* Vendor_Specific_Application_Id_AVP
* Auth_Session_State_AVP
* Origin_Host_AVP
* Origin_Realm_AVP
* not Result_Code_AVP
* Experimental_Result_AVP containing
* Experimental_Result_Code_AVP
* indicating value DIAMETER_FIRST_REGISTRATION
* ;
* ;
* to the IMS_I_CSCF_A entity
* }
* }
* </pre>
* @see TS 103 653-1 clause 7.4
*/
function f_mtc_check_TP_CX_HSS_ECO_UAA_01(
DiameterInterfaceMonitor p_monitorCompRef,
in boolean p_checkMessage := false,
in boolean p_forward_to_mtc := false
) runs on ImsTestCoordinator {
if (isvalue(p_monitorCompRef)){
var ImsUserInfo v_userInfoA := f_getSipUserId(PX_EUT_A);
var charstring v_publicIdentity := "sip:"&v_userInfoA.publicId&"@"&v_userInfoA.domain;
//"sip:"&v_userInfoA.publicId&@&v_userInfoA.domain
var template DIAMETER_MSG mw_diameter_msg_pass := { uAR_MSG := mw_UAR_Registration(mw_publicIdentity(v_publicIdentity)) };
var template DIAMETER_MSG mw_diameter_msg_fail := { uAR_MSG := mw_UAR_basic };
p_monitorCompRef.start (
f_Iot_Diameter_receive(
{
},
{0, omit},
"TP_CX_HSS_UAA_01 - UAR",
p_forward_to_mtc,
p_checkMessage
)
);
p_monitorCompRef.done;
mw_diameter_msg_pass := { uAA_MSG := mw_UAA_diamFirstRegistration };
mw_diameter_msg_fail := { uAA_MSG := mw_UAA_basic };
p_monitorCompRef.start (
f_Iot_Diameter_receive(
{
},
{0, omit},
"TP_CX_HSS_UAA_01 - UAA",
p_forward_to_mtc,
p_checkMessage
)
);
p_monitorCompRef.done;
}
} // End of function f_mtc_check_TP_CX_HSS_ECO_UAA_01
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
/**
* Starts monitor component behavior for TP_CX_HSS_UAA_02
* @param p_monitorCompRef Reference to monitor component
* <pre>
* Test objective "IUT successfully processes all mandatory AVPs in a UA-Request received due to protected UE initial registration and sends UA-Answer."
*
* <pre>
*
* Config Id CF_VxLTE_INT
*
* Initial conditions with {
* the UE_A entity isNotRegisteredTo the IMS_A
* }
*
* ensure that {
* when {
* the IMS_I_CSCF_A entity sends a UAR containing
* Public_Identity_AVP
* User_Name_AVP
* ;
* to the IMS_HSS_A entity
* }
* then {
* the IMS_HSS_A entity sends the UAA containing
* not Result_Code_AVP
* Experimental_Result_AVP containing
* Experimental_Result_Code_AVP
* indicating value DIAMETER_SUBSEQUENT_REGISTRATION
* ;,
* Server_Name_AVP
* not Server_Capabilities_AVP
* ;
* to the IMS_I_CSCF_A entity
* }
* }
* </pre>
* @see TS 103 653-1 clause 7.4
*/
function f_mtc_check_TP_CX_HSS_UAA_02(
DiameterInterfaceMonitor p_monitorCompRef,
in boolean p_checkMessage := false,
in boolean p_forward_to_mtc := false
) runs on ImsTestCoordinator {
if (isvalue(p_monitorCompRef)){
var ImsUserInfo v_userInfoA := f_getSipUserId(PX_EUT_A);
var charstring v_publicIdentity := "sip:"&v_userInfoA.publicId&"@"&v_userInfoA.domain;
var template DIAMETER_MSG mw_diameter_msg_pass := { uAR_MSG := mw_UAR(mw_publicIdentity(v_publicIdentity)) };
var template DIAMETER_MSG mw_diameter_msg_fail := { uAR_MSG := mw_UAR_basic };
p_monitorCompRef.start (
f_Iot_Diameter_receive(
{
{0, omit},
"TP_CX_HSS_UAA_02 - UAR",
p_forward_to_mtc,
p_checkMessage
)
);
p_monitorCompRef.done;
mw_diameter_msg_pass := { uAA_MSG := mw_UAA_diamSuccess/*uAA_MSG := mw_UAA_diamSubsequentRegistration*/ }; //TODO:Check TP
mw_diameter_msg_fail := { uAA_MSG := mw_UAA_basic };
p_monitorCompRef.start (
f_Iot_Diameter_receive(
{
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
},
{0, omit},
"TP_CX_HSS_UAA_02 - UAA",
p_forward_to_mtc,
p_checkMessage
)
);
p_monitorCompRef.done;
}
} // End of function f_mtc_check_TP_CX_HSS_UAA_02
/**
* Starts monitor component behavior for TP_CX_HSS_UAA_03
* @param p_monitorCompRef Reference to monitor component
* <pre>
* Test objective "Verify that the IUT checks that the Private User Identity and the Public User Identity exists in the HSS and if not then IUT sets the appropriate experimental result code in the UA-Answer."
*
* <pre>
*
* Config Id CF_VxLTE_INT
*
* Initial conditions with {
* the UE_A entity isNotRegisteredTo the IMS_A
* }
*
* ensure that {
* when {
* the IMS_I_CSCF_A entity sends a UAR containing
* User_Name_AVP
* indicating value "an unknown private user identity"
* Public_Identity_AVP
* ;
* to the IMS_HSS_A entity
* }
* then {
* the IMS_HSS_A entity sends the UAA containing
* not Result_Code_AVP
* Experimental_Result_AVP
* Experimental_Result_Code_AVP
* indicating value DIAMETER_ERROR_USER_UNKNOWN
* not Server_Name_AVP
* ;
* to the IMS_I_CSCF_A entity
* }
* }
* </pre>
* @see TS 103 653-1 clause 7.4
*/
function f_mtc_check_TP_CX_HSS_UAA_03(
DiameterInterfaceMonitor p_monitorCompRef,
in boolean p_checkMessage := false,
in boolean p_forward_to_mtc := false
) runs on ImsTestCoordinator {
if (isvalue(p_monitorCompRef)){
var template DIAMETER_MSG mw_diameter_msg_pass := { uAR_MSG := mw_UAR_unknownPrivateId };
var template DIAMETER_MSG mw_diameter_msg_fail := { uAR_MSG := mw_UAR_basic };
p_monitorCompRef.start (
f_Iot_Diameter_receive(
{
},
{0, omit},
"TP_CX_HSS_UAA_03 - UAR",
p_forward_to_mtc,
p_checkMessage )
);
p_monitorCompRef.done;
mw_diameter_msg_pass := { uAA_MSG := mw_UAA_diamErrorUserUnknown };
mw_diameter_msg_fail := { uAA_MSG := mw_UAA_basic };
p_monitorCompRef.start (
f_Iot_Diameter_receive(
{
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
},
{0, omit},
"TP_CX_HSS_UAA_03 - UAA",
p_forward_to_mtc,
p_checkMessage )
);
p_monitorCompRef.done;
}
} // End of function f_mtc_check_TP_CX_HSS_UAA_03
/**
* Starts monitor component behavior for TP_CX_HSS_UAA_03
* @param p_monitorCompRef Reference to monitor component
* <pre>
* Test objective "IUT successfully processes all mandatory AVPs in a UA-Request received due to UE de-registration and sends UA-Answer."
*
* <pre>
*
* Config Id CF_VxLTE_INT
*
* Initial conditions with {
* the UE_A entity isRegisteredTo the IMS_A
* }
*
* ensure that {
* when {
* the IMS_I_CSCF_A entity sends a UAR containing
* Public_Identity_AVP
* User_Name_AVP
* User_Authentication_Type_AVP
* indicating value DE_REGISTRATION
* Visited_Network_Identifier_AVP
* ;
* to the IMS_HSS_A entity
* }
* then {
* the IMS_HSS_A entity sends the UAA containing
* Result_Code_AVP
* indicating value DIAMETER_SUCCESS
* Server_Name_AVP
* not Server_Capabilities_AVP
* ;
* to the IMS_I_CSCF_A entity
* }
* }
* </pre>
* @see TS 103 653-1 clause 7.4
*/
function f_mtc_check_TP_CX_HSS_UAA_04(
DiameterInterfaceMonitor p_monitorCompRef,
in boolean p_checkMessage := false,
in boolean p_forward_to_mtc := false
) runs on ImsTestCoordinator {
if (isvalue(p_monitorCompRef)){
var ImsUserInfo v_userInfoA := f_getSipUserId(PX_EUT_A);
var charstring v_publicIdentity := "sip:"&v_userInfoA.publicId&"@"&v_userInfoA.domain;
var template DIAMETER_MSG mw_diameter_msg_pass := { uAR_MSG := mw_UAR_deRegistration(mw_publicIdentity(v_publicIdentity)) };
var template DIAMETER_MSG mw_diameter_msg_fail := { uAR_MSG := mw_UAR_basic };
p_monitorCompRef.start (
f_Iot_Diameter_receive(
{
},
{0, omit},
"TP_CX_HSS_UAA_04 - UAR",
p_forward_to_mtc,
p_checkMessage
)
);
p_monitorCompRef.done;
mw_diameter_msg_pass := { uAA_MSG := mw_UAA_diamSuccess };
mw_diameter_msg_fail := { uAA_MSG := mw_UAA_basic };
p_monitorCompRef.start (
f_Iot_Diameter_receive(
{
},
{0, omit},
"TP_CX_HSS_UAA_04 - UAA",
p_forward_to_mtc,
p_checkMessage
)
);
p_monitorCompRef.done;
}
} // End of function f_mtc_check_TP_CX_HSS_UAA_04
} // end group g_HSS
} // end module AtsImsIot_TP_behavior_CX