Commit Graph

778 Commits

Author SHA1 Message Date
Vadim Yanitskiy d5a6ce2939 debian-stretch-titan/Dockerfile: install osmo-python-tests
We need osmo_interact_vty.py in order to obtain talloc reports for
each test case automatically.  See [1] for more details.

Change-Id: Ida8e08e7fe4f171f934a2d4eef4568da7c398f5c
Related: [1] I1b03b17426d8760c55976e3b78ca2f3af248c055
2021-12-01 11:40:19 +00:00
Oliver Smith 440e62b9aa redmine: process changelogs every 10 minutes
Wrap the original entrypoint script with a custom one that also runs a
loop in the background, which periodically lets redmine fetch git
repositories. When repositories are fetched, redmine interpretes
"closes" etc. in commit messages to mark issues as resolved.

Closes: OS#5331
Change-Id: I2a65fd6be22ae541a93c08c71cf286e4b5ad370f
2021-11-30 16:23:44 +01:00
Oliver Smith 305ce55b74 ttcn3: write Osmocom repository to configs
Write a line like 'Misc_Helpers.mp_osmo_repo := "nightly"' into the
TTCN-3 config file (e.g. BSC_Tests.cfg), before starting the testsuite.
This allows executing different code paths in the tests based on the
repository.

Related: OS#5327
Change-Id: Ic06532f7a67e59458652c5cf4c8f6fee8113e703
2021-11-26 18:12:50 +01:00
Pau Espin b7c430dd10 Introduce Docker image for ttcn-hnodeb-test
Change-Id: I191b9a29c75d0a1f0bc38d4e29facfc45826cd31
2021-11-24 22:22:29 +00:00
Pau Espin dcf499203d Introduce Docker image for osmo-hnodeb-master
Change-Id: I35e5324d981be8130fbc4e6dcd3e8933181e6821
2021-11-24 22:22:29 +00:00
Vadim Yanitskiy baade9eef3 open5gs-latest: new Dockerfile for latest open5gs from packages
Change-Id: I06b90b84d22ba8d34bed9f84861ff94bdcabe6c3
Related: SYS#5602
2021-11-23 12:20:05 +03:00
Vadim Yanitskiy 1e8e606d16 make/Makefile: allow specifying optional command for 'run'
Change-Id: I676c5525effe8f34ae11f7b8ed4da0d8961209bf
Related: SYS#5602
2021-11-23 12:19:57 +03:00
Vadim Yanitskiy 92f0b00cf1 open5gs-master: add missing dependencies
Change-Id: I39806a8cc33a1f975b03839fb16466dabb57a26d
Related: SYS#5602
2021-11-19 00:40:45 +00:00
Vadim Yanitskiy 9539f24193 open5gs-master: there is no 'master' anymore, use 'main'
Change-Id: If02740d8ddb4775cc22e9d4ed78226d09c466626
Related: SYS#5602
2021-11-19 00:40:45 +00:00
Vadim Yanitskiy 8b2aeab0c2 ttcn3-stp-test: do not set mp_osmo_stp_newer_than_1_4_0
Setting a non-existing parameter makes TITAN unhappy:

  HC@fd91bc0a2114: Error while setting parameter field
                   'STP_Tests_M3UA.mp_osmo_stp_newer_than_1_4_0' to 'true':
                   Module parameter cannot be set, because no parameter with
                   name 'mp_osmo_stp_newer_than_1_4_0' exists in module
                   'STP_Tests_M3UA'.

Change-Id: Ie4fba3eb73e0da60bc20859efddecc5ec816cb9e
2021-11-18 22:05:42 +03:00
Pau Espin 1821fd80e9 ttcn3-stp: osmo-stp in master is >1.4.0 now
osmo-stp 1.5.0 was released today, so we can drop those specific checks.

Change-Id: I354c1487d9a32e2c7d48c57e7b63007f5360677e
2021-11-16 19:12:31 +01:00
Pau Espin 8071b00c6b ttcn3-pcu: Update config for latest after new osmo-pcu release
New osmo-pcu 1.0.0 which supports all expected features. Hence we can
drop special quirks to have tests passing in latest.

Change-Id: Ieb85dac479e6960e4160767e514084b80edd297b
2021-11-16 19:12:27 +01:00
Pau Espin 3c4fe3d584 ttcn3-sip: Don't force mncc version 7 for latest
osmo-sip-connector 1.6.0 supporting latest mncc version was released.

Change-Id: Iff2bcbfb3e84140cccdf93b0924ede09e44793b0
2021-11-16 19:06:06 +01:00
Pau Espin 0b842d8970 ttcn3-sgsn: latest osmo-sgsn release supports RIM
osmo-sgsn 1.8.0 supporting the VTY commands was released, so no need to
drop those.

