Commit Graph

4157 Commits

Author SHA1 Message Date
Pau Espin 97f9547c94 Diameter Gy CCR: Expect RATType AVP in PS-Information instead of MSCC
open5gs-smfd was recently modified to send RAT-Type inside
PS-Information instead of MSCC, since having it in the former is
supported since older spec releases and having it in the later creates
problems in some real world OCS implementation like PortaOne OCS.

Related: SYS#6837
Related: open5gs.git d0b31177cca360865ebc6ab0b89eee7ee4fc8d1a,
Related: open5gs.git 3b5e851f5d1328536052031e66a7b9b03c3057f6
Change-Id: I7ce77d08847a0876291f76e901e5c89c339db27d
2024-03-25 12:17:45 +01:00
Harald Welte c1aa231d3a Add funding link to github mirror
see https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/displaying-a-sponsor-button-in-your-repository

Change-Id: I2ceef868ae52c52329413a7caeaa3ca00a40b983
2024-03-23 16:58:46 +01:00
Harald Welte 0fc90c622b Add README.md file (to show up in gitea / github / etc.)
Change-Id: Ic176636930e9a36cc428360147140a7339aa58b5
2024-03-23 16:58:41 +01:00
Oliver Smith b856108071 ggsn: add m_ggsn_conf modulepar
Prepare to run the GGSN tests in different configurations:
* v4_only: one APN with v4
* v6_only: one APN with v6
* v4v6_only: one APN with v4v6
* all: multiple APNs with all of the above

Related: OS#6096
Related: docker-playground Ia2fe0c3ed4ccf06e72fd258d085e4a79cecd5f26
Change-Id: I6d94a8b18200fbb2119406827b74b83e912e3ecc
2024-03-22 19:23:28 +00:00
Pau Espin f371375798 sip: Get Rid of private copy of f_mgcp_addr2addrtype()
The function was copied from MGCP_Templates.ttcn since the logic is the
same for SDP, but copied in order to avoid depending on whole MGCP file.
Since now SDP logic has been moved to its own SDP_Templates and a new
f_sdp_addr2addrtype() was added, use that one.

Change-Id: I27ce46b6d23ba0f2704dd0cee290ed519dec278e
2024-03-22 11:28:54 +01:00
Pau Espin 1158cc629c Move SDP templates to its own SDP_Templates.ttcn file
SDP is used in other protocols than MGCP, eg. SIP.

Change-Id: I0610b4cf5533e46a3401c65e60c7cce975c85412
2024-03-22 11:28:51 +01:00
Pau Espin a16a6b667b Move f_addrstr2addr() to library/Misc_Helpers.ttcn
This function can easily be reused in other testsuites supporting both
IPv4 and IPv6 addresses.

Change-Id: I4243ec5551f128629b6504ccc59efeb456a6855d
2024-03-22 11:27:19 +01:00
Pau Espin a907b9f1c9 MGCP_Templates: Avoid extra indenation for most of the whole file
Change-Id: I9338c73db94a1ed3e2945bc40a46573c4a674ba3
2024-03-22 11:27:16 +01:00
Pau Espin 0a228eae76 pgw: Introduce test TC_gy_ccr_update_rejected
This test currently fails because open5gs-smfd is not triggering the
tear down in smf_gy_handle_cca_update_request().

Related: SYS#6845
Change-Id: Ie58ae2a5e870b183fa1c56c90c94f5eee56386e0
2024-03-19 15:56:02 +01:00
Pau Espin 06fba9c8a7 pgw: Set Gy CCA Result-Code based on settings
This allows the test to change the Result-Code being transmitted during
Gy CCA at any time.

