Commit Graph

1130 Commits

Author SHA1 Message Date
Pau Espin 5d0361210b ttcn3-epdg: Give some time for osmo-epdg to start
erlang osmo-epdg is a bit slow starting up, and sometimes the first ttcn3
test may start when osmo-epdg is still not yet listening on the GSUP
socket, specially when the system is on high load.
Give some head time to make sure it is properly started.

Change-Id: I14e39db6548409b203e15fb562e0b44a90bd44cd
2024-02-21 18:23:21 +01:00
Pau Espin db7d74263c ttcn3-epdg: Create tun with iface name gtp0
As done in the default/usual config.

Change-Id: I066c22a381ab85762c8ef247a5eb248f7adf6c71
2024-02-21 18:22:41 +01:00
Oliver Smith e39bea3ae5 ttcn3-ggsn-test/fragment.config: add NET_NS, VETH
Build the kernel with NET_NS and VETH, so libgtpnl's qemu tests can
download the kernel and use it.

Related: OS#1952
Related: libgtpnl Ibf75514b866fffb11e90529e4705f126b23d7415
Change-Id: I6e893b64718f853b8595de36c090a1326db34419
2024-02-19 09:39:42 +00:00
Pau Espin 11b9d4c85c epdg: Configure gtpu tunnel
Related: OS#6235
Change-Id: Ifeece08cdcceb378ae1e195cada5bfef54a1e2bd
2024-02-14 18:35:06 +01:00
Vadim Yanitskiy ca7db6c794 fixup: ttcn3-bts-test: do not start osmo-bts-virtual / virtphy containers
Change-Id: I9a38356be1f970a2b8f1bf51bfc220471502682f
Related: OS#6352
2024-02-12 03:34:07 +07:00
Vadim Yanitskiy 8c6ebc8c76 ttcn3-bts-test: do not start osmo-bts-virtual / virtphy containers
We cannot execute the virtphy based testcases due to the limitations
of Docker (see https://github.com/moby/libnetwork/issues/2397).  The
function starting the testsuite was already commented out, but not
the lines starting containers with osmo-bts-virtual and virtphy.

To put it simple, we start and immediately terminate those containers.
And since recently (Feb 1st), we started seeing socket creation errors
in both containers, causing jenkins.sh to abort early.  It's yet
unclear what's the cause of those socket errors, but regardless of
that we should still be running other pending testcases.

Change-Id: I7c9ccc9cc400edb7a05e222e51671fd49631a4cd
Fixes: OS#6352
2024-02-09 18:02:36 +07:00
Pau Espin 27a8a92deb ttcn3-epdg: Run osmo-epdg with CAP_NET_ADMIN
This will be needed since soon osmo-epdg will start creating tunnel
devices througth gtp_u_kmod, which requires CAP_NET_ADMIN, plus it will
need probably need to set up local IP addresses.

Change-Id: I48eea0e8d7969cc0a3ad2ed08f696decf064c474
2024-01-22 13:46:17 +01:00
Pau Espin 26d9e95c11 ttcn3-epdg: Add section to control logging
Similar as to what's defined in osmo-epdg.git/config/sys.config.

Change-Id: I7b9a3421b5f0f384324bb0f9b6de3fffdceaef53
2024-01-18 14:10:40 +01:00
Pau Espin dcb9a59bad osmo-epdg-master: Remove rebar.lock to force build against updated dependencies
This way we notice when some dependency update breaks build, and
prevents running against old dependencies if developer forgot to update
rebar.lock.

Change-Id: Ia9112d641e80d1eddcddea1e54e4c135d6efcc5b
2024-01-17 19:32:59 +01:00
Pau Espin e988b37ea5 ttcn3-epdg: Update renamed config fields
The config file fields have been renamed recently, update them.

Depends: osmo-epdg.git Change-Id I63fe4c7acc7460575a921b254adf066134c0527f
Change-Id: Ic9f2f33b8ffae7b4273e6fac8a42b6e9e1e38ed8
2024-01-16 19:48:57 +01:00
Pau Espin 9f49f87963 ttcn3-epdg: Set new osmo-epdg diameter connect/wathdog configs
Depends: osmo-epdg.git Change-Id I99b5e02264c2c35a3fbfcd2d6083a07e2cfea566
Change-Id: I3632abb8b33d5f2636f443573196d73ea8d3c818
2024-01-16 18:40:53 +01:00
Harald Welte f85bbfbf23 upgrade gerrit to 3.7.6
Change-Id: I6266b1dbfbad71aca95d45f812354f7336b8bd69
2024-01-10 17:04:30 +01:00
Harald Welte 424a787ce4 debian-{buster,bullseye}-jenkins: Add python3-cryptography from debian
This avoids having to use rust to build the cryptography module
during pySim requirements.txt

Change-Id: I9246c9260b1d227ce6e290058caa33e04407d11f
2024-01-10 17:04:21 +01:00
Vadim Yanitskiy 659a62f97a ttcn3-msc-test: also execute ASCI (VBS/VGCS) testcases
These new testcases were added to osmo-ttcn3-hacks.git back in August
2023 (see the related patch), but have never been executed automatically
on Jenkins because the config file was not updated in this repo...

Change-Id: I9ec0a03658ead382eaaef175090cfc3650ffd9b7
Related: osmo-ttcn3-hacks.git I4bbe739ea55ecf9f7ebf9ee413df69f29aa642f8
2024-01-09 21:00:20 +07:00
Vadim Yanitskiy f73fc24132 ttcn3-msc-test: set 'hlr' / 'ipa-name' explicitly
Old osmo-msc versions do not include the Source Name IE in SMS related
GSUP messages, unless it's set explicitly in the config file ('hlr' /
'ipa-name').  Recent osmo-msc versions (see the related osmo-msc patch)
do include this IE even if it's not set explicitly ('unnamed-MSC').

