Commit Graph

4008 Commits

Author SHA1 Message Date
Pau Espin 9c1c2ae6b6 ggsn: Early exit test if f_wait_icmp6() fails
Change-Id: Ida6be6194f98de44dca804759c85016031cae61c
2023-12-06 14:11:45 +00:00
Daniel Willmann 09ed994961 gbproy/ns: Make components alive
Might help with random test failures on shutdown, see OS#6273 for
details.

Change-Id: I59578934c6406bea5eb8d55d3641737e555a2d85
Related: OS#6273
2023-12-05 15:47:05 +01:00
Pau Espin af74650899 hnbgw: Introduce test TC_rab_assign_mgw_iuup_addr_chg
Change-Id: Ibfc37118ed3a67e4ca3f417273bedba127be7639
Related: SYS#6657
Related: OS#6127
2023-12-04 12:17:07 +01:00
Pau Espin 0c35a6363b hnbgw: Allow announcing a different mgw-local IuUP address after MDCX
This will allow emulating an MGW deciding to change its local IuUP IP
address due to received remote address in MGCP MDCX, and announce the
changed address back in MGCP MDCX. A test validating this scenario
against osmo-hnbgw will be added in a follow-up patch.

Related: SYS#6657
Change-Id: Ia724e0363a8bab56f5d31e7f7f7a127af584f935
2023-12-04 12:17:07 +01:00
Pau Espin 264679fa7c hnbgw: Rename record CrcxResponse->MgwResponse
The previous name is misleading, since they are also used during MDCX.

Change-Id: I1ffcb1100b0f92f7175ff08f9d4df49c0cf596b5
2023-12-04 11:16:41 +00:00
Pau Espin b85ac2ffe2 hnbgw: Rename mgcp conns to reflect each side peer
Change-Id: Ie68d0397a56d48223fb4b1ffe1710f988518257f
2023-12-04 11:16:41 +00:00
Neels Hofmeyr 8f4db54e95 bsc: tests recovery from BORKEN after release failed
Related: osmo-bsc Ic4728b3efe843ea63e2a0b54b1ea8a925347484a
Related: SYS#6655
Change-Id: I9b4ddfc4a337808d9d5ec538c25fd390b1b2530f
2023-11-30 02:33:11 +00:00
Philipp Maier 7c66d8087f PCU_Tests: tell PCU a more realistic BTS model
In ts_PCUIF_INFO_default we set the bts_model member to
PCU_IF_BTS_MODEL_UNSPEC. This means that the PCU will not know the BTS
model and thus it is not able to comply to the specific pecularities of
the BTS model that is used. In PCU_Tests.ttcn we simulate the behavior
of an OsmoBTS with OsmoTRX, therefore we should set the BTS model to
PCU_IF_BTS_MODEL_TRX.

This will also fix the problems we have with unexpected DUMMY messages
we currently receive since in an OsmoTRX based BTS model those frames
will be generated by OsmoTRX and do not appear on the PCUIF interface.
When the BTS model is left unspecified, then the PCU will generate those
DUMMY messages and irretate the testsuite.

Related: OS#6191
Change-Id: I6b516eece6acc96ebde9759bcb609197a245dd84
2023-11-28 12:45:36 +01:00
Neels Hofmeyr 6ce7d07623 hnbgw: fixup for osmo-hnbgw-with-pfcp.cfg
Drop a config line that should not be committed; it was added during
local testing of logging patches that are still unmerged.

Change-Id: Ie29c0e0d80c9318c104fe884868a30c17b6997bb
2023-11-22 21:49:20 +00:00
Philipp Maier c65db25a51 PCUIF_Types: make PCUIF_info_ind field bts_model optional
The field bts_model has been introduced with PCUIF v12, which is now
used in master. In latest we still use PCUIF v11, where the bts_model
field is not present. This means that when we test against osmo-bts
latest there will be an error parsing PCUIF_info_ind. A solution to this
problem is to declare the bts_model field as an optional field until
PCUIF v12 is also used in latest.

Related: OS#6191
Change-Id: I45947f3bddaccafee82824ebb1b8494eabc67e7a
2023-11-22 15:43:03 +01:00
Andreas Eversberg 412e9ab66a BTS_Tests_LAPDm.TC_sabm_retransmit_bts: Fix time to wait
Wait 20 seconds, because T200 on SDCCH, SAPI 3 lasts about 2 seconds.

