aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2022-05-06HACK: BSC_Tests.TC_paging_loadlaforge/paging_loadHarald Welte2-5/+52
WIP HACK Change-Id: I0f36222e0da62b7178cc0d8b11a82a8cd9f1a153
2022-05-03remsim: server: TC_connect_{client,bankd}_duplicateHarald Welte2-0/+85
Add two new tests for the remsim-server, which simulate what happens if a client or bankd with identical ID connects twice. We expect the second connection to get rejected at RSPRO level, and to be closed. Change-Id: I29023f6b5ba430338c77bf01508c81bd6d8c99fa Ralated: OS#5527
2022-05-03bsc: Fix dangling subscriber talloc ctx in f_TC_paging_NreqPau Espin Pedrol1-1/+6
First, page only on BTS0, not all the BTS. This simplifies the test and also makes the subscriber be refcounted only on BTS0. Then, drop the OML connection after receiving all the expected paging requests; it will make the BSC flush the paging queue and hence avoid TTCN3 checks erroring due to dangling subscriber talloc contexts. Change-Id: Ibbd9168f3ac2c1cd4f4577644d75499d49c2823f
2022-05-03BTS_Tests: add TC_ipa_crcx_ack_addr reproducing OS#5242Vadim Yanitskiy1-0/+34
Change-Id: Ic85904c967238555a6243a3df2d9225b957d5a5c Related: OS#5242
2022-05-03BTS_Tests: workaround addr='0.0.0.0' in f_rtpem_activate()Vadim Yanitskiy1-8/+20
If a CRXC message contains optional remote IP and port IEs, the CRCX ACK received from the BTS is expected to contain its listen address and port. In some cases osmo-bts may indicate nonsense addr='0.0.0.0', and indeed the RTP_Emulation component is not gonna like this. This makes both BTS_Tests.TC_speech_rtp_tch[fh] test cases fail whenever executed in Docker: Connection refused (unexpected) Let's work this around by sending the remote IP and port IEs in additional MDCX message and omitting them in CRCX. This mimics osmo-bsc's behavior and makes both test cases pass. Change-Id: I03453e72f62819989dfe6aa12d8bd889fced1046 Related: OS#5242
2022-05-03library/RSL_Types: allow omitting IEs in ts_RSL_IPA_CRCXVadim Yanitskiy1-7/+36
Change-Id: I7c36c3de1716968bccb07b03d2141d9abb3c175f Related: OS#5242
2022-05-02bsc: Introduce test TC_paging_450req_no_paging_load_indPau Espin Pedrol2-13/+35
Change-Id: I787cba895f1cb6c5bfef95259bcf69b4291a9237
2022-05-01cbc: Expect CBC to include Channel Indicator IE in CBSP KILLHarald Welte1-1/+2
This should be present for all KILL relating to CBS. Change-Id: Id9f280158a0370134ec4a4ca9a977d884670b27e Related: SYS#5906, OS#5540, OS#5541
2022-04-30bts/osmo-bts.cfg: reduce OML logging verbosity, degrade to noticeVadim Yanitskiy1-1/+0
Average size of osmo-bts.log after running ttcn3-bts-test is ~178 MB, and more than 52% (!) of it is the OML logging messages. Other than making the logfile bigger, bursts of OML messages make it really hard to follow the output of osmo-bts when running tests natively. Change-Id: Ib5346a3ca42917169e195f905472ccea7579e5eb
2022-04-29bsc: Avoid sending CCCH Load Ind (paging) when RSL C0 becomes upPau Espin Pedrol1-1/+0
The paging CCCH Load Ind should only be sent when the BTS is over the threshold, which is not the case when it starts up. The BSC should underststand that the BTS under threshold and be able to send paging requests. Change-Id: I19a97e97ec96ba8ea2e28b1be8ac3b706b43e1b7
2022-04-27bsc: Increase test coverage for CBSP emergency broadcastsHarald Welte2-13/+121
This adds new tests: * TC_cbsp_emerg_write_bts_cgi_noreplace * TC_cbsp_emerg_write_bts_cgi_replace * TC_cbsp_emerg_write_bts_cgi_kill All of the above relate to improved / fixed handling of emergency broadcasts in some corner cases. Related: SYS#5906 Related: OS#5539, OS#5540 Change-Id: Ic0f0b3d620f3ca73bab3d45997d0c1b9433ac1f7
2022-04-27bsc: CBSP code refcator: Add f_exp_rsl_etws()Harald Welte1-48/+34
This function reduces code duplication between CBSP tests. Change-Id: I69bedd43bc88bc619b80bf9038da901bbff9f04b
2022-04-27bsc: Fix TC_cbsp_write_then_kill expectationsHarald Welte1-2/+2
A more clear reading of TS 48.049 is that the KILL COMPLETE should *only* contain a Cell List IE if it relates to an Emergency message; only the Number of Broadcasts Completed IE indicates successful cells. osmo-bsc fixes this in I9a43d386da01f085663d231a555b8b5acc99faca Change-Id: Ia50e50f9812d9934d35d32b25e1079240df04a82 Related: SYS#5906
2022-04-27CBSP: tr_CBSP_REPLACE_CBS_COMPL: num_compl_list is optionalHarald Welte1-2/+10
The list might be empty because either there were no broadcasts completed in case of a CBS message, or because it was an emergency message where this IE is never used. Change-Id: I2b24ac7e5857bdd50a821399b3c383cea9d408ad
2022-04-26bsc: TC_paging_500req: Validate initial transmissions have higher prioPau Espin Pedrol1-0/+3
After osmo-bsc Change-Id I1ae6d97152c458247bc538233b97c2d245196359, initial requests are prioritized over retransmits. Before that feature was in place, when sending 500 requests in this test to the BSC, it could happen that the paging scheduler triggered (every 500ms) before all the 500 requests were received at the BSC. As a result, the scheduler would put some requests to the end of the queue after sending an initial request for it towards the BTS. If later more requests where received from TTCN3, they'd be put at the end, after the retransmissions. As a result, the emulated BTS would in general receive retranmits for the first bunch of requests before receiving the initial transmit of the later requests. Ths is no longer the case since the osmo-bsc is prioritizing now the initial requests. Hence, we'll only start receiving retransmits after all the new paging requests are received. Depends: osmo-bsc.git I1ae6d97152c458247bc538233b97c2d245196359 Change-Id: I5876f828b43e1e51bd892ce3c9a4dbed6b53f066
2022-04-25bsc: TC_emerg_premption: check BSSMAP Clear Req causeNeels Hofmeyr1-0/+21
On the first TCH, establish Layer 3 so that the BSC will issue a Clear Request at all. Verify the cause value of the Clear Request. Tear down the established Layer 3: clean up for the leak check. Related: OS#5535 Depends: I20108f7b4769400b89b7b0d65c8dab883bf87c46 (osmo-bsc) Change-Id: Ib13be73119cfc96712f32899c02e655e1751d547
2022-04-25bsc: TC_emerg_premption: test RR rel causeNeels Hofmeyr1-2/+7
Related: OS#5534 Depends: I0423621d15ace11a53ae1653e5e7f5cb93605edb (osmo-bsc) Change-Id: I47e919edc25a8427f49d654f97f05e46a89da16d
2022-04-25bsc: TC_emerg_premption: clarify chan_nrNeels Hofmeyr1-7/+8
Rename chan_nr to first_tch, and more clearly show that the TCH that is released gets assigned to the emergency call. Related: OS#5534 Change-Id: I0c540d76eedfd4115b410921bf5a0b6c2d00b5c2
2022-04-25pgw: Add TC_gy_charging_cc_timePau Espin Pedrol1-0/+25
Related: SYS#5276 Change-Id: Ie4e567f62bbbdba276e6b3221111c8d9f82cde14
2022-04-22bsc: Introduce test TC_paging_500reqPau Espin Pedrol1-0/+61
Related: SYS#5922 Change-Id: I4f7185939c20804deef92f476ed19248ba885f29
2022-04-22pgw: Initial Gy supportPau Espin Pedrol1-6/+82
Related: SYS#5276 Change-Id: I04cf78cb4bc73de59f803c01208a7ef9056cb14f
2022-04-20pgw: Support having several DIAMETER_ConnHdlr per PGW_Session_CTPau Espin Pedrol1-29/+62
A new intermediate component DIAMETER_ConnHdlr_CT is added which extends the required DIAMETER_ConnHdlr by the DIAMETER_Emulation, and forwards it to the PGW_Session_CT. This way, the PGW_Session_CT, which usually runs the test code, will have access to GTP2, Gx and Gy messages for the session. Initial Gy support for PGW_Tests is added in follow-up patch. Change-Id: I28f1ac0a013e479058f28a6feff6901b33f6c247
2022-04-20ggsn: Fix TC_addr_pool_exhaustion not answering Gy CCR terminationPau Espin Pedrol1-0/+1
Change-Id: If126840001b1e10d3dee86d678e624a0584337e8
2022-04-15bsc: Expect number-of-broadcadsts-completed-list in CBSP KILL COMPLETEHarald Welte1-5/+11
When responding to a CBSP KILL with a CBSP KILL COMPLETE, make sure we include the optional "Number of Broadcasts Completed List" IE in order to inform the CBC about how many times the just-killed message had been broadcast before it was killed. It seems some CBCs expect this IE to be present, while 3GPP TS 48.049 lists it as optional. osmo-bsc is including this IE as of Change-Id I47aebd613dfc6dd9261ea9019a51aff0cd6470d8 This change updates the test suite to expect this IE to be included. Change-Id: I5b56676c93479ec7b32cff66c9738fff7d0228cf Related: SYS#5906
2022-04-14bsc/osmo-bsc.cfg: explicitly set AMR link adaptation parametersVadim Yanitskiy1-0/+12
The default AMR link adaptation parameters have been changed in the recent osmo-bsc, so set the old expected default explicitly. Change-Id: I320d91a35bc50bdfe87c0384035a10b8672ef23c Related: osmo-bsc.git Ic5f8d55d250976d8d4c9cae2d89480fd52326717 Related: SYS#5917
2022-04-12Avoid generating zero-length packetsHarald Welte7-19/+29
I used the construct like f_rnd_octstring(f_rnd_int(100)) in a number of places to generate random-length packets with randomized length. The problem I didn't realize is that f_rnd_int() of course can also return '0', which would generate zero-length packets. This may be permitted in some protocols, but it leads to problems e.g. when trying to send a UDP packet of zero length (which the kernel will not do). So let's introduce * f_rnd_int_nonzero() for returning non-zero randomized integers * f_rnd_octstring_rnd_len() for returning a random-length random payload octet string * replace all f_rnd_octstring(f_rnd_int()) call sites with the new function. Change-Id: I818a113ff8d2a2f7cab2ec7d9c8661607c6331d6 Closes: OS#5528
2022-04-12GTPv2_Emulation: Increase reset_all_stats timeoutPau Espin Pedrol1-3/+3
Release of 256 tuns + threads takes quite a reasonable amount of time. Let's increase the timeout since reset_all_state can take around 10 seconds sometimes. Related: OS#5523 Change-Id: Ie01e07bd698cb5c386f757f4ec315f4892ad61cb
2022-04-12bsc: fix sccplite test fallout: deactivate as_Media in f_ho_into_this_bsc()Neels Hofmeyr1-1/+2
Deactivate as_Media() once the handover is completed, so that it does not fail on the expected MGCP DLCX from release. Fix fallout seen in these tests: SCCPlite BSC_Tests.TC_ho_into_this_bsc BSC_Tests.TC_ho_into_this_bsc_a5_0 BSC_Tests.TC_ho_into_this_bsc_a5_1 BSC_Tests.TC_ho_into_this_bsc_a5_3 BSC_Tests.TC_ho_into_this_bsc_a5_4 BSC_Tests.TC_ho_into_this_bsc_a5_1_3_no_chosen_enc_alg BSC_Tests.TC_ho_into_this_bsc_a5_1_3 BSC_Tests.TC_srvcc_eutran_to_geran BSC_Tests.TC_srvcc_eutran_to_geran_a5_3 BSC_Tests.TC_srvcc_eutran_to_geran_src_sai BSC_Tests.TC_srvcc_eutran_to_geran_forbid_fast_return BSC_Tests.TC_ho_into_this_bsc_sccp_cr_without_bssap All of these tests use f_ho_into_this_bsc(). (It is not clear to me why only the SCCPlite tests show the fallout, the AoIP should be similarly affected, but isn't.) The failures were introduced by recent merge of I0633f60f09d58802f6be0238ef41a632d93a4327, which made as_Media() stricter by failing on early DLCX. Related: SYS#5916 Change-Id: Ic5650a48eb3d90f2b42f16685178c97b54473429
2022-04-11pgw: Don't expect Gx messages during delete of unknwon sessionPau Espin Pedrol1-3/+4
Same approach as implemented for GGSN_Tests in 10ec96e24b7d7fc8dd4fe6e023cc06514f53c66e. Change-Id: I7ad1fcae612a562d6643f9f01db3a4e7941f3666
2022-04-11pgw: Wait for component to get out of SUT's Diameter SUSPECt listPau Espin Pedrol1-0/+6
Similar fix was applied to GGSN_Tests when adding Diameter support in commit 0bcfd9de8ff359673ddb71e013dbad44bf9510cc. Change-Id: I95ddf6c1048f0bfd6590bae574aea15c4fc2710b
2022-04-11DIAMETER_Emulation: Allow up to 256 IMSI Diameter componentsPau Espin Pedrol1-2/+2
TC_createSession_ping4_256 requries 256 concurrent connections. Change-Id: Idc305a868f827dee63a476979fc9de9fc12580c5
2022-04-11DIAMETER_Emulation: Fix typo in commentPau Espin Pedrol1-1/+1
Change-Id: I6163fc9153082598c7211b16a7c18fb95cf3d08a
2022-04-11DIAMETER_Emulation: Rename association tablePau Espin Pedrol1-23/+23
The table has no direct relation to SGSAP, it tracks IMSI connections in a generic way. Change-Id: I12399465549739fb99af193e7071fff8bc452b0b
2022-04-11ggsn: Initial testing of open5gs Gy interfacePau Espin Pedrol4-15/+249
Related: SYS#5276 Change-Id: I10027d4f8adc6b47ce97b90514d1f13e9aa3d40d
2022-04-11BTS_Tests: tune waiting timeout in TC_rsl_ms_pwr_dyn_upVadim Yanitskiy1-2/+4
Since recenly, osmo-bts is using P_CON_INTERVAL=2 by default. This means that the MS power loop gets triggered every 4th SACCH block (1.92s), so we need more time to reach the maximim Tx power. Change-Id: I9266f7284fcdb0afa3473f575640689e334e89a8 Related: osmo-bts.git I91c505447f68714239a4f033d4f06e91893df201 Related: OS#5517
2022-04-07pgw: Fix typo in expected-results.xml namePau Espin Pedrol1-0/+0
Change-Id: I49342db43e81d3e95fa5d13de4cd77b6a67a7af7
2022-04-07pgw: Add expected_results.xmlPau Espin Pedrol1-0/+9
Change-Id: I451b10a7b79854e630e7f2d487423dc39ade5bbd
2022-04-07pgw: Add T_guardPau Espin Pedrol1-1/+14
Change-Id: I9dce4aee4a0b1181bb7dc1a53fb254e6d17cf22e
2022-04-07bsc: add TC_emerg_call_and_lcs_loc_reqNeels Hofmeyr2-0/+104
An emergency call often comes with a Location Request. Make sure osmo-bsc handles it well. Related: SYS#5916 Change-Id: I95037374c45943cb14401bc48f16a39c2fcbe1f5
2022-04-07bsc: as_Media_mgw: fail on DLCXNeels Hofmeyr2-5/+16
as_Media_mgw() is used to establish a voice stream. If a DLCX happens as part of that, that should be flagged as a problem. In fact the Mode Modify test with current osmo-bsc does exhibit a DLCX right upon the Assignment Complete message, which is a bug fixed in I5ab10ee7fd9c5d7608e8a06893881d990943feed. This patch now correctly flags this as a failure. In the two tests TC_ho_in_fail_no_detect, TC_ho_in_fail_no_detect2 the expected failure causes expected DLCX, so exempt those. Related: SYS#5916 Change-Id: I0633f60f09d58802f6be0238ef41a632d93a4327
2022-04-06Diameter_Templates.ttcn: Avoid sending AuthAppId Relay in CEAPau Espin Pedrol1-2/+0
We don't really act as rely agents in the emulation, so let's not announce it. Furthermore, this aids libfreediameter selecting proper routes, since it seems to only underscore peers not matching the AppId if they are not rely agents (see dont_send_if_no_common_app() in freeDiameter.git) Change-Id: I0a9daf094f4c27c0b4de5581ddd56feced8e5732
2022-04-05BTS_Tests: add altstep as_dl_sacch_lapdm_abVadim Yanitskiy1-0/+21
Change-Id: I3ba17683892e8aa1694bb6dd32d8b37660020026
2022-04-05pcu: Introduce test TC_dl_llc_sapi_priorityPau Espin Pedrol1-0/+99
Related: OS#5508 Related: SYS#5908 Change-Id: I26308a59718a6470853c964583a39986006e59c0
2022-04-05RLCMAC_EncDec: Fix bug decoding LI[0]=0Pau Espin Pedrol1-0/+9
Change-Id: I86c1b48c922f50013257c8dce405cbad1d77d868
2022-04-02fix sgsn and hnbgw test issue introduced in ↵Eric Wild2-0/+3
49888a65dcf1f8d94411aa0724530b8c188c3237 ranops was not isvalue because bssap_reset_retries was not set and not explicitly omitted either, so the ran adapter decided not to create a ran emulation... Change-Id: Ib2d3f1fbcfbd53af1e627bd2cf36c3153fa7d012
2022-04-02fix bsc test issue introduced in 49888a65dcf1f8d94411aa0724530b8c188c3237Eric Wild1-0/+1
ranops was not isvalue because bssap_reset_retries was not set and not explicitly omitted either, so the ran adapter decided not to create a ran emulation... Change-Id: Ibbef035929ec861fec1e8554460e22650b386f83
2022-03-31ran emulation: allow multiple reset attemptsEric Wild5-11/+25
bsc-nat introduces a delay that will lead to failed tests, since the reset attempt happens too early and times out, and the tests do not retry. Change-Id: I9f6db2a24e984eef31e76f9d42a80eb6a1bb6928
2022-03-30BSC_Tests_CBSP: add a new testcase TC_cbsp_write_rep_period_numVadim Yanitskiy1-0/+56
Change-Id: I169c482ea5de040df63db4c605ac9cae19f8d28f Related: SYS#5905
2022-03-28bsc: Add tests for CBSP MESSAGE STATUS QUERY procedureHarald Welte2-0/+149
Change-Id: I124a69c515d634bc054ed35e430af6b3c11ad46e Related: SYS#5909
2022-03-28CBSP_Types: Fix typo num_bcats_compl -> num_bcast_complHarald Welte1-5/+5
Change-Id: Ic51b3071ea9233a053cb1ee837b910d9250010d2