Commit Graph

206 Commits

Author SHA1 Message Date
Harald Welte 911fbafbf7 Makefile support for our production infrastructure containers
Change-Id: I901e340d2c5c1e002ecc7efa4570d58ccb7b9229
2018-06-03 16:11:26 +00:00
Harald Welte 28a4e8e589 redmine: add .release file
Change-Id: I229fab6fa12f68e590f3bae6d5542bc4a5517f0b
2018-06-03 15:54:34 +00:00
Harald Welte c400005f38 Makefile: get rid of entire git tagging logic
Change-Id: Idaa55b636031afd214853ccfcf6c9e3b097050b1
2018-06-03 15:54:34 +00:00
Harald Welte 9e631757be Makefile: Don't use "-dirty" logic when tagging docker images
Change-Id: Ie44144f25fd5f801ceeed904f6d19521b333ed0d
2018-06-03 15:54:34 +00:00
Harald Welte 9b94c793be Makefile: Only push a tag if there is a .release file
Change-Id: I73b2ed5794c75d09b166bc65ac79b9cbe3764ad4
2018-06-03 15:54:34 +00:00
Harald Welte a2e28ef91f Makefile: Allow override of REGISTRY/USERNAME/NAME/IMAGE
Change-Id: If2e3cc7693ce5e7c1c95d2f81e302c72bb4230be
2018-06-03 15:54:34 +00:00
Harald Welte 61145cf086 bsc: Enable LCLS tests from BSC_Tests_LCLS TTCN-3 module
Change-Id: I0439c61cc49e088efef3b91c1dbf293ee9a44939
2018-06-03 15:16:41 +00:00
Harald Welte 0f0fd8c41e redmine: Migrate from 3.2 to 3.4
Change-Id: I8bfd387c71477c4dfdea2eb8520415ce129a3b32
2018-05-30 14:28:25 +00:00
Harald Welte da04310dd9 ttcn3-bsc-test: Add SCCPlite configs + jenkins-sccplite.sh
The existing dest config + jenkins.sh test 3GPP AoIP operation,
while the new set of configs + jenkins-sccplite.sh are testing
IPA/SCCPlite operation of osmo-bsc.

Change-Id: Ief0799a8f7d378dc3831e7988c9175166c82eace
2018-05-30 14:28:25 +00:00
Harald Welte baaf308fcb osmo-bsc.cfg: remove obsolete "dest" command
Change-Id: I9c81af2e5ff1149a9fb0cb161e907eddf2270648
2018-05-30 14:28:25 +00:00
Stefan Sperling 4147adabb9 fix location area codes in BSC_Tests osmo-bsc.cfg for jenkins
The osmo-bsc configuration file used on Jenkins assigned wrong location
area codes to BTS 1 and 2. This fix should make TC_paging_imsi_nochan_lac
and TC_paging_imsi_nochan_lai pass on Jenkins.

Change-Id: Id35a85804c4a07f6c4136ef4570b4e21e250b9cd
2018-05-29 16:13:40 +02:00
Harald Welte 0434f34c36 osmo-*-master: add Dockerfile ARG for git repo branch to be built
This allows the user to build any non-master branches of the related
repositories, which is helpful for local testing before pushing changes
to git.

Change-Id: I0c3349e9a60015472c96bd24fbf29aad57501a00
2018-05-23 20:00:24 +02:00
Philipp Maier 354e8a8969 osmo-mgw-master: add Dockerfile ARG for git repo branch to be built
This allows the user to build any non-master branches of the related
repositories, which is helpful for local testing before pushing changes
to git.

Change-Id: I42054d585a5774452a13750ee1c3e6bb8013b26f
2018-05-23 20:00:24 +02:00
Philipp Maier db3fa19238 osmo-bts-master: add Dockerfile ARG for git repo branch to be built
This allows the user to build any non-master branches of the related
repositories, which is helpful for local testing before pushing changes
to git.