Relates: OS#5970
Change-Id: I593008420f58cc1d5e4778874f9071914d24f82e
2023-11-22 12:24:25 +00:00
Andreas Eversberg 4aef798c06 BTS_Tests_LAPDm.TC_nr_seq_error: Fix test
Related: OS#5968
Change-Id: I4cdff6ab607e158d4956a1bd87f74e9e75579cff
2023-11-22 12:24:20 +00:00
Vadim Yanitskiy e2d2a5d677 BTS_Tests: extend TC_early_immediate_assignment: run on trx_nr=1
This patch demonstrates the problem with handling of the Early IA:

* the first part remains unchanged: assign a channel on C0 (arfcn=871);
* the second (new) part tests channel assignment on C1 (arfcn=873).

As of now, osmo-bts does not meet our expectations for the second part.

Change-Id: I7517574a8095ddfa05c34c4c3d4accf2bd07894b
Related: SYS#6655
2023-11-22 02:48:17 +07:00
Vadim Yanitskiy a120d03c13 RSL_Emulation: allow RSL_DchanHdlr sandbox escape for both roles
This feature was initially added in 1470fc668 for the RSL_Emulation_CT
operating in the BTS role.  In a subsequent patch I also need to escape
the sandbox, but in my case the RSL_Emulation_CT is playing the BSC role.

Change-Id: I42557f85d3e5e7ef7147a87293f5dd1716884534
Related: 1470fc668 "allow ASP_RSL_UD on MSC_ConnHdlr RSL"
Related: SYS#6655
2023-11-22 02:37:43 +07:00
Philipp Maier e0666ea5bc PCUIF: upgrade to PCUIF v12
We have added an additional bts_model field to the PCUIF_info_ind. This
also means that we have to increment the PCUIF version number since
adding fields is a major change to the protocol. This patch updates the
related TTCN3 record and also increments the PCUIF version number.

Related: OS#6191
Depends: osmo-pcu.git I48eb75f65ab54fdec41ef913e24c1f18cd4a4047
Change-Id: Ib1516e66c70f021adee49f41bd707803fc06f9cf
2023-11-21 09:17:55 +00:00
Alexander Couzens 9e3c233c7a hlr: add imsi unknown cause test case
Check if the reject-cause is correct implement when the subscriber
couldn't found.

Depends-on: Icea39020c23fbbea9e92847df76af8986fdbf48a (osmo-hlr)
Change-Id: I87c3a2d7304b81cfc11a364d933567e1a080b99a
2023-11-16 13:30:21 +00:00
Oliver Smith aa919b40f1 hnbgw: run TC_second_rab_assignment on nightly
Fixes: OS#6253
Change-Id: Id09b1a22dbd391c19ecfe34af990ec1ef3bb5089
2023-11-15 06:20:13 +00:00
Alexander Couzens c583dea140 dia2gsup: sleep(1) to forget diameter state
Sleep to allow the remote to forget the connection (see diameter connect timer).

Related: OS#5657
Change-Id: Ib909eff5c381c6271b9d16e383bed3e78ca454da
2023-11-11 19:03:55 +01:00
Oliver Smith 0bc9e96b22 hnbgw: osmo-hnbgw.cfg: reduce X31 to 5s
Set X31 to 5s as expected by the testsuite. The config files changed
here are not used by jenkins, but are used for manual testing by some
developers.

Previous patch ee4ce863 ("hnbgw: Introduce mp_hnbgw_timer_x31") already
sets the timer in one of the configs, move it to the end and add the
comment to make it consistent here and with the configs in
docker-playground.

Related: docker-playground I223d38e9ec2ca0f9f2ce2ac5311932789f328c9a
Change-Id: I1c275a1d10cfe0fe67d71e900881b0c4891af0be
2023-11-09 10:57:06 +01:00
Neels Hofmeyr c3c01d37a3 add HNBGW_Tests.TC_second_rab_assignment
Related: SYS#6624
Related: osmo-hnbgw I25bf19981cd75a87a7ceb3382dae1ec626ae475c
Change-Id: Iadaba0e5e82ad6d163ad509904ede213e2462d5c
2023-11-07 04:18:38 +01:00
Pau Espin ee4ce863e3 hnbgw: Introduce mp_hnbgw_timer_x31
The default value of the timer changed recently, and made some tests
which were using some timer hardcoded values fail.
Add this configurable option to adapt the test behavior to the
osmo-hnbgw configuration. This way we can also set it to lower values in
order to avoid waiting too much time.