Because of this, some testcases in ttcn3-msc-test are currently
failing for osmo-msc master, but still passing for the -latest.

Let's set the 'ipa-name' explicitly in osmo-msc.cfg, so that we can
expect both -master and -latest to include the Source Name IE.

Change-Id: I7757aae1d01b679f530b5c0a6c95b224cb9f204f
Related: osmo-ttcn3-hacks.git Ic24d3082fe3dce08e43e8f3ecb6d6132503c55c6
Related: osmo-msc.git I7bacd001b81326c32bc262c7d0c0491ded822fa8
Related: OS#6135
2024-01-09 19:35:37 +07:00
Pau Espin 97e22c8d5b mme: Use LAC from SGSN with most significat bit set to 0
Adapt to the new default value used by ttcn3 tests.

Depends: osmo-ttcn3-hacks.git Change-Id Iaf89228f6f026e04d5f583211959025e6d8d4a1d
Change-Id: Ifefbd9bf2ed1bce8089e3dc4c6f9fe901e72308e
2023-12-22 14:29:04 +01:00
Pau Espin 6b7f4cb1ba ttcn3-mme: Set log level of open5gs-mmed to debug
INFO is in general not enough to debug tests.

Change-Id: Ic91571f0caf138dc2ac798d75b0600ad265473c3
2023-12-22 14:29:04 +01:00
Vadim Yanitskiy e384157228 ttcn3-bts-test: set PCUIFv12 for both -master and -latest
osmo-bts v1.7.2 (recently tagged) now also speaks PCUIFv12.

Take a chance to fix ttcn3-bts-test-2023q1 by setting PCUIFv10.

Change-Id: I70f0c30d6c514614095dcbbcac5d025001861fbc
2023-12-15 15:07:38 +07:00
Vadim Yanitskiy 39d26ce8de ttcn3-pcu-test: set PCUIFv12 for both -master and -latest
osmo-pcu v1.4.0 (recently tagged) now also speaks PCUIFv12.

Change-Id: If0b2209af645f391817f65b4227736b52ca59e2e
Related: OS#6191
2023-12-15 14:57:28 +07:00
Philipp Maier f4e2d5c1e5 ttcn3-pcu-test/sns: fix PCUIF version number (follow up patch)
Unfortunately we had to revert [1] because it worked for current master
but not for latest. The mistake here was to change the PCUIF version
number in PCU_Tests.cfg to PCUIF v12. This is indeed the correct version
for current master, but latest still uses v11. Also the change we made in
jenkins-sns only affected 2023q1 builds, it does not affect latest. This
is the reason why the previous patch broke latest.