Change-Id: Ide8248cb508be27f2cff620d79df7eb50f309af1
2018-05-23 20:00:24 +02:00
Harald Welte 2a1a78d011 osmo-hnbgw-master: use debian jessie, like all other osmo-*-master
Change-Id: I6328e3a9a56308cc395b463dcc40288aae421225
2018-05-23 20:00:24 +02:00
Harald Welte d5a1ed1a85 redmine: Change content-disposition of image attachments to 'inline'
Closes: OS#3264
Change-Id: Ib60a12fc4adc0ceebfed70ff14d5ae256868bb2b
2018-05-15 18:45:19 +00:00
Harald Welte cb3ccb149b redmine: add missing patch "redmine-issue-2047-svg-image-support.diff"
Change-Id: Ib357ed1c847c7c3d9395b1b45a7f9b4a88dd09f8
2018-05-15 18:37:39 +00:00
Harald Welte 51fe6da411 redmine: Add OpenID Digest::HMAC fix
From Holger:
Digest: This seems a bit of the magic of ruby but I vaguely remember having seen this before. I have
either patched or backported a fix. In newer Ruby versions "Digest" has been deprecated. The diff to
"stock" openid 2.3.0 is:

Change-Id: Idaca479140846481372ad0e1bff741bb09010847
Related: OS#3081
2018-05-14 12:18:46 +02:00
Harald Welte 196206b159 redmine: add patch for SVG support
Change-Id: I3bacdd4100c717ad702bc08851a8b32170610ca4
2018-05-14 12:12:31 +02:00
Harald Welte 934c181542 dockerfile for patchwork patch tracking software
Change-Id: I4095148d2c8a1b6ba9beafda053c38022b147819
2018-05-13 23:50:51 +02:00
Harald Welte aa1ccdabb7 Add Dockerfile for osmocom redmine:3.2 container
this container has mscgen + dot/graphviz, as we need it.

Change-Id: I8950f74da4d2ed10f15bcbe7596f6e9c13474e58
2018-05-13 21:21:50 +02:00
Harald Welte a421358ab8 Add osmo-*-latest Dockerfiles
Those containers are using the OBS-built "latest" packages on Debian 9

Change-Id: I6a564206dd81743deb1eb27eca7081bc333d7434
2018-05-04 18:12:37 +02:00
Neels Hofmeyr 5d2ffd0abf ttcn3-{mgw,ggsn}-test: use VOL_BASE_DIR from jenkins-common.sh
Do not brush over VOL_BASE_DIR with a new temp dir, since jenkins-common.sh has
already figured out where these should run.

Should fix jenkins job build failures for mgw and ggsn, after the merge of
I8cf6014725ae8ba602be5f3ec31dfb8e49ff993e.