Related: SYS#6845
Change-Id: I2c3b1057908c1c76a55c41a7f45728a0fdee3cf0
2024-03-19 13:11:34 +01:00
Pau Espin 9b3d06297d DIAMETER_ts32_299_Templates.ttcn: Define Result codes specified in TS
Change-Id: I6c102e6a10469d0d054cb55f7d2100c8887ab6e0
2024-03-18 21:04:15 +01:00
Pau Espin 819a3b87b7 pgw: Fix typo in comment
Change-Id: Ie768044d9f80cc3837685167d98a1e270d0abde4
2024-03-18 20:35:56 +01:00
Pau Espin aca4c29e72 epdg: TC_hss_initiated_update_user_profile: test SWx PPR -> S6b RAR propagation
Related: OS#6400
Change-Id: I064ee9e18809a507d0185f640b4a972ee5a2ce3f
2024-03-18 17:29:15 +00:00
Pau Espin 93cbc99011 epdg: Introduce test TC_hss_initiated_update_user_profile(_unknown)
This test so far only validates the SWx interface during the procedure.
It can be extended at a later time when implementing propagation of the
procedure to other interfaces in osmo-epdg.

Related: OS#6042
Change-Id: Ic7c19a3fe7b2b1411414fb6b78ab9a665a1aa42b
2024-03-18 17:29:15 +00:00
Vadim Yanitskiy 8f5b61ba52 bts: also test TCH/A[FH]S in TC_speech_no_rtp_tch[fh]
Change-Id: I3c7f91034079169c40c4f20966d9f5fb7c855b27
Related: OS#4823, OS#6049
2024-03-18 16:41:17 +00:00
Vadim Yanitskiy 3d4b001513 bts: dequeue L1CTL {DATA,TRAFFIC}.cnf in as_l1_{sacch,dcch,tcp}_loop()
This fixes sporadic failures in testcases using those altsteps.

Change-Id: I3538d40ff1a585ccbe37f3a90f3c374c5f0b5767
Related: osmocom-bb.git I0046f9c103bcb9207f0c2643c6a806bd56553d77
2024-03-18 16:41:17 +00:00
Vadim Yanitskiy 7e6b832b85 bts: rename as_l1_sacch() -> as_l1_sacch_loop()
For the sake of consistency with as_l1_{dcch,tch}_loop().

Change-Id: I076efac80ae08551c1098a6baa15a2ca99213ee2
2024-03-18 16:41:17 +00:00
Vadim Yanitskiy 3f5b693401 library: add templates for L1CTL_{DATA,TRAFFIC}_CONF
Change-Id: I914555ac8bf2784c14e1b5564b116221ecc7b539
2024-03-18 16:41:17 +00:00
Pau Espin 660cfe5169 epdg: Several fixes to TC_hss_initiated_deregister_permanent_termination
I forgot to submit some fixes before merging.

Fixes: a7823b96cb
Change-Id: Ic4d0d649221d669dee32edeb94b89e95ec1b1c08
2024-03-14 16:53:59 +01:00
Pau Espin a7823b96cb epdg: Introduce test TC_hss_initiated_deregister_permanent_termination
Change-Id: I50daa7a04e0f19dbf987a8baba7a979a353089a3
2024-03-14 11:44:22 +01:00
Pau Espin d9ff19ee73 epdg: Introduce test TC_hss_initiated_deregister_new_server_assigned
Related: OS#6042
Change-Id: Ia5bf7708d11421710f3a88669d94c4f01060cdd6
2024-03-14 11:43:58 +01:00
Pau Espin 36fc368dad hnodeb: Make HNBGW_ConnHdlr component alive
The several components started by HNBGW_ConnHdlr are already marked as
"alive", but not HNBGW_ConnHdlr. As a result, during test tear down, if
eg. Iuh socket receives a message, it may try to send it to the
HNBGW_ConnHdlr component and will error because it was already killed.

Change-Id: Ibc2587db4563d016841d11de628057bffe36b581
2024-03-12 11:23:28 +01:00
Philipp Maier 964533e20d library: add HTTP_Server_Emulation
We already have an HTTP_Adapter, which plays the client role. Now let's
add an HTTP_Server_Emulation, that will allow us to play the server role
as well.

Related: SYS#6563
Change-Id: Ie9a3b31a047b617ae69b7a65e1d69b8d3da863e5
2024-03-11 15:24:31 +01:00
Philipp Maier 08902cf05d library: add SGP.32 and SGP.22 ASN.1 specification, encoder and templates
This patch adds the eUICC related SGP.32 and SGP.22 ASN.1 specification
along with templates and related encoder/decoders (_EncDec.cc).

