Commit Graph

14 Commits

Author SHA1 Message Date
Oliver Smith 6a8118dad8 ttcn3: use debian-bookworm-titan
Related: OS#6057
Change-Id: I2017dd3888670c475b96e692d911a433484f3df9
2023-08-14 09:28:24 +00:00
Oliver Smith 46e4362ae2 FR testsuites: clean up all networks before start
Add a new network_clean_remove_all_ttcn3 function and use it in the fr
related testsuites to ensure no network is running before the test
starts. We just had the situation where the network link between
gtp0-deb10fr (where these testsuites run exclusively, and only one at a
time) and the jenkins host went down. And so the clean up trap
apparently did not run and starting a new test fails as the old network
still exists and has the network devices attached.

Related: OS#5802
Change-Id: I6a9464a11edcba978be08764bec9de19760a5c77
2023-01-30 13:45:30 +01:00
Oliver Smith f997b4e771 network_create: find free subnet automatically
Try multiple subnet numbers until successfully creating a network. This
way we can run the same ttcn3 testsuite multiple times in parallel
without conflicts (e.g. once against latest, once against nightly). Also
we don't need to make sure each new testsuite has a unique subnet
number anymore.

I've considered also adjusting network_bridge_create, but that gets used
exclusively by osmo-ran/jenkins.sh, a script which we don't actually run
in jenkins. It seems that in this script it makes more sense to not get
a random subnet number.

Related: OS#5802
Change-Id: I57152b08ef0f38e17e7019a8df032189b03f56cf
2023-01-16 15:19:29 +00:00
Pau Espin a719a8db61 Use gerrit as osmo-ttcn3-hacks.git git remote
Other remotes are mirrors of gerrit one, which means there's some delay
between pushing some ref to the gerrit remote and having them available
in the mirrors.
Hence, it becomes annoying while developing and new stuff to test is
pushed. Let's simply use gerrit since it's the master remote.

Change-Id: Ic87c196f8b91a3a3e6ddde2cca36482ce7070df7
2022-09-20 12:09:32 +02:00
Harald Welte 0f74af6083 titan: move from debian-stetch-titan to debian-bullseye-titan
So far we were executing all our TTCN-3  tests from a container
image with Debian stretch (9) plus a custom more recent eclipse-titan
package from the osmocom feed.

Let's update the container base OS from stretch (9) to bullseye (11)
while using the same packaged eclipse-titan version (8.0.0) for running
the tests.  So this should be a low-risk change, as titan runtime
remains identical.

I've executed all test suites locally and couldn't see any regressions.

Related: OS#4969
Change-Id: Ib3bdfa3bec8f8ef42c55ca61cdee8fbca923874f
2021-12-16 11:40:17 +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
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
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
Harald Welte 6f47979bdd Add ttcn3-ns-test-fr container
... which requires some modifications to osmo-ns-master
regarding pipework / docker-entrypoint.sh

Change-Id: I418f81eb1fbb2b15335ef64a3aa04d1c98a452c9
Related: SYS#5396
2021-03-31 10:17:14 +02:00
Harald Welte 90bf14ed06 Add ttcn3-ns-test-sns container
Change-Id: I8fc4f6453f04aa579762da9200900f25e78034c5
Related: OS#5396
2021-03-30 22:38:45 +02:00
Harald Welte 3862858434 Add ttcn3-ns-test container
Change-Id: I45d211f4edd39e5be8f63185f1b7bd100fb2644b
Related: OS#5396
2021-03-30 20:32:52 +02:00