summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-09-18 14:30:23 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2018-09-18 14:33:42 +0200
commit92b12b748c53c8ffcd3ef1fe950a3555b5b97e0a (patch)
treee2979aac629737540eefaf1d65a4d1218762ffc4 /library
parentf097a8b94ee6a2f70d90709323b55d1bea7a4480 (diff)
bsc: test Classmark Enquiry
Enhance TC_classmark to also include the BSSMAP Classmark Request -> RR Classmark Enquiry part. So far it was only testing the return path of RR Classmark Change -> BSSMAP Classmark Update. This test will thus fail with current osmo-bsc master, and will succeed as soon as osmo-bsc If5db638fd6e8d9c2ef9e139e99f0fabe1ef16ddf is merged. Add: * ts_BSSMAP_ClassmarkRequest in BSSMAP_Templates.ttcn * tr_RRM_CM_ENQUIRY in L3_Templates.ttcn Change-Id: Idaab4d568cf986b4897ba008f6262c839d1592fb
Diffstat (limited to 'library')
-rw-r--r--library/BSSMAP_Templates.ttcn12
-rw-r--r--library/L3_Templates.ttcn15
2 files changed, 27 insertions, 0 deletions
diff --git a/library/BSSMAP_Templates.ttcn b/library/BSSMAP_Templates.ttcn
index d92ea61..a3a50de 100644
--- a/library/BSSMAP_Templates.ttcn
+++ b/library/BSSMAP_Templates.ttcn
@@ -944,6 +944,18 @@ modifies tr_BSSAP_BSSMAP := {
}
}
+template PDU_BSSAP ts_BSSMAP_ClassmarkRequest
+modifies ts_BSSAP_BSSMAP := {
+ pdu := {
+ bssmap := {
+ classmarkRequest := {
+ messageType := '58'O,
+ talkerPriority := omit
+ }
+ }
+ }
+}
+
/* return Layer3 octetstring inside BSSAP PDU */
function f_bssap_extract_l3(PDU_BSSAP bssap) return template octetstring {
if (ischosen(bssap.pdu.bssmap)) {
diff --git a/library/L3_Templates.ttcn b/library/L3_Templates.ttcn
index 557b1b8..1ce84cf 100644
--- a/library/L3_Templates.ttcn
+++ b/library/L3_Templates.ttcn
@@ -525,6 +525,21 @@ template (value) PDU_ML3_MS_NW ts_RRM_CM_CHG(MobileStationClassmark2_LV cm2,
}
}
+template PDU_ML3_NW_MS tr_RRM_CM_ENQUIRY := {
+ discriminator := '0110'B,
+ tiOrSkip := {
+ skipIndicator := '0000'B
+ },
+ msgs := {
+ rrm := {
+ classmarkEnquiry := {
+ messageType := '00010011'B,
+ classmarkEnquiryMask := *
+ }
+ }
+ }
+}
+
template (value) PDU_ML3_MS_NW ts_RRM_UL_REL(OCT1 cause) := {
discriminator := '0110'B,
tiOrSkip := {