aboutsummaryrefslogtreecommitdiffstats
path: root/sgsn/SGSN_Tests.ttcn
AgeCommit message (Collapse)AuthorFilesLines
2018-07-24Stop tests after failuresDaniel Willmann1-8/+24
Call mtc.stop after setverdict(fail), add reasons to most failures and fail with verdict error for internal errors. Change-Id: I9b618235939fa41160b9be6677b121963d3ec857
2018-07-21sgsn: Add test to verify GPRS ctx deact caused by GTP ErrorIndPau Espin Pedrol1-6/+31
Change-Id: I40e877f4126e62a731b071ae1d6d855fed210433
2018-07-21sgsn: Remove uneeded f_gtpu_send in f_gtpu_xceive_moPau Espin Pedrol1-1/+1
It's not needed for the functionality/scenario of f_gtpu_xceive_mo. It probably was left in when creating it from f_gtpu_xceive_mo. Change-Id: Ide226f8501c4598e2bfaa5f1ea62c3ff20807ce4
2018-07-21sgsn: Add Test to verify Recovery procedure during CreatePdpRespPau Espin Pedrol1-6/+53
Change-Id: Ic81b854967492194367b7ce8a667c29c777791bf
2018-07-21sgsn: Add Test to verify timer t3395Pau Espin Pedrol1-0/+37
Change-Id: I9ec0863603692045b0d8da376e65080150066173
2018-07-16sgsn: Fix TC_attach_pdp_act_user_deact_mtPau Espin Pedrol1-1/+1
Expect to receive a TearDown Indicator. Change-Id: I37dafb5e93ac06b3bd9cab2c06aa3735a8429f2f
2018-07-13sgsn: Add test to verify restart_ctr during echo req/reply.Pau Espin Pedrol1-0/+53
Currently test doesn't fully work because it doesn't match the PDP CTX DEL REQ correctly. Change-Id: I1dcb250dba2079c14b857c0b89a02ac21d1c591f
2018-07-13sgsn: f_pdp_ctx_deact_mt: force teardown to avoid sgsn ignoring msgPau Espin Pedrol1-1/+1
According to """ If a GSN receives a Delete PDP context without a Teardown In dicator or with a Teardown Indicator with value set to "0" and only that PDP context is active for a PDN connection, then the GSN shall ignore the message. """ Change-Id: Id5d4774d719685631e4b467dff833ae886c90145
2018-06-14sgsn: add TC_attach_check_complete_resend()Alexander Couzens1-0/+37
MS -> SGSN: Attach Request IMSI MS <- SGSN: Identity Request * MS -> SGSN: Identity Response * MS <- SGSN: Attach Complete 5x Change-Id: I9bbbda01f3c41a2f8acf13042d6bcc86f18d74ce
2018-06-14sgsn: f_TC_attach_closed_foreign: fail on recv an Attach AcceptAlexander Couzens1-0/+3
The test expect a reject. Recv an attach accept should fail then. Change-Id: I8a4ae6aaaa71dabb1d8a2ee7585e624b962a3500
2018-06-14sgsn: add TC_attach_closed_add_vtyAlexander Couzens1-0/+55
Check acl policy closed. VTY-> SGSN: policy close MS -> SGSN: Attach Request MS <- SGSN: Identity Request IMSI MS -> SGSN: Identity Response IMSI MS <- SGSN: Attach Reject VTY-> SGSN: policy imsi-acl add IMSI MS -> SGSN: Attach Request MS <- SGSN: Identity Request IMSI MS -> SGSN: Identity Response IMSI MS <- SGSN: Identity Request IMEI MS -> SGSN: Identity Response IMEI MS <- SGSN: Attach Accept Change-Id: I1832c339a9d54c0038433ad44e292031a8905e20
2018-06-12sgsn: add TC_attach_check_subscriber_listAlexander Couzens1-0/+22
MS <-> SGSN: Attach VTY -> SGSN: Check if MS is in subscriber cache Change-Id: If19073ef4a5b1e2219bd5184ae30d55ffb71844a
2018-06-12sgsn: TC_hlr_location_cancel_request_update: remove superflous Update ↵Alexander Couzens1-1/+0
Location Response There shouldn't be any update location pending Change-Id: I94b9307311a8095065212e1820cacc6cd2be0a3a
2018-06-12sgsn: add TC_attach_detach_check_subscriber_listAlexander Couzens1-1/+20
MS <-> SGSN: Attach MS -> SGSN: Detach Req (Power off) VTY -> SGSN: Check if MS is NOT in subscriber cache Change-Id: I0956d54760f19ca556fa0d16ea4c5b96ac13f2fa
2018-06-12sgsn: add TC_attach_no_imsi_responseAlexander Couzens1-0/+48
Ignores Identity Request IMSI. MS -> SGSN: Attach Request TMSI (unknown) MS <- SGSN: Identity Request IMEI (optional) MS -> SGSN: Identity Response IMEI (optional) MS <- SGSN: Identity Request IMSI MS -x SGSN: no response MS <- SGSN: re-send: Identity Request IMSI 4x MS <- SGSN: Attach Reject Change-Id: I4f41d59cfe6b0168b5e0874082fd700b56a7f0da
2018-06-12sgsn: add TC_attach_no_imei_responseAlexander Couzens1-0/+45
Ignores Identity Request IMEI. MS -> SGSN: Attach Request IMSI MS <- SGSN: Identity Request IMSI (optional) MS -> SGSN: Identity Response IMSI (optional) MS <- SGSN: Identity Request IMEI MS -x SGSN: no response MS <- SGSN: re-send: Identity Request IMEI 4x MS <- SGSN: Attach Reject Change-Id: Ie50c75e62e31e01c5b17969fb067664e44fd68a5
2018-06-12sgsn: TC_hlr_location_cancel_*: 5 seconds timeout is to shortAlexander Couzens1-3/+3
These tests failed on jenkins. Change-Id: I56a62e70763b7c331fc528cd7e4064a5ec9f2a04
2018-06-12SGSN: fix spaces/tabs in ↵Alexander Couzens1-2/+2
TC_hlr_location_cancel_request_unknown_subscriber_{withdraw,update} Fixes: 6c47f294954f ("SGSN: add TC_hlr_location_cancel_request_unknown_subscriber_{withdraw,update}") Change-Id: I5074dadf53ec75a9c709b28ff324e23fdcd13bfa
2018-05-29SGSN: add TC_hlr_location_cancel_request_updateAlexander Couzens1-0/+41
MS <-> SGSN: GMM Attach HLR -> SGSN: Cancel Location Request HLR <- SGSN: Cancel Location Ack Change-Id: I5d3a818eb0a4eb3b0d4bd7bd88874bd2ac6adb11
2018-05-26SGSN: add TC_hlr_location_cancel_request_unknown_subscriber_{withdraw,update}Alexander Couzens1-0/+49
Cancel Location using an unknown IMSI. HLR -> SGSN: Cancel Location Request HLR <- SGSN: Cancel Location Error Change-Id: Iad90c3cc25d72b9ab40e358fe60aa6f62163f146
2018-05-26SGSN: add TC_hlr_location_cancel_requestAlexander Couzens1-0/+32
MS <-> SGSN: GMM Attach HLR -> SGSN: Cancel Location Request HLR <- SGSN: Cancel Location Ack MS <- SGSN: Detach Request SGSN-> MS: Detach Complete Change-Id: Id5d6b018a5a4389eefa8f5d950324aab91709f5a
2018-05-15sgsn: fix a typo in commentAlexander Couzens1-1/+1
Change-Id: I061aba5af1e466b33472c9f829b982823bcff71e
2018-05-15sgsn: fix RAU_ATTACH not to interact with following testesAlexander Couzens1-0/+1
TC_attach_rau will interact with the following tests, because the sgsn is continuing sending RAU_ACCEPTs until it timed out or received a RAU COMPLETE Change-Id: Idac92bd61ee7145b7542e60c24e0a66b4ff7ddd4
2018-05-03sgsn: add test for attach_second_attemptAlexander Couzens1-0/+19
Do an attach direct after an attach succeeded. Relates: OS#2958 Change-Id: I767c3e3b0af6e7c6a1f9436fd17e2f515b0bbd05
2018-05-03sgsn: fix typo in comment of BSSGP_ConnHdlrPars:imsiAlexander Couzens1-1/+1
Change-Id: I544a626d914075c0fcf13017553017b898525e8c
2018-05-02sgsn: test umts aka with gsm sres responseNeels Hofmeyr1-11/+93
Add ability to test UMTS AKA, by f_gmm_attach() with flags to select UMTS AKA and to respond to it with GSM AKA SRES. Add TC_attach_umts_aka_umts_res and TC_attach_umts_aka_gsm_sres. Change existing TC_attach_* to also call f_gmm_attach(). (Actually, f_gmm_attach() is almost exactly the previous TC_attach function body.) osmo-sgsn change I36807bad3bc55c0030d4f09cb2c369714f24bec7 will implement proper handling of GSM AKA response and make TC_attach_umts_aka_gsm_sres pass. Related: OS#3193 OS#3224 Change-Id: I201ffeaee4439a413ab8289aceeccca9aba40a7a
2018-03-16sgsn: test GMM Attach with 3-digit leading-zero MNCNeels Hofmeyr1-4/+21
Add general infrastructure to - pass an MCC-MNC for BSSGP to use into f_init(); - verify that the Attach Accept PLMN matches the BSSGP one. Add TC_attach_mnc3() to feed an MNC with three digits and a leading zero, to verify the recent mnc3 patches. When testing against a libosmocore and osmo-sgsn before mnc3, this results in: Test case TC_attach_mnc3 finished. Verdict: fail reason: "mismatching PLMN in Attach Accept: 02342F; expected 023042" With the current master branches the proper 3-digit MNC with leading zero is fed back into the Attach Accept message. Change-Id: I8901ec0b090e342ebb04a04f9d759fc46c7d9cab
2018-02-18Add TC_attach_pdp_act_user_deact_mt for GGSN-originated PDP DEACTHarald Welte1-0/+39
Change-Id: I7eb653694f487f8bbf122146300c93be625b0f87 Related: OS#2961
2018-02-18sgsn: Add TC_attach_pdp_act_user_deact_moHarald Welte1-3/+42
Change-Id: I43cb7728658cae6590eb1bd31c7c285b942a265e
2018-02-18sgsn: Add new TC_attach_pdp_act_ggsn_rejectHarald Welte1-17/+39
Change-Id: I2da2b3811e843003920cd67ac47f2fc03016912f
2018-02-18sgsn: Use random TEID and Charging IdentifierHarald Welte1-3/+5
Change-Id: I39934396372b057eaf5446e9185e83a1d56c153c
2018-02-18sgsn: More commentsHarald Welte1-19/+19
Change-Id: Ie64bfc43b2d652f1f556628deb26544217a8286c
2018-02-18sgsn: Add user plane GTP testing (GTP->Gb and Gb->GTP)Harald Welte1-6/+108
Change-Id: Ifd62cca8cd9dbcffe4eac957db210ac13b8c633f
2018-02-18sgsn: Reduce logging verbosity of IPA/GSUP/NS/BSSGPHarald Welte1-4/+4
Change-Id: I55d1299ceaad1257959b298741a7321faacc4b45
2018-02-18BSSGP_Emulation: Add SNDCP decoding supportHarald Welte1-0/+5
Change-Id: Icd2e8feed9173b0a2729b7ee1cfac37a86eca6cf
2018-02-18sgsn: Fix hard-coded emulated GGSN IP addressesHarald Welte1-2/+2
Change-Id: Iaf42c25b4c345969c2aec209a6db6e56b69f15e3
2018-02-18sgsn: GTP Create PDP: Include missing required "Charging ID" IEHarald Welte1-1/+3
Change-Id: I7e4b71d7ca6e75f759f77fb47abc9816c0aa716d
2018-02-18sgsn: Store SGSN-side control + user plane IP addressesHarald Welte1-4/+8
Change-Id: Ic82910917167e667cfb26eb084f237140b4c986e
2018-02-18sgsn: Add TC_pdp_act_unattachedHarald Welte1-0/+28
Change-Id: I162ab7cb74102e6f15c4d685c49575bcd0b4f41c
2018-02-18sgsn: Fix syntax errors introduced in PDP Context Act patchesHarald Welte1-4/+4
those were undetected as 'sgsn' is not yet part of the subdirectory list in the master Makefile :/ Change-Id: I46b2baa10cc5a20cd0cb9c0bf32cc0e1a19d38e6
2018-02-18sgsn: First PDP CTX ACT test: TC_attach_pdp_actHarald Welte1-2/+176
Change-Id: Ia1bfaca99a2a70bb097e2ee44f54e4a31b849a1b
2018-02-18sgsn: Add TC_detach_* for various GPRS DETACH use casesHarald Welte1-0/+90
Change-Id: I2243b850400482b911d687585929a2eef3490954
2018-02-18sgsn: Add new TC_attach_rau: Attach followed by RA UpdateHarald Welte1-0/+51
Change-Id: I8f71bf83f4e6504f1cfbdc55a57e3ed62b3e5f25
2018-02-18sgsn: Implement TLLI assignment/modification/unassignmentHarald Welte1-2/+11
It's important that we implement the proper TLLI handling whenever our P-TMSI changes. Change-Id: I5b95b9e49f0a1db9659714c4d01f340fd44fafe8
2018-02-18sgsn: Reduce code duplication by introducing f_gmm_gsup_lu_isd()Harald Welte1-8/+11
Change-Id: I7a43eaa75201fc6c3afba67f6161aef872aca546
2018-02-18sgsn: Reduce code duplication by introducing f_mi_get_lv()Harald Welte1-79/+19
Change-Id: I8b970049074f5de9051a5a791278cd5d29f9d5ed
2018-02-18sgsn: Add TC_attach_gsup_lu_rejectHarald Welte1-7/+45
Change-Id: Id36733e7e51b252407c7513d8441db9a555fd30d
2018-02-18Implement TC_attach_auth_sai_rejectHarald Welte1-0/+29
Change-Id: I8a27c26bb2b6372faccd34c48a597a57783a924f
2018-02-18sgsn: Add TC_rau_unknownHarald Welte1-8/+72
Change-Id: If33fc690cedcc362c3cd5d7c1951440ecba328c2
2018-02-18sgsn: Add TC_attach_closed for "auth-policy closed"Harald Welte1-0/+42
Change-Id: Ic8aa77d1825fa2e39a09c3f0f0918ef24a3b3f7b