Change-Id: Iee034df93bf8e8b995262749cf4654886032af2b
2018-05-03 14:26:50 +02:00
Neels Hofmeyr 18392ee604 jenkins.sh: stay in the jenkins workspace, not in /tmp
On jenkins, place all logs and manage docker volumes in the workspace instead
of a /tmp/* dir. Use $WORKSPACE/logs as docker volume base to begin with, thus
there needs to be no copy from /tmp to $WORKSPACE/logs.

On non-jenkins runs, place all in a /tmp/* dir still, but also skip copying of
the logs: just have a /tmp/logs symlink to the last tmpdir.

Change-Id: I8cf6014725ae8ba602be5f3ec31dfb8e49ff993e
2018-05-02 09:36:57 +00:00
Harald Welte aff7d1b4d8 ttcn3-ggsn-test: Add VTY IP to config file
In Change-Id: I1dc299407c61b1c865035add44067b8ab89001b3
a VTY interface was added to osmo-ttcn3-hacks.git, but
it was missed to update the config file here for the dockerized
execution, rendering us with broken test builds ever since.

Change-Id: I9539f7a28cf9214bd73ac9f80d22c71041c47adb
Related: OS#2519
2018-04-26 07:02:31 +00:00
Holger Hans Peter Freyther b210f3aa6e Add Dockerfile for gerrit and monkey patch
The openid support doesn't allow to add custom providers but we like the
convenience of a single click. Take the official docker image and patch
the HTML template. It seems to have changed little over the time, and it
might continue like that...

I have filed https://bugs.chromium.org/p/gerrit/issues/detail?id=8828 so
that we can drop this hack in the future...

Change-Id: I713948fbb93355c2e33e3b92969e2389cb88c938
2018-04-24 16:19:49 +00:00
Neels Hofmeyr 2f61bf81e9 jenkins.sh: have one common function to collect logs
To remove code dup and prepare a change to where logs are written, add
collect_logs() to jenkins_common.sh and call that from each jenkins.sh after
the tests are done.

The 'rm -rf' is already done before a test starts. No need to do that again
after each test.

Change-Id: I5d8472ec36b07c828685b1bd7718e31392d168a3
2018-04-24 13:46:05 +00:00
Neels Hofmeyr 9f5131ab9d jenkins.sh: drop obsolete VOL_SUITE_DIR
Subdirs' jenkins.sh scripts create their own subdirs without exception.

Change-Id: Iaf428cde0f4d3efbdb31d7af434aa82425c1bc5f
2018-04-24 13:46:03 +00:00
Harald Welte 588da83011 bsc + msc: Add missing BSSAP_Configuration.transport field
After merging Change-Id: Ie844c4de62e0ef5d5c4c366185968211a7f6d676
in osmo-ttcn3-hacks, the module parameters for BSSAP configuration
require one extra argument.

Change-Id: I2a0011bc6f7bdf013005d1ea36da591673344eed
Related: OS#2544
2018-04-18 15:40:33 +02:00
Harald Welte 67c306a8df ttcn3-*-test: Remove cherry-pick of CCM related HACK
This is no longer needed as the fix for https://osmocom.org/issues/2718
has been merged to master of osmo-ttcn3-hacks

Change-Id: Ia0c1c134405fdbce1c65059d705827f1a643e774
Related: OS#2718
2018-04-17 21:58:08 +02:00
Harald Welte 8e337f0bca ttcn3-msc-test: Add SMPP config bits
Change-Id: I595a1ca2d47667e654f8a0a69bfe98c91ac58d39
2018-04-14 19:40:12 +00:00
Alexander Couzens 5910de0394 Makefile: use $USER/image when depending on a generated image
Te make scripts will generate docker images like
"$username/foobar-test". When depending on an previous image,
the $username must match or the build will about with image not found.

Change-Id: Ied42c3e1de9a2ffaca22ba4cd02e6a398e48e97d
2018-04-12 09:20:34 +00:00
Alexander Couzens a80e410fc5 add .gitreview
Allows `git review` to automatic setup gerrit

Change-Id: I179c02d38496bf3d408020db7f0baf79ee064705
2018-04-12 09:20:24 +00:00
Neels Hofmeyr 2d734900d8 ttcn3-bsc-test: bsc cfg: fix ARFCN-BSIC collisions
All three BTS are configured for ARFCN 871 and BSIC 63, which causes trouble
for handover tests. Set BSICs to 10, 11 and 12 (not 0,1,2 to mark the
distinction from the cell_identity).

It wasn't a problem so far since we cheated by passing the BTS target number
from VTY. But as soon as we will start identifying handover target cells by
ARFCN+BSIC exclusively, TC_ho_int would fall on its face without this patch.

See also: osmo-ttcn3-hacks I2ea8889ea40953f5a23eab40db52585556a410bc
Change-Id: I29a117aa54aa06ca49646f25a08af8521832fd8d
2018-04-11 01:24:05 +02:00
Vadim Yanitskiy 9d3b695d46 ttcn3-bts-test/jenkins.sh: fix fake_trx.py path
Change-Id: Ie9931651d477dc95c561a5ed554d5360b465d4da
2018-04-10 18:08:10 +07:00
Vadim Yanitskiy 54f75b6c8d trxcon/Dockerfile: use 'master' branch
The 'laforge/trx' branch of OsmocomBB was used to make basic
TTCN3 tests, such as the 'max_ta', work ASAP. Now all required
changes and some bug fixes have been merged to the 'master'.

Change-Id: I4c3012c4ad24dfebea61e14038bea86d4f56832d
2018-04-08 01:14:09 +07:00
Harald Welte 7bbf1c8f7c ttcn3-bts-test: Configure BTS to have dynamic PDCH
This is required by later versions of the osmo-ttcn3-hacks BTS
test suite after Change-Id I2a42531dc5555ab4772d538fda462343605b8feb

Change-Id: I229000ce7609845fdf24cafe1f5ec2bfa3f507e8
2018-04-06 13:47:34 +02:00
Neels Hofmeyr 6239abbd9c root Makefile: fix ttcn3-msc-test rule, drop an extra .PHONY
Change-Id: I098d9d84d9ce89b1dab204b90d2cd7ee7b3f19c9
2018-04-05 13:52:19 +02:00
Neels Hofmeyr 2f1b669e2f fix 'make -C subdir': use $(CURDIR) instead of $PWD
$(PWD) reflects the dir of 'make' invocation, $(CURDIR) the dir stepped into.
So obtain the current dir from $(CURDIR) instead of $(PWD).

So far, when doing 'make -C osmo-foo-maser', the image's name would be derived
from the root dir's basename and all images were tagged as 'docker-playground'.
With this fix, 'make -C' from anywhere still tags with the proper name.

Change-Id: I1dd0fd1ad89fdee18fdbea851ccc831ad60aeccf
2018-04-05 03:15:23 +02:00
Neels Hofmeyr 1b51ff89c5 osmo-bsc.cfg: drop legacy config: timeout-ping, timeout-pong
Change-Id: I70bffa7ed96da099993ba0cedc50178ca9e00db4
2018-04-05 00:54:18 +02:00
Neels Hofmeyr 024458ce91 ttcn3-bts-test: properly configure CTRL interface
osmo-ttcn3-hacks adds configuration of the CTRL interface in
I502b4891e6720ae2fb251c03542f707880a6f728. We need proper IP addresses here for
the f_ipa_ctrl_start() to work.

WARNING: This commit has to be merged "at the same time" as
I502b4891e6720ae2fb251c03542f707880a6f728 or the jenkins ttcn3-bts-tests will
fail.

a) if we want to set a modulepar mp_ctrl_ip here, it needs to be added to
osmo-ttcn3-hacks.

b) if we have the f_ipa_ctrl_start() in osmo-ttcn3-hacks, we need to configure
the proper IP and bind interface here, or all tests will fail because
f_ipa_ctrl_start() cannot connect.

Change-Id: I1ec86b157ebd46bf622a0ca51eba225f15c99fbb
2018-04-03 19:29:45 +02:00
Philipp Maier a13c475215 MSC_Tests: Fix routing key in ttcn3-msc-test
the routink key for virt-bsc0-0 and virt-bsc1-0 is the same
(0), virt-bsc0-0 and virt-bsc1-0 should use different routing
keys.

- Keep the routing key of virt-bsc1-0 and assign routing key 1
  to virt-bsc1-0

Change-Id: I1380ba389dc777cdac84677588b85759cad4bc14
2018-03-29 17:19:35 +02:00
Harald Welte b369792722 ttcn3-bsc-test: Fix config file syntax
In osmo-ttcn3-hacks Change-Id I52a4c8118828c1605cf672889982f987568ad17d
we introduced changes to the BSSAP_Adapter, but the config file for
the BSC hasn't been updated accordingly here.

Change-Id: I7cfc6414c1a783bab54f0d82589de82af4764daa
2018-03-29 14:35:35 +00:00
Harald Welte f4857ed00c msc: Fix osmo-stp.cfg
In Change-Id: Ie7780750f7032453951f6849ecee6ab7cc34e8c2 we not only
introduced a MSC_Tests.default with syntax errors, but also a
osmo-stp.cfg with syntax errors :((

Change-Id: If7a7ff3d7ddb255654d14fe17033390214fe5341
2018-03-29 13:56:23 +02:00
Philipp Maier 92344af824 ttcn3-msc-test: update configuration
The MSC_Tests.ttcn testsuite is now able to present multiple BSC
to the MSC (IUT). This change requires the configuration files
of osmo-stp and of the testsuite to be changed.

- update MSC_Tests.cfg to present up to two BSCs to the MSC
- update osmo-stp.cfg to support the additional connection
  from the testsuite

Change-Id: Ie7780750f7032453951f6849ecee6ab7cc34e8c2
Depends: osmo-ttcn3-hacks I52a4c8118828c1605cf672889982f987568ad17d
Related: OS#1609
2018-03-28 17:44:43 +00:00
Harald Welte c3835fc65e Add git-daemon docker container
Change-Id: I1d3632c43a9ec551164401beecbaf94a49e2a470
2018-03-28 17:43:33 +00:00
Harald Welte d8f0860056 Add gitolite Docker container
Change-Id: I1cd4aecd6ca6794c72e5eaabc3678500ed8a8d72
2018-03-28 17:43:33 +00:00
Neels Hofmeyr b0a6dce4fe Makefile: add dependency tree to rebuild specific test suites' images
Change-Id: I1b3b750b0bf51c93c3b237acfd09d30262544045
2018-03-28 17:37:55 +00:00
Harald Welte b317348065 Add osmocom-extended cgit container
This uses the debian-nginx container "ankitrgadiya/cgit:debian-nginx"
and adds pygments for syntax highlighting, as well as the osmocom
commit filter for linking to gerrit change-ids as well as
redmine issues

Change-Id: Iec75769a972950ed9df95d5b36aa930daad1565a
2018-03-28 13:45:48 +02:00
Harald Welte ca0a2752c6 rename ggsn-test to ttcn3-ggsn-test to align with other naming
Change-Id: Ib2278d582048adb4d8bd3b25578372b3e1abfd77
2018-03-28 10:37:48 +00:00