Change-Id: I803514a28491ebe142691062f6033f179474b064
2021-11-16 19:04:45 +01:00
Pau Espin 9581a23764 ttcn3-bsc-test: Leave mp_enable_dyn_sdcch8_test enabled in latest
Release 1.8.0 is already released, so latest should support this.

Change-Id: I560cb7d0ab61b5373982160032040a65dc043ce4
2021-11-16 19:00:36 +01:00
Vadim Yanitskiy ebb4f59a94 ttcn3-sip-test: use MNCCv7 for the '-latest' SUT
Change-Id: Ic1e6e5f9ea959166b727795232bb58b9a25cc049
Related: OS#5282, OS#5164
2021-10-28 17:17:22 +03:00
Harald Welte c18597226c redmine: upgrade to 4.2
Change-Id: I38b3ee8c47f22c601c3a26c5c7238ac8bebe33a8
2021-10-27 19:09:27 +02:00
Harald Welte a07f803328 upgrade to redmine 4.1
this requires a local patch to ruby-openid, as it apparently doesn't
suppor rails 5.x (Paramters are not a hash anymore, hence lenth
method cannot be used)

Change-Id: I028d6d72757abf5d990ca2e8327e5f0a9fe3d333
2021-10-27 18:49:16 +02:00
Harald Welte d03adb8afd upgrade gerrit to 3.2.12
Change-Id: I1d3e4a0198085e7cd2bfe32b080b89ab2632bdf4
2021-10-24 15:06:09 +02:00
Alexander Couzens 98b4a68d76 ttcn3-ns-test-fr: set correct ns configuration to match tests
Change-Id: I2a5ac42e8861f0176f76bbf5164e990e723a872d
2021-10-19 18:46:51 +02:00
Alexander Couzens 74a78680ae ttcn3-ns-test-fr: fix wrong NS dialect
The failing test case should never run. The framerelay must run
it's test with dialect NS2_DIALECT_STATIC_RESETBLOCK

Change-Id: I2b1ae7cbe26c94a4a66b6a456b76b864251e0acb
2021-10-19 16:08:07 +02:00
Alexander Couzens fd56fcbe39 ttcn3-ns-test: add second NSVC to allow TC_tx_blocked_foreign_nsvc to work
TC_tx_blocked_foreign_nsvc requires to ipa NSVCs

Change-Id: I3a4baaacdbaab245ba10a1857f0183e56defcdf4
2021-09-23 15:48:56 +02:00
Pau Espin 14270502f2 ttcn3-pcu: use new Neighbor Address Resolution interface in master
Since current master, osmo-pcu and osmo-bsc support Address Neighbor
Resolution using new PCUIF over IPA multiplex, deprecating the old CTRL
interface used until now.

Since the old CTRL interface is not yet removed in order to avoid
breakage of old deployments (only marked as
deprecated and not used by default), let's keep support to run the
existing tests with the old interface to keep them being tested in
latest release, while instruction both osmo-pcu and TTCN3 PCU_Tests to
use the new interface in master.

Once we do a new osmo-pcu release, we can drop support for the old
interface in tests, and drop it completely from osmo-pcu over the
following next release.

Depends: osmo-ttcn3-hacks.git Change-Id I05f1aabc64fc5bc4740b0d8afd8990b485eacd50
Related: SYS#4971
Change-Id: I01d0604f294dc88dc32137c976f424655849d57e
2021-09-14 09:11:27 +00:00
Alexander Couzens 4daf8dd53d ttcn3-ns-test-sgsn-sns: add test run for ns sgsn role with sns
Change-Id: I1a9205885d381c04141dad752de0b39d9268ab69
2021-09-06 16:53:38 +02:00
Alexander Couzens 51881eb9ce ttcn3-ns-test: add second NSVC to allow SNS tests to work
The SNS tests need both NSVCs. The NS_Tests.sns.cfg from the
ttcn3 repository can be used as reference.

Change-Id: I92f2ca61af1e3d0427e6810eddab8f2d6299242d
2021-09-06 16:53:38 +02:00
Philipp Maier f31b6adb99 osmo-mgw.cfg: configure control interface
The configuration file of osmo-mgw lacks the control interface
configuration.

Change-Id: I309db472e22d0258bf31a4f5865a89364ed7af2c
2021-08-20 11:14:38 +02:00
Oliver Smith 476e38e4ef ttcn3-stp-test: rename mp_stp_has_asp_quirk
Rename the option to mp_osmo_stp_newer_than_1_4_0, because I'm going to
use the variable in an upcoming osmo-ttcn3-hacks.git patch for something
unrelated to the asp quirk so we can avoid introducing another variable.