The collection of templates is not comprehensive, which means that there
are only templates available for a subset needed to implement testcases
for an IPAd.

Related: SYS#6563
Change-Id: I9df8caa98aeb6953a738660a758c92249832d780
2024-03-11 15:03:00 +01:00
Philipp Maier fca4e4f5d5 GTP_Emulation: fix typo
Change-Id: I66685e0e4da97eda2bd5f4573c0994444824993f
2024-03-11 15:03:00 +01:00
Philipp Maier 522905986a PFCP_Emulation: fix typo
Change-Id: I0114aeafb0c4fe821f6b5ea7b264c2a5c055033e
2024-03-11 15:03:00 +01:00
Pau Espin 7ac383b99d epdg: Add expected-results.xml
Change-Id: I73b988220d58c36de99baf43e88ac70f646bbe3a
2024-03-08 19:58:25 +01:00
Pau Espin b8cc610d8b epdg: Introduce test TC_authinfo_fail_resync
Related: OS#6396
Change-Id: I2769d331740324200b4512a154e1321bd5825b04
2024-03-08 19:55:53 +01:00
Pau Espin b81c5da337 GSUP_Templates: tr_GSUP_SAI_ERR: Allow passing extra params like MSG_CLASS
Change-Id: I817b079ed380514e067bda1e7f3f7c6177ef314b
2024-03-07 12:18:28 +00:00
Vadim Yanitskiy 7b541af164 stp: fix -latest: add missing f_osmo_repo_is() checks
Change-Id: I9b00d3a72c5a2ad669dbaef65eec792a4c91785d
Related: SYS#5424
2024-03-07 12:09:22 +00:00
Vadim Yanitskiy f587812cd4 stp: cosmetic: use m3cfg variable in f_M3UA_listen()
Change-Id: Ic5550f17e8925c292df5b3b27cf5898edf10fd23
Related: SYS#5424
2024-03-07 12:09:22 +00:00
Pau Espin d4e86332ec epdg: Introduce test TC_authinfo_twice
Related: OS#6391
Change-Id: I86ef2bf9a0676735343d5a5c0f4ff12f552216d2
2024-03-06 18:26:14 +00:00
Pau Espin 6601f22705 epdg: Introduce test TC_authinfo_MAA_unknown_user
Related: OS#6391
Change-Id: Ie4d9d019ed56401e7e19197b4a777a1e6a55e7ee
2024-03-06 18:26:14 +00:00
Vadim Yanitskiy 88f429db69 stp: add testcases for M3UA-over-TCP
Change-Id: I1e2a887aa22f317783b3207494fd707d7b426439
Related: docker-playground.git I210b7d62845075dcfe147f2f77603625cc1e64f9
Related: SYS#5424
2024-03-06 23:48:47 +07:00
Vadim Yanitskiy 36b7b5d3e6 stp: prepare for testing M3UA-over-TCP
* rename various fields and templates to be transport neutral
* extend mp_m3ua_configs[]: add one client and one server ASPs
* f_M3UA_connect(): split onto f_M3UA_connect_{tcp,sctp}()
* f[_no]_quirk(): properly handle ASPs using TCP transport
* add osmo-stp-tcp.confmerge [*]

We cannot add new M3UA-over-TCP ASPs to osmo-stp.cfg because that
would break the job testing latest osmo-stp version.  Instead, add
a confmerge file to be applied by jenkins.sh (for nightly only).

Change-Id: I5d0b05aa434c057ad379125ac293f5fc9a240b6f
Related: docker-playground.git I210b7d62845075dcfe147f2f77603625cc1e64f9
Related: SYS#5424
2024-03-06 03:28:51 +07:00
Vadim Yanitskiy 84ec42bbc2 stp: add and use f_m3ua_{cli,srv}_config() helpers
Using this API reduces the risk of using the wrong half of the
mp_m3ua_configs[] array and improves the code readability a bit.

Change-Id: I9788f52c20574f4f9d015d2de11b5e42bb03d15f
Related: SYS#5424
2024-03-06 03:28:34 +07:00
Pau Espin 009ab6fe1c epdg: Transmit MIP6-Agent-Info AVP in S6b SAR
Inform the AAA-server about the selected PDN-GW.
Change-Id: Ia0f00a00b6474e19bb4cdc77724c75a55ef5c1f9
2024-03-05 14:44:23 +01:00
Pau Espin 9b2ebc005f epdg: Add missing Non-3GPP-User-Data AVP to tx Swx SAA
Change-Id: I05bbf076464f9110ee68c46e309d150207f8bfcd
2024-03-05 14:42:08 +01:00
Pau Espin 7337d45f06 DIAMETER_Types: generate types for RFC4004
RFC 4004 contains MIP-Home-Agent-Address AVP, which is part of
MIP6-Agent-Info AVP in RFC 5447.

Change-Id: I66cae565d332d88f24c4ee94459770f9d24c16af
2024-03-05 14:23:57 +01:00
Pau Espin 5154e357e4 Small improvements to DIAMETER_ts29_272_Templates.ttcn
* Move Service-Selection template to the TS 29.272 since it belongs
  there.
* Set some parameter types to "template (value)" which makes it easier
  for users, since both a template and a value can then be passed.

Change-Id: Ic57b2c5ec0a953f9a1751d4ce4ad441daafd3c87
2024-03-05 13:28:58 +01:00
Pau Espin 5f5dbfe7fa DIAMETER_Types: Generate types for 3GPP TS 29.273
The ddf file is added at the end of the list since it depends on tons of
other RFC and 3GGP TS specs, see for instance TS 29.372 Table 8.2.3.0.

Change-Id: I17f7f025ff31d9ce619cd23bfa5f1af282969dbf
2024-03-05 12:52:48 +01:00
Pau Espin 5b28c96469 DIAMETER_Types: Move RFC ddf files earlier in the dependency list of files to generate
A ddf file for TS 29.273 will be added soon to the list, which depends
on several RFCs. Move RFCs earlier in the list since this is a more
generic file than a 3GPP one.

Change-Id: Idcbdfd97332195af05928c81068f6a4779ac306e
2024-03-05 12:50:54 +01:00
Pau Espin b0b5e0ad12 checkpatch.conf: Exclude machine-generated file library/DIAMETER_Types.ttcn from linter
Change-Id: Iff72ddabea41b36d30a7ad87218aa68b1297c35e
2024-03-05 12:21:43 +01:00
Pau Espin 1cb639e6f1 Remove unwanted epdg/ICMP_Types.ttcn
It seems I somehow ended up adding this link file in
bf03d77649 when submitting the patch.
Get rid of it since it is totally undesired.

Change-Id: Iec812841bc474ae423b447707adc520cf4039499
2024-03-05 11:49:47 +01:00
Pau Espin 297333a423 mme, pgw: Fix GTPv2_Emulation setup after recent changes
The fields were added to be used in EPDG_Tests, but they need to be
explicitly set to omit here.

Fixes: 65a7f762ef
Change-Id: I3ed3c185310082f36bbce22817b903232825567c
2024-03-05 11:26:13 +01:00
Pau Espin bf03d77649 epdg: Introduce test TC_mt_ipv4_echo_req
Change-Id: Ie5dc1bd995262f9253cc067c97a82c801b0080e1
2024-03-04 21:47:55 +00:00
Pau Espin e16e928f14 ggsn_tests: Split out generic ICMP(v6) related templates and functions
Change-Id: I53a5da05caeef4cdd59778840a6f4eed489f1b93
2024-03-04 21:47:55 +00:00
Pau Espin a9b65f1ea9 epdg: Introduce test TC_upf_echo_req
Change-Id: I3fd96f212175959cb113d2f6a362c0e77e5ca0d7
2024-03-04 21:47:55 +00:00
Harald Welte 556e4d2dbc various: update expected-results.xml
Change-Id: I21052636bf892e5da86ef736d16035ec324aedbe
2024-03-04 19:09:58 +00:00
Vadim Yanitskiy 03b2fa9ecb stp: check-in expected-results.xml from Jenkins
Change-Id: Id4081af9e9d5b0a95dc2fe7d137778747dc27bd0
2024-03-04 19:09:03 +00:00