This follow up patch now copies the approach we already successfully use
with the normal ttcn3-pcu-test / ttcn3-pcu-test-latest. (see also
jenkins.sh)

[1] I0b37f01f4c7bb829053231339e39ab734f4c8cbc

Change-Id: I1f94a0459e35d7b5632c81d7f7e2e60eb0d0229f
Related: OS#6275
2023-11-29 11:01:03 +01:00
Philipp Maier e104fdae7e Revert "ttcn3-pcu-test/sns: fix PCUIF version number"
Unfortunately this patch only fixes ttcn3-pcu-test-sns but it breaks
ttcn3-pcu-test-sns-latest, this means a different solution is needed.

This reverts commit c9820d7b36.

Change-Id: I101d27ae8ed7449b199e49795a3561436c2532dd
Related: OS#6275
2023-11-29 11:00:16 +01:00
Philipp Maier c9820d7b36 ttcn3-pcu-test/sns: fix PCUIF version number
The current master of OsmoPCU is now using PCUIF version number 12.
However, the configuration file of the the SNS tests still sets it to
11.

Related: OS#6275
Change-Id: I0b37f01f4c7bb829053231339e39ab734f4c8cbc
2023-11-28 11:17:42 +01:00
Oliver Smith 15caf486bb open5gs configs: update to current format
Adjust open5gs configs to the new formats from:
https://github.com/open5gs/open5gs/pull/2739