Related: osmo-ttcn3-hacks I43b1aa2c029c88c88320d40f60df46a5eb6c4c24
Related: OS#4239
Change-Id: I6a32398242b53c827a94cf65e4a35900a7c4171a
2021-08-16 09:34:20 +00:00
Philipp Maier a102bfef54 osmo-mgw: add missing statsd configuration
The recently added test TC_dlcx_wildcarded depends on statsd information
from osmo-mgw but in the osmo-mgw configuration no statsd is configured.

Change-Id: Ic4f0c57f56fe400bdb9a1948917f0eeb1d7e7427
Related: SYS#5535
2021-08-12 15:44:02 +00:00
Oliver Smith 21a42f2007 ttcn3-pcu-test: add mp_osmo_pcu_newer_than_0_9_0
Related: SYS#4878
Change-Id: Iabd0cf658f2b8e2913824b899c5bd012c587c21d
2021-08-10 10:37:27 +00:00
Oliver Smith e2ba582225 ttcn3-pcap-client-test: set vty port to 4227
After moving the default VTY port for osmo-pcap-client from 4237 to
4227, it is different in nightly and latest. Configure the SUT and
testsuite to use 4227 for both nightly and latest.

Related: OS#5203
Change-Id: I6d45340429925fe5e98cc4e597a01ef51e8322ae
2021-08-09 08:59:23 +02:00
Philipp Maier 5c3ad38f83 MGCP_Test: set STATSVTY.CTRL_HOSTNAME
The the following patch I61e23e264bc85eb36d07431c7839fb445c110947
introduces the stats interface on the MGCP_Test testsuite. This means
that STATSVTY.CTRL_HOSTNAME must be set up correctly, otherwise all
testcases will fail.

Change-Id: I693cc17dbf6836e7a74b34111671b6e589744a63
Related: SYS#5535
2021-08-06 14:11:23 +00:00
Harald Welte d2014603a7 debian-stretch-titan: Wait for interface to be _up_ not just its existance
I've seen at least one instance where -EIFDOWN was returned when the
test suite was coming up.  This is a race condition, as we first
have to move the netdev into the namespace and only then can configure
it.  "pipework wait" only waits for its existence, not until it is up.

We cannot revert the order, as the netdev looses its state when it
is moved to a different netns.

Change-Id: I1bfb6eb925bca4e4e1901e06eed831152cddbbe2
2021-07-28 11:46:12 +02:00
Pau Espin ac920b7716 ttcn3-bsc: Drop mp_enable_osmux_test
This module parameter is never set to false anymore, since latest
already supports the feature for a while.
The module parameter will be removed soon in osmo-ttcn3-hacks, so let's
drop using it here too.

Change-Id: Idf459365e9aa42f7efd2a418cadea63ec49bdd7a
2021-07-20 17:02:40 +02:00
Pau Espin 14b12829fc ttcn3-bsc: Disable dyn TS SDCCH8 tests for latest
With this we'll avoid running the test in latest. This way we'll not
fail after changing the TS for the test and hence other tests won't be
affected.

Related: SYS#5309

Change-Id: If941c110501cd5f9c1d5084cc4d054e1eafb14f4
2021-07-20 16:58:07 +02:00
Vadim Yanitskiy 9710e7ae01 ttcn3-bts-test: set bind address for the RTP Emulation
Otherwise the loopback address is used, what causes test cases
employing the RTP Emulation component to fail:

  Connection refused (unexpected)

Change-Id: Ia20ccd9e6db61d7a105523648c678db90ad345eb
2021-07-17 22:37:24 +06:00
Oliver Smith 9c6eda65cc jenkins-common.sh: add NO_LIST_OSMO_PACKAGES
Allow to optionally skip listing the installed packages. This is useful
to speed up tests when running locally.

Related: osmo-dev I3d9976d07f088e2d106d23259889a4bffe1abbcb
Change-Id: Iaafb81e9ee94850ae3b6318574ad5370d74a2838
2021-07-12 08:04:39 +00:00
Oliver Smith 688cda1158 Revert "ttcn3-bsc-test: enable A5/4 support in osmo-bsc.cfg"
The test that needs A5/4 enables it dynamically, and a new test requires
a defined value to reset to.
This reverts commit 8005014b55.

Related: OS#4975
Depends: osmo-ttcn3-hacks I3cf36c6ef86a0db050507f3737f4b0c10dcd52ed
Change-Id: I55135ca00ef51de5cf6eaec75cfc20c21beef665
2021-07-09 15:10:51 +02:00
Vadim Yanitskiy 8005014b55 ttcn3-bsc-test: enable A5/4 support in osmo-bsc.cfg
Conditionally exclude it for non-master versions of the IUT.