Change-Id: I176ef96e193f2ca39077bcee3a2187768ddb45ce
2023-11-03 19:43:20 +00:00
Pau Espin 2748679437 sccp: Introduce test TC_cr_timeout_cc_too_late
Related: SYS#6602
Change-Id: If4b53565f1fa19894ca24fa71e02ae7b1941411e
2023-11-03 19:37:38 +00:00
Pau Espin d4a2008880 epdg: Test Handover from Wifi back to LTE
The Handover is informed to the EPDG by the PGW, who sends a
DeleteBearerRequest when receiving an attach from the 3GPP network once
the phone has jumped there.

Related: OS#6046
Change-Id: I299faf28fa51dbc5d2de6c72a39a01eca67a5775
2023-11-02 10:00:37 +00:00
Pau Espin f749cbf93f GGSN_Tests: Don't expect Used-Service-Unit AVP in Gy CCR INITIAL
open5gs 125740727e558c7604897eda711d4d40f2906239 changed behavior and is
no longer sending the Used-Service-Unit AVP during INITIAL_REQUEST,
which makes sense since those values should be only initialized and
spec seems to more or less expect it that way, though receiving it at
INITIAL time should be accepted too AFAICT.

Related: https://github.com/open5gs/open5gs/pull/2721
Change-Id: Ia16a86ff10089974e0b5d49e594467fcd437ce7e
2023-10-31 14:50:50 +01:00
Pau Espin 8c74649358 epdg: Include BearerContext in CreateSessionResponse
Change-Id: I89e364a5be68105ae8811e8bc917f32511f9e6ef
2023-10-24 14:37:29 +02:00
Pau Espin 1344e47a59 GTPv2: Declare GTP2C_Cause as enum
Change-Id: Id26f59274d7a8813b64b9b4b7c5c39cc12d5a0ac
2023-10-24 13:51:17 +02:00
Pau Espin 2c2e1877ec epdg: Tx Service-Selection in s6b AAR msg
This AVP is actually mandatory as per Table 9.1.2.2.1 in TS 29.273.

Change-Id: I86d01a0f5148e98b7faebbe0e3d7617a6c90b559
2023-10-24 13:51:17 +02:00
Pau Espin 7399673d0e epdg: Tx MIP6-Feature-Vector in s6b AAR msg
This AVP is actually mandatory as per Table 9.1.2.2.1 in TS 29.273.

Change-Id: I47e1f7ff583f60d0d16e151dbfe64fbd33fd7774
2023-10-24 13:51:17 +02:00
Pau Espin 8d8529ac4a Introduce DIAMETER_rfc5447_Templates.ttcn
Add templates for RFC 5447 MIP6-Feature-Vector.
This AVP is a bitmask which as only a few bits defined in RFC 5447, with
other interfaces using this AVP adding interface-specific bits in the
spec of each interface.

The templates are added in a new separate file with the aim of start
splitting the tons of AVPs originating from different specs in order to
be able to quickly identify them and avoid confusion.

Change-Id: I0fc646e5354d78283a2f3e1b9bb9c4688cf744a1
2023-10-24 13:51:17 +02:00
Pau Espin 7c99b3244d DIAMETER_Types: Generate fields from RFC 5447
S6b Diameter interface (TS 29.273 section 9) uses the
MIP6-Feature-Vector, which according to TS 29.273 9.2.3.2.3 is defined
in RFC 5447.

Related: OS#6229
Change-Id: I478eff657d876d4ec9a5a1906cab48fbaaaae1b9
2023-10-24 13:51:17 +02:00
Pau Espin 4669b612d7 library/DIAMETER: Split TS 29.273 templates into its own file
The templates are added in a new separate file with the aim of starting
splitting the tons of AVPs originating from different specs in order to
be able to quickly identify them and avoid confusion.