This fixes all open5gs programs from crashing on startup with various
errors such as:
  11/21 07:39:25.971: [core] FATAL: epoll_init: Assertion `context->epfd >= 0' failed. (../lib/core/ogs-epoll.c:77)

Related: OS#6267
Change-Id: Idf2706f3904eb06e94cee0728faa17e72a6cf1f6
2023-11-23 16:30:51 +01:00
Oliver Smith 4836524115 open5gs configs: duplicate cfgs for latest/master
The config format just changed significantly in main/master. Duplicate
the configs, so we can run latest with the old versions.

Related: OS#6267
Change-Id: I2446695172b92ccf75305f878cb932a82e44fdd2
2023-11-23 16:30:51 +01:00
Oliver Smith 71a4f4c9ac open5gs configs: remove comments
A lot of these comments got outdated with recent config changes
in the related PR. Instead of syncing the comments again and having a
big diff, remove the comments once and then only have diffs of
actual config changes in future patches. This will make it easier to
maintain these configs.

Related: https://github.com/open5gs/open5gs/pull/2739
Change-Id: I67c2a198b9682e15e23a466380e62a976e6236cd
2023-11-23 16:30:51 +01:00
Philipp Maier 48ef15bd63 ttcn3-bts/pcu-test: Use PCUIF v12 for current master and PCUIF v11 for latest
At the moment we use PCUIF v11 in latest and in master. This will now
change (see Depends) so that we will have to use v12 in master. This
patch adds the necessary conditional config changes.

Depends: osmo-pcu.git I48eb75f65ab54fdec41ef913e24c1f18cd4a4047
Change-Id: I5c0914c0bf906b51a500a3b099578700798cf8c0
Related: OS#6191
2023-11-21 09:17:32 +00:00
Oliver Smith ff0b8c6d94 Use 2023q1 osmo-ttcn3-hacks branch for 2023q1 SUTs
Fix the TTCN3-centos-pcu-test-2023q1 jenkins job where currently most
tests are failing. This is because 2023q1 is using an older PCUIF
version that is no longer supported by osmo-ttcn3-hacks.git. As
discussed, use a 2023q1 branch of osmo-ttcn3-hacks where the support was
not removed yet.

Fixes: SYS#6638
Change-Id: Id82425aca4a8ff87feb8a130d31712bc62fa27ed
2023-11-15 21:54:45 +00:00
Alexander Couzens d12a63a3a1 ttcn3-dia2gsup-test/osmo_dia2gsup: set connect timer to 200 ms
Related: OS#5657
Change-Id: I22839cdf76120bb6152b32059822001cbd7979d8
2023-11-11 19:07:58 +01:00
Pau Espin d3711e6710 ttcn3-hnbgw: Use new module param mp_hnbgw_timer_x31
Depends: osmo-ttcn3-hacks.git I176ef96e193f2ca39077bcee3a2187768ddb45ce
Change-Id: I98e1d4d649ea07b006a7d4c15f8d94a9b4b3de1d
2023-11-09 11:02:52 +01:00
Oliver Smith 843b38e81d ttcn3-hnbgw-test: reduce X31 to 5s
Set X31 to 5s as expected by the testsuite to fix currently failing:
  - TC_ranap_cs_mo_disconnect
  - TC_ranap_ps_mo_disconnect

It was recently increased to 15s in the related patch.

Related: osmo-hnbgw I24225cfc0addf326c239ec658a27b93b83a3e751
Change-Id: I223d38e9ec2ca0f9f2ce2ac5311932789f328c9a
2023-11-09 11:02:30 +01:00
Harald Welte c5c405b960 sigtran-tests: Add note on why this is still using buster
Change-Id: I403401be7e469085f9a82944b3eaa6b8c8ea6319
2023-11-06 17:16:01 +01:00
Harald Welte 151cd681f2 redmine: run 'apt upgrade' in Dockerfile to get glibc fix from Debian
https://lwn.net/ml/oss-security/20231003175031.GA16924@localhost.localdomain/

Change-Id: Ice5c5e86cd519446fc59c09d64b20836f998d384
2023-11-06 17:16:01 +01:00
Pau Espin 3b40997ca6 ttcn3-epdg: Configure S6b interface
Configure the newly added S6b interface on both TTCN3 emulation code as
well as osmo-epdg.

Depends: osmo-ttcn3-hacks.git Change-Id Ia50698a3f6f5ed8251486b84c09f84edfd6d3951
Depends: osmo-epdg.git Change-Id Ia2b138317cb291a95882853f5403949c5e6a5a1b
Change-Id: I1145ee1068a2fdd2fe8d3e48b80c8e6c1fcb50ad
2023-10-23 14:39:18 +02:00
Pau Espin 07ba820565 ttcn3-epdg-test: Update config file to set up GTPv2C socket
Depends: osmo-epdg.git I6f00b7fce2d5fcdc484bfd45629b9141f16bc579
Depends: osmo-ttcn3-hacks.git I8f18c927b1897806233cc9d049c25694c1e639d4
Change-Id: I05ae2d87e16cef9772bc5c3690f687e5ecbd5f51
2023-10-19 17:08:20 +02:00
Pau Espin 2a5ce78348 Introduce ttcn3-epdg-test
Change-Id: I77a4d66c1bd0236dee8fc54e03a9d6bf8d63f204
2023-10-17 19:13:25 +02:00
Pau Espin 1b03229848 Introduce osmo-epdg-master
Related: OS#6204
Change-Id: Iefc43ffa47f443f2826b8979d4dd0c5542dda1c5
2023-10-17 19:13:21 +02:00
Oliver Smith 01c04193f7 debian-bookworm-erlang: use debian's rebar3
Use debian's version of rebar3 instead of downloading a binary. This
was useful when the container was based on debian 11 where rebar3
wasn't in debian's repositories. Debian 12 has version 3.19.0.

This also solves a caching problem on one of the jenkins nodes, which
currently fails at this line:
  ADD  https://github.com/erlang/rebar3/archive/refs/tags/${REBAR3_VERSION}.tar.gz /tmp/rebar3.tar.gz
with:
  ERROR: failed to solve: failed to load cache key: invalid not-modified ETag: "fce57989250a021a2be5fe5eddd655d6d415eef04f769bf1437f3d6dddfa5559"

My understanding is that docker has cached an ETag that is no longer
valid / maybe the format changed - and instead of simply requesting the
file again, it just fails there.

Related: https://en.wikipedia.org/wiki/HTTP_ETag
Change-Id: I69e02d004a0bd6f9d3a462f4e184b3e9361cc7fe
2023-10-16 15:19:18 +02:00
Oliver Smith ba1385fe60 common/ttcn3-docker-run.sh: add TEST_NAME env var
Make it possible to run only one test by setting an environment
variable.

Change-Id: I1f45a05e089b429918096fcd64f7c02033d5a9dd
2023-10-16 08:52:37 +00:00
Pau Espin 0b97785ceb ttcn3-hss-test-ogs: Adapt mongodb db setup to pass new test
Add DB config for new subscriber required by TC_ulr_ula_subscr_op_det_barring_7.

Depends: osmo-ttcn3-hacks.git I8deea9e284447f8991bdeced982c14fae2f211c5
Related: SYS#6588
Change-Id: I42d6af42bada50c55914ec94c4090fccbe8d1c97
2023-10-15 21:48:13 +00:00
Pau Espin 856b9f2d17 Introduce ttcn3-hss-test-ogs
Related: SYS#6588
Depends: osmo-ttcn3-hacks.git Ic2fccd9c54aea04f1a31649a0af47c974939fb2f
Change-Id: Iebeefd9689ae2efa54678b99ff929ca255ec64d1
2023-10-15 21:48:13 +00:00
Pau Espin b0b7ed30f8 open5gs-latest: Support debian bookworm
The open5gs Debian_12 is available since today [1]; hence starting using
debian 12 now.

[1] https://github.com/open5gs/open5gs/issues/2669
Related: SYS#6588
Change-Id: Ib11a55294b525e3c3806246b133f8e479554a068
2023-10-15 21:47:58 +00:00
Oliver Smith 114c1c6933 debian-bookworm-titan: add ccache
Add ccache, so it can be used when rebuilding the testsuite from source
from a development branch. Ccache is not used by default.

Related: osmo-dev I800062d0379295a6905851db29e820ff16217653
Change-Id: I94d22b8da9f897974c5913b2a8138c653c215446
2023-10-12 14:26:37 +00:00
Pau Espin f9596689c3 open5gs-master: Make mongodb available in the image
The open5gs-latest image installs mongodb, but the master one doesn't.
Having a mongodb image is required to run together with open5gs-hssd.

Related: SYS#6588
Change-Id: Id6dde5f54b666279c102eb14fabb87194192c9e4
2023-10-10 17:38:04 +02:00
Pau Espin a15ab99d07 open5gs-master: Install open5gs-dbctl to /usr/bin
meson install doesn't install that file because it's aimed at
developers. However, debian package does install it manually in
debian/open5gs-common.install.
Hence, the app is available in open5gs-latest docker image, but not in
open5gs-master. Manually copy it to /usr/bin to have both behave the
same in this aspect.

Related: SYS#6588
Change-Id: I54a760d04e6522d843e6d65b94ef6067e502fbaa
2023-10-10 17:38:04 +02:00
Pau Espin b3c5679bec open5gs-master: Fix indentation
Use tabs everywhere, as usual with other Dockerfiles (eg.
open5gs-latest).

Change-Id: Ie4e72f484797ada718915e837cd38be574136631
2023-10-10 15:37:49 +00:00
Oliver Smith c68d4d9f0f ttcn3-pcu-test: use PFUIF v10 for 2023q1
Change-Id: Iae895240276fa68bfd9fdb2e13358a3a7fb65f59
2023-10-10 12:24:43 +00:00
Pau Espin f15080eb62 Fix osmo_dia2gsup-master not pulling in debian-bookworm-erlang dep image
Change-Id: I8d9bd77bbfac14a9951a549a21ee6bc4ea7b267a
2023-10-05 15:31:57 +02:00
Oliver Smith 414acb7f4a make/Makefile: update DISTRO, UPSTREAM_DISTRO
Update the Makefile, so it does not pick the wrong base distribution
when running make in e.g. osmo-bsc-master directly (without going
through ttcn3-*/jenkins.sh as jenkins does).

Change-Id: I31b2a1b8c70b973f4ec0f93d6e9e5e417afec994
2023-09-27 12:26:09 +02:00
Pau Espin 63ee53cee7 ttcn3-mme: Fix missing IP/port config for S11 interface
This fixes failure when running MME_Tests.TC_s1ap_attach

Depends: osmo-ttcn3-hacks.git Change-Id Ia94f50a11292a83dcbd2da8d6df608ef71842b50
Change-Id: I941da52a4d9e10d954a44f32680cf8e8f7a8086a
2023-09-21 17:52:15 +02:00
Pau Espin 0cecfa769c ttcn3-hnbgw: Update config files for latest after osmo-hnbgw new release
Change-Id: Id184686ba50ec07532b2f11cc9513626f66ed94c
2023-09-13 08:07:15 +00:00