aboutsummaryrefslogtreecommitdiffstats
path: root/hlr/HLR_Tests.ttcn
AgeCommit message (Collapse)AuthorFilesLines
2020-01-29hlr: new test: TC_MSLookup_GSUP_proxyosmith/dgsmOliver Smith1-0/+53
Let OsmoHLR act as proxy between MSC and another HLR during Location Update. Related: OS#4380 Change-Id: I945e651f1346e56dbe3c02d9d08ccd95cc8d6626
2020-01-29hlr: add emulated GSUP server (second HLR)Oliver Smith1-5/+66
Prepare for upcoming D-GSM test, which needs to emulate a GSUP server. Related: OS#4380 Change-Id: Idbfe8a145c90a524145089a06d9bbefac4d7edd8
2020-01-24hlr: add TC_MSLookup_mDNS_serverOliver Smith1-0/+83
Send an mslookup mDNS request to OsmoHLR and verify the answer. Related: SYS#4618 Depends: osmo-hlr I2fe453553c90e6ee527ed13a13089900efd488aa Change-Id: Ia7f92d33691f910549353b16a7b0efc18e521719
2020-01-20hlr: f_perform_UL: add CnDomain parameterOliver Smith1-2/+3
Make it possible to do CS location update, not only PS. This is needed for upcoming D-GSM related tests. Related: SYS#4618 Change-Id: Idd699f054c9242614b9bea066428293f8b2da9c2
2020-01-15hlr: add TC_gsup_sai_num_auth_vectorsAlexander Couzens1-4/+61
TC_gsup_sai_num_auth_vectors tests the GSUP IE GSUP_IE_NUM_VECTORS_REQ which allows the client to ask for a specific amount of auth tuples in a Send Auth Info request. Change-Id: I10a523cbaf08fe42924ffd0dc498496fdc76395f
2019-12-03hlr: Don't attempt to find AUTN in 2G-only tupleHarald Welte1-1/+3
In Change-Id I40c6cf7e28ad9331e6c27fe7acafa3f9e277eedf we introduced a patch that verifies the AMF separation bit for 3G/3G vs 4G authentication. However, the test ignored the fact that AUTN cannot be present in pure 2G tuples. This makes TC_gsup_sai pass again. Change-Id: I9b61e62a58b583461dd5e67dd12119be282cae21
2019-12-02HLR: Add test for generating EPS (LTE) tuples with separation bit == 1Harald Welte1-2/+75
Depends: osmo-hlr Ic766bc40f6126bb479bd0a05b0e96bec3e240008 Change-Id: I40c6cf7e28ad9331e6c27fe7acafa3f9e277eedf
2019-11-25hlr: stop on various failuresNeels Hofmeyr1-1/+15
I found some of the tests hard to analyse when geting failures, because they don't stop the test on failure. Spread some 'mtc.stop' so that the test stops at the failed message instead of carrying on. Change-Id: I804aca84d0ccf4767a5c097cf6c882ccbd87c4e1
2019-06-18hlr: add create-subscriber-on-demand testsOliver Smith1-0/+173
Test all possible code paths where a subscriber on demand can be created: * Check IMEI early * Location Update * Send Auth Info Related: OS#2542 Change-Id: Id544fa906ad442c2bbbccff437c18d04ddccde2e
2019-06-13hlr: add Check IMEI testsOliver Smith1-0/+110
Create tests for most code paths of rx_check_imei_req() in hlr.c (except for subscriber create on demand, this will be in an upcoming patch). Add missing message types to GSUP_Types.ttcn, and adjust the IMEI and IMEI_Result IEs for consistency with the existing IEs, and to make the tests compile. Related: OS#2541 Change-Id: I97c8462f0817149feadd0c4865e3df6c2af92a80
2019-06-13hlr: add f_vty_subscr_show_nomatch()Oliver Smith1-0/+13
Allow to check if a certain pattern does not match the "show subscriber" output. This will be used by upcoming tests for the check IMEI GSUP message type, to check if the IMEI was not stored, depending on the OsmoHLR configuration. Change-Id: I176d8fd2ee74e1eb7ac797f931cd6005d398740f
2019-05-27cosmetic: Update copyright statement, license notice and SPDXHarald Welte1-0/+14
Some of our files didn't have a copyright notice at all, let's add it. Also, update the notices in other files and ensure a SPDX identifier is present in all but the most trivial files. Change-Id: If7fa19ce484b415bc645e39b3d0d666b44b5f0fd
2019-03-29HLR_Tests.ttcn: suspend some compilation warningsVadim Yanitskiy1-20/+34
In the most use cases of f_SS_expect() we are not interested in GSUP_PDU returned by this function. Calling it without storing the returned value causes TTCN-3 compiler to complain: warning: The value returned by function `@HLR_Tests.f_SS_expect' is not used Let's make use of previously unused variable 'res', and save the returned GSUP_PDU to make the TTCN-3 compiler happy. Change-Id: Ifda42aa18af8076013b436364513296b2b008731
2018-11-29library/GSUP_Types.ttcn: fix missing session state IE in PROC_SS_ERRVadim Yanitskiy1-4/+4
Both session state and session ID IEs are always being encoded together by libosmocore's GSUP implementation. So, if a message contains a session ID IE, session state IE shall also be there. For some reason, the session state IE was missing in both ts_GSUP_PROC_SS_ERR and tr_GSUP_PROC_SS_ERR templates. This could led to incorrect matching in our test cases. This change fixes both templates by adding the missing IE. Since tr_GSUP_PROC_SS_ERR templete is used in HLR_Tests.ttcn, all the affected matching statements were also corrected. This correction doesn't affect successful test case executions, because we don't test possible problematic situations yet. But if something went wrong on the HLR side (i.e. SUT), the matching statements wouldn't match the PROC_SS_ERR message correctly and continue to wait until the guard timer is expired. Change-Id: I44070396ce7119eab4608d9f9fb090bb223dfaa2
2018-11-28HLR_Tests.ttcn: introduce TC_mo_sss_rejectVadim Yanitskiy1-0/+50
As at the moment, OsmoHLR doesn't support "structured" SS, such requests are being rejected. This test case aims to verify that. Change-Id: I147b919d0242b3b44e39a4587bf1b4660fa58bd2 Related: OS#3651
2018-08-08HLR: Actual USSD test casesHarald Welte1-3/+338
Change-Id: I74a3419140179b1625e82d1298864e424fb81398
2018-08-08hlr: actually register simulated MSC as "MSC" identity to HLRHarald Welte1-0/+1
Change-Id: I3b6dc719318db8aef960f3249c16c20deb5793a7
2018-07-24Stop tests after failuresDaniel Willmann1-6/+6
Call mtc.stop after setverdict(fail), add reasons to most failures and fail with verdict error for internal errors. Change-Id: I9b618235939fa41160b9be6677b121963d3ec857
2018-06-15hlr: Port HLR tests to use GSUP_EmulationHarald Welte1-126/+264
Going via GSUP_Emulation (rather than using GSUP_CodecPort directly) adds many benefits, such as: * ability to have multiple transactions in parallel * no silent discard/ignore of unexpected GSUP messages, like those for IMSIs we don't expect. Change-Id: Id2ddd6b81c374ad6350b62fcc5442436757d66cd
2018-06-12Osmocom_VTY_Functions: move f_vty_transceive_match from HLR to this libraryAlexander Couzens1-8/+0
f_vty_transceive_match will be used by future SGSN tests. Change-Id: Ia69ab6d5639c2e10059f88c8cc97463820cb72e6
2018-04-09improve failure diagnostics in TC_vty_msisdn_isd HLR testStefan Sperling1-0/+4
Check for reception of an Insert Subscriber Data with outdated MSISDN. This happened to me while working on a fix for issue OS#2785, and it seems to be an easy mistake implementations can make. Catch this situation in the test and log an explicit message about the problem. Related: OS#2785 Change-Id: Ib0809617cca621cc22f29b078828057fd49f27e5
2018-03-02hlr: Distinguish "invalid IMSI" from "unknown IMSI" casesHarald Welte1-2/+16
Change-Id: I6ded77b3029aae6bc3fe022190819b6a86189f5a
2018-03-02f_rach_toffs: Print toffs256 value in verdict when failingHarald Welte1-1/+0
Change-Id: I82a8f7c8dd3ce3327aa43bfb9f03795531718320
2018-03-02hlr: Add testcases for PURGE_MS procedureHarald Welte1-0/+95
Change-Id: I9d54d5e4b6fe24d3ee710b57e0c69a30b89d3450
2018-03-02hlr: Fix test of UL+ISD state machineHarald Welte1-0/+1
Don't exit too early: After sending ISD.resp we still need to wait for the UL.res from the HLR before continuing processing. Change-Id: Iab42a397cbca83b86fc8a6b26ae2d66abb81c187
2018-03-01hlr: Add TC_vty_msisdn_isdHarald Welte1-0/+41
This tests whether the HLR is sending an InsertSubscriberData to the VLR of an active/registered subscriber after the MSISDN is updated in the HLR. Change-Id: I597a3c2d49aa6fa65007304105363a3e99fa4ae9 Related: OS#2785
2018-03-01hlr: Reduce code duplication by using templateHarald Welte1-3/+6
Change-Id: I7dcf0d27144e5dcf29babcb679ca9ef04b1f46a3
2018-03-01hlr: More test coverageHarald Welte1-13/+347
Change-Id: Ic93a2e7498343abcb709d7018c4d49811252342c
2018-03-01hlr: Make test run again using current OsmoHLR / TTCN-3 libraryHarald Welte1-2/+14
Change-Id: I4304d6f69a349845d74a9dbe5e366525d5d8956f
2018-03-01hlr: Integrate VTY and CTRL supportHarald Welte1-1/+18
Change-Id: I3fbc26a98d31df6d4753848bba655a517801d686
2018-03-01hlr: Rename module + file from GSUP_Test to HLR_TestsHarald Welte1-0/+54
Change-Id: I906c0046a4cf6ae95e5a0aca918f4375fedfea55