Change-Id: I77f917404dd70559b2b2cc62199ed70289ab0825
2023-10-24 13:51:17 +02:00
Pau Espin cdd4162998 epdg: Emulate PGW tx AAR and rx AAA in S6b interface
Related: OS#6229
Change-Id: Ia50698a3f6f5ed8251486b84c09f84edfd6d3951
2023-10-24 13:51:17 +02:00
Pau Espin 44b7520f62 DIAMETER_Templates: Add S6b AAR and AAA message templates
Related: OS#6229
Change-Id: I302d9a94e6ffbb62b6db81e1b14484355e55ebe5
2023-10-24 13:50:58 +02:00
Pau Espin d19fdf59b3 epdg: Test GTPv2C CreateSession triggerd by EPDG_Tunnel Req
Change-Id: I8f18c927b1897806233cc9d049c25694c1e639d4
2023-10-23 14:46:18 +00:00
Pau Espin afe3e19ae0 GSUP_Types: Add EDPG_Tunnel messages
Change-Id: Iadba149e6d299e5e666b2debdc23a00d37e78da5
2023-10-23 14:46:18 +00:00
Oliver Smith 95722c6550 ggsn: log start of test in SUT
Change-Id: I2baccc2b49e8bcbf0d1ca6dae41624b2d18fc0fa
2023-10-23 09:10:33 +00:00
Oliver Smith 7bb63cf0a8 library: deduplicate f_logp
Change-Id: Ie84a8a75e9f162fcbef0d07d0bc75e47a5303fa3
2023-10-23 09:10:33 +00:00
Pau Espin d35cd6a9cd Makefile: Update titan.ProtocolModules.BSSMAP to new osmocom/master branch
The repository branches were rebased and rearranged, where now its master branch
follows upstream, and we keep an osmocom/master branch with our own
patches (Osmux, not aimed at upstream) which can then be rebased on top of master.

Related: OS#6011
Change-Id: I1ec7cb6f8fa5acaca6eb434ea9449119de078c94
2023-10-20 13:43:29 +00:00
Pau Espin afc186d391 GSUP_Types: Fix tr_GSUP_IMSI params
Change-Id: Ifeff47d35df53f4238bc1556bdee037e62e9d892
2023-10-20 14:15:47 +02:00
Pau Espin 90a46c4994 GTPv2_Templates: Several improvements to tr_GTP2C_CreateSessionReq
Change-Id: I6dd8cddcb986969d713ed7975a55cb31ab47c499
2023-10-20 14:15:47 +02:00
Pau Espin 5c18a0c846 GTPv2: Fix match of 15-digit IMSIs
15-digit IMSIs are len(imsi)=15, but decoded messages are
octet-aligned, hence the hexstring in messages is len(imsi)=16,
where the last hex char is a padding 'F'H.

* Make sure IMSIs stored in GTPv2_Emulation are padded to 16 digits (8
  octets) to process matches easily.
* Update tr_ template to transparently adapt passed hexstrings to match
  the octet-aligned value received from the wire.

Change-Id: Ie2f316ccb5bc69ec15e861616de4fd5babc4004e
2023-10-20 14:15:47 +02:00
Pau Espin 2a2e854de6 GTPv2_Templates: Fix sveral wrong ElementIdentifier
Change-Id: Idea191cedd78768a3fef7a9958fda5c27f2859e1
2023-10-20 14:15:47 +02:00
Pau Espin 965ac648f0 Introduce EPDG_Tests testsuite
Relted: OS#6204
Change-Id: Iab6f3c7dbcbbf344b0beca9490597c9ab0907171
2023-10-20 14:15:44 +02:00
Pau Espin 462f3df693 library/DIAMETER: Add several AVPs required for SWx interface
Those are required/used in SWx interface (3GPP TS 29.273), but are
specified on other documents.

Related: OS#6204
Change-Id: If31e14215fc7fb18cef12d68600b4f170bbb68af
2023-10-17 13:26:35 +00:00
Pau Espin f4619d8a80 library/DIAMETER: Allow passing template as imsi param to tr_AVP_UserNameImsi()
Change-Id: Ia525b2a1850bc80cee13717b114fec215fa84f9f
2023-10-17 13:26:35 +00:00
Pau Espin 7f8ce3241e library/GSUP: Add tr templates for tr_GSUP_IE_AuthTuple2G3G() and subfields
Change-Id: I39babec53f89c11b9a822939af7267aa1111dc8b
2023-10-17 13:26:35 +00:00
Pau Espin 561dfdf99a hss: Add missing test in expected-results.xml
Change-Id: I890bcd2f8ffa74e43b5a593dbf8547af5fccd40d
2023-10-16 11:17:03 +02:00
Pau Espin d34720f1b0 hss: Test Operator-Determined-Barring feature
Related: SYS#6588
Change-Id: I8deea9e284447f8991bdeced982c14fae2f211c5
2023-10-15 21:47:24 +00:00
Pau Espin ad4179bc5c Introduce HSS_Tests testsuite
Change-Id: Ic2fccd9c54aea04f1a31649a0af47c974939fb2f
Related: SYS#6588
2023-10-15 21:47:24 +00:00
Pau Espin 8768f66360 IPA_Emulation. Fix error if IPAC_MSGT_ID_GET with no tags is received
Change-Id: I69cd519cb3b8f10d10b4724e6354d31d5c5b9da5
2023-10-13 15:36:22 +02:00