Change-Id: I59f81c2dd72ddc2d292f8f34281fa79289d49c6d
Related: SYS#5324
2021-06-29 13:14:27 +02:00
Vadim Yanitskiy 0e9d8d75a2 jenkins-common.sh: add image_suffix_is_master()
Since recently, we also have a new IMAGE_SUFFIX '2021q1-centos8'.
We cannot rely on image_suffix_is_latest() anymore, because this
prefix does not qualify as 'latest'.  If one needs to enable a
feature that is only available in master, then here is a way:

  if ! image_suffix_is_master; then
      # Patch the configuration files
  fi

Change-Id: I65df66cd2e14934bed8114618d6ffad7831d1025
2021-06-29 13:13:47 +02:00
Pau Espin 12c37168ed bts-oml: Set mp_pcu_socket
Since recently (osmo-ttcn3-hacks.git
I78880098a55d1cb456011746efa0a47832a86ca8), BTS_Tests_OML use
mp_pcu_socket to set up PCUIF, which is used in some tests (like
validating forwarding of PCUIF messages PCU<->BSC).

Related: SYS#5303
Change-Id: Iac4aac8d98e2f45021858ddaa5e20ca4c6effb31
2021-06-28 14:25:43 +02:00
Oliver Smith 8c04ad26ac Don't run "dpkg --add-architecture i386" on ARM
Building debian-stretch-jenkins on ARM currently results in a few
libraries getting installed for the i386 architecture. This results in
the following build failures for master-osmo-trx and master-osmo-pcu:

  checking for LIBGNUTLS... no
  configure: error: Package requirements (gnutls >= 2.12.0) were not met:

  No package 'gnutls' found

It is weird that we are only seeing this now, the dpkg-line has been in
debian-stretch-jenkins since the Dockerfile was added to osmo-ci four
years ago in Icb0406f96b0c18e77be51ad8317c2668fb23a45e. I'm also
wondering why it was added in the first place, and if we need it
anymore. In any case, running this on anything but x86_64 does not make
sense, so disable it there.

Change-Id: I8d890b7ebc7b99a4c79779709d1e56e0a5a6d4b9
2021-06-17 11:46:01 +02:00
Oliver Smith 4acbc1874e debian-stretch-jenkins: install libcdk5-dev
Build meas_vis from osmo-bsc.git in gerrit-verifications and
master-builds.

Related: OS#5173
Change-Id: I8c98542bf9902d6b4fbd2f8718006027b8520f19
2021-06-07 09:54:23 +02:00
Neels Hofmeyr 41745d5ca0 add ttcn3-bsc-test-vamos
The purpose is to run osmo-ttcn3-hacks/bsc/BSC_Tests_VAMOS.ttcn with
  osmo-bts-omldummy -f VAMOS
(send BTS_FEAT_VAMOS = true).

Change-Id: I2146388bf683cfba99cef5592b8b141c3a6eabb1
2021-06-05 20:33:22 +00:00
Vadim Yanitskiy 19d334a238 ttcn3-bts-test/BTS_Tests.cfg: execute VAMOS specific test cases
Change-Id: I421f6ce5b689cd221f000043fcc0f5985e266e95
Related: SYS#4895, OS#4941
2021-06-03 05:01:20 +02:00
Daniel Willmann 87c03a40c5 ttcn3-gbproxy-test*: Update gbproxy NS timers
Change-Id: I7d436327bb57a3f6c6b071c28308c8a74561d93c
Related: OS#4952
2021-05-28 18:48:55 +02:00
Oliver Smith 4ae6ba75b4 jenkins-common.sh: add image_suffix_is_latest
Make sure we run the latest-code paths for "latest-centos8" too.

Change-Id: Ibcc7dfb092b3766ef9b189ae990b43fdb746a022
2021-05-21 16:24:58 +02:00
Oliver Smith 9f9782a702 ttcn3-sgsn-test: fix config sed for latest
Change-Id: I17d0554188fad6f890f844bf978d622661290fce
2021-05-21 16:24:16 +02:00
Pau Espin 6947d06b6e ttcn3-sgsn: Update config to test RIM over GTPCv1
Related: SYS#5314
Depends: osmo-ttcn3-hacks.git I9dcf6ee2dc55bc6aba178eca30080233254f025e
Change-Id: I002da9afe5a7a3263fa4fda5d82fbc8d0faa0e18
2021-05-18 11:18:00 +02:00
Harald Welte c64b3155d8 ttcn3-stp-test: Add mp_stp_has_asp_quirk:=false for latest
Change-Id: Ib9a07a96f1adf871150e63eaf49a7e18c57d067e
2021-05-13 22:05:35 +02:00
Pau Espin 5882c8b6db osmo-gsm-tester: Update srsLTE references to srsRAN
Change-Id: I58d4c26337382ad9e66a569a482e77442137383a
2021-05-12 18:23:10 +02:00