Commit Graph

13 Commits

Author SHA1 Message Date
Pau Espin 601b5cddc9 Move f_str_split() Osmocom_VTY_Functions.ttcn -> Misc_Helpers.ttcn
This is quite a generic string handling function which fits better
in a generic utility file like Misc_Helpers.ttcn.

Change-Id: I54eff3eea60ed0624919baebfe0ff7393414d6b8
2024-04-18 11:07:08 +02:00
Harald Welte 556e4d2dbc various: update expected-results.xml
Change-Id: I21052636bf892e5da86ef736d16035ec324aedbe
2024-03-04 19:09:58 +00:00
Oliver Smith 7bb63cf0a8 library: deduplicate f_logp
Change-Id: Ie84a8a75e9f162fcbef0d07d0bc75e47a5303fa3
2023-10-23 09:10:33 +00:00
Neels Hofmeyr 11ac91ca1a move f_str_split() from UPF_Tests to Osmocom_VTY_Functions
I want to use it in a new function f_verify_talloc_bytes() added to
Osmocom_VTY_Functions.ttcn in I2948ee6f167369a2252f85b493e9653b93c7e4e9.

Change-Id: I9ddd9977734efd7599481261f04df82620845cef
2023-07-10 15:34:57 +00:00
Vadim Yanitskiy 47b324656f copyright: fix typo: sysmocom s/s.m.f.c./s.f.m.c./ GmbH
Change-Id: I1294f543402d948acc64daea309d314e27d7626c
2023-05-18 18:58:40 +07:00
Neels Hofmeyr cf4935afca upf: test Session Mod, test Network Instance
Add tests and enhance the upf test suite to be closer to real world
usage:

- properly verify the F-TEIDs chosen by osmo-upf.

- add tests with two-step session creation, i.e. with a Session
  Establishment followed by Session Modification indicating the remote
  F-TEID to use on the core side, as is the usual case.

- Add module parameters for network instances to use in the test;
  dynamically configure osmo-upf's "netinst" config via VTY.

- pass Network Instance in Create PDR, verify that osmo-upf returns the
  matching GTP IP addresses in Created PDR.

Related: SYS#6192 SYS#5599
Change-Id: I440466f1cc9689391869ac2579a4497ef6008adb
2023-01-17 19:46:05 +00:00
Neels Hofmeyr 1e31146d11 upf/PFCP: do not imply f_inet_addr()
PFCP_Templates.ttcn is not the place to do the conversion between string
and OCT4.

When I wanted to use an OCT4 address in some ts_PFCP_* template, it
dawned on me that it is stupid to convert the OCT4 to a string, just so
that the ts_PFCP_* template converts it back to OCT4.

Related: SYS#6192 SYS#5599
Change-Id: Ib068831787f4256f70a2189a5f36ca1ea1f40c9e
2023-01-17 19:46:05 +00:00
Neels Hofmeyr 4a9015ffe3 upf: tweak f_ruleset_add_GTP_decaps
Improve function doc.

Always use F-TEID = CHOOSE.

Related: SYS#6192 SYS#5599
Change-Id: Ic88075001c1a7c3bd724ff8d618cef1dbd7423b7
2023-01-17 19:46:05 +00:00
Neels Hofmeyr b1dc8266b2 upf: rename tc_session_est to tc_session_est_tunend
The other use case, tunmap, needs some space next to tunend, too. tunmap
tests will be added soon.

Related: SYS#6192 SYS#5599
Change-Id: If4a4534aa237e6ff1acb6d50e3738dd4dd6e9dfa
2023-01-17 19:46:05 +00:00
Neels Hofmeyr ef0b3e6bb4 upf: in PFCP Sess Est, use local F-TEID = CHOOSE
So far the test asked osmo-upf to use an actual IP address and TEID, but
normally it is sent with CHOOSE = 1 so that osmo-upf picks a new local
TEID and returns it with the proper local IP address in the response.

This is making the test more realistic, and also prepares for testing
Network Instance handling, where osmo-upf will need to return the proper
IP addresses for specific Network Instance names.

Change-Id: Iaba372cbb2e0cf0c5bee80b09d346f9bcb78bfbe
2022-11-28 13:48:15 +00:00
Neels Hofmeyr 021a953cac UPF_Tests.cfg: fix wrong mp_verify_gtp name
The proper name is mp_verify_gtp_actions.

jenkins is not affected because it uses another .cfg from
docker-playground.git.

Change-Id: Ia13407db795021a2c3e2923c08b63ad6cdd6b0f9
2022-11-28 13:48:15 +00:00
Neels Hofmeyr 366cdc7ec9 UPF_Tests: adjust to rename 'endecaps' to 'tunend'
osmo-upf has changed the naming of GTP action kinds, need to adjust the
test here to avoid failing tests.

Related: I49ac7b1f8b5b74f586edfed1dfb29f9af55a521b (osmo-upf)
Change-Id: I6fe4a4cf02ca05b772491d11a5edbdbd7b0b429a
2022-11-21 17:20:08 +01:00
Neels Hofmeyr 2d29274f32 add upf/ to test osmo-upf
So far testing only PFCP interaction without real GTP traffic.

Related: SYS#5599
Change-Id: If67819dea785597841f21d8c444cb4866cfde571
2022-09-20 13:32:16 +02:00