lists.osmocom.org
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview

gerrit-log

Thread Start a new thread
Download
Threads by month
  • ----- 2026 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2025 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2024 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2023 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2022 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
gerrit-log@lists.osmocom.org

August 2024

  • 1 participants
  • 1478 discussions
[S] Change in osmo-ci[master]: ansible/hosts: remove build3
by osmith 02 Aug '24

02 Aug '24
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/37710?usp=email ) Change subject: ansible/hosts: remove build3 ...................................................................... ansible/hosts: remove build3 It doesn't exist anymore, so remove build3. Related: OS#6186 Change-Id: Ieb530238604cd49d63e9f676f71511d5be6968ec --- M ansible/hosts 1 file changed, 12 insertions(+), 4 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/10/37710/1 diff --git a/ansible/hosts b/ansible/hosts index ba7dce9..7f846ec 100644 --- a/ansible/hosts +++ b/ansible/hosts @@ -4,13 +4,11 @@ [coverity_slaves] build2-deb11build-ansible ansible_host=2a01:4f8:10b:2ad9::1:13 -build3-deb11build-ansible ansible_host=2a01:4f8:212:3762::1:3 build4-deb12build-ansible ansible_host=2a01:4f8:121:200a::1:3 [jenkins_slaves] build2-deb10build-ansible ansible_host=2a01:4f8:10b:2ad9::1:10 osmocom_jenkins_slave_fstrim=True docker_max_image_space="80 GB" build2-deb11build-ansible ansible_host=2a01:4f8:10b:2ad9::1:13 osmocom_jenkins_slave_fstrim=True docker_max_image_space="80 GB" -build3-deb11build-ansible ansible_host=2a01:4f8:212:3762::1:3 osmocom_jenkins_slave_fstrim=True docker_max_image_space="80 GB" build4-deb12build-ansible ansible_host=2a01:4f8:121:200a::1:3 osmocom_jenkins_slave_fstrim=True docker_max_image_space="80 GB" host2-deb11build-ansible ansible_host=2a01:4f8:120:8470::1:4 osmocom_jenkins_slave_fstrim=True docker_max_image_space="80 GB" rpi4-raspbian11build-ansible-1 ansible_host=10.9.25.50 docker_max_image_space="20 GB" @@ -22,11 +20,9 @@ simtest ansible_host=10.9.25.80 [obs_workers] -build3-obsworker1 ansible_host=2a01:4f8:212:3762::1:2 obs_worker_instances=8 obs_worker_jobs=8 build4-obsworker1 ansible_host=2a01:4f8:121:200a::1:2 obs_worker_instances=8 obs_worker_jobs=8 lx2-1-obs-aarch64-1 ansible_host=2a02:8106:13:1e34:4e9:e7ff:fe97:fe92 obs_worker_instances=1 obs_worker_jobs=4 # Need to have kvm inside lxc, see OS#5365 [qemu] -build3-deb11build-ansible ansible_host=2a01:4f8:212:3762::1:3 build4-deb12build-ansible ansible_host=2a01:4f8:121:200a::1:3 -- To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/37710?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Change-Id: Ieb530238604cd49d63e9f676f71511d5be6968ec Gerrit-Change-Number: 37710 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith(a)sysmocom.de> Gerrit-MessageType: newchange
1 0
0 0
[S] Change in osmo-ci[master]: registry-rebuild-upload-testenv: new job
by osmith 02 Aug '24

02 Aug '24
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/37712?usp=email ) Change subject: registry-rebuild-upload-testenv: new job ...................................................................... registry-rebuild-upload-testenv: new job Add a job that updates the one podman image used by ttcn3 testsuites with testenv to the registry. The new testsuite jobs will not build their own images anymore, just pull this one at the start. Related: OS#6494 Change-Id: I4f069efcb1de01b8efda095d649721f41ab8ac35 --- M jobs/registry-rebuild-upload-titan.yml 1 file changed, 46 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/12/37712/1 diff --git a/jobs/registry-rebuild-upload-titan.yml b/jobs/registry-rebuild-upload-titan.yml index a535920..8fed502 100644 --- a/jobs/registry-rebuild-upload-titan.yml +++ b/jobs/registry-rebuild-upload-titan.yml @@ -3,6 +3,7 @@ jobs: - registry-rebuild-upload-titan - registry-rebuild-upload-ttcn3-bts-tests + - registry-rebuild-upload-testenv - scm: name: osmocom-docker-playground @@ -69,4 +70,35 @@ notify-every-unstable-build: true recipients: 'jenkins-notifications(a)lists.osmocom.org' +- job: + name: registry-rebuild-upload-testenv + description: Rebuild + publish podman images for testenv (OS#6494) + parameters: + - string: + name: BRANCH + description: osmo-ttcn3-hacks.git branch + default: 'master' + scm: + - git: + url: https://gerrit.osmocom.org/osmo-ttcn3-hacks + branches: + - '$BRANCH' + builders: + - shell: | + REGISTRY="registry.osmocom.org" + DISTRO="debian:bookworm" + IMAGE="registry.osmocom.org/osmocom-build/"$(echo "$DISTRO" | tr : -)"-osmo-ttcn3-testenv" + + podman build \ + --build-arg DISTRO="$DISTRO" \ + --build-arg REGISTRY="$REGISTRY" \ + -t "$IMAGE" \ + _testenv/data/podman + + podman push "$IMAGE" + publishers: + - email: + notify-every-unstable-build: true + recipients: 'jenkins-notifications(a)lists.osmocom.org' + # vim: expandtab tabstop=2 shiftwidth=2 -- To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/37712?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Change-Id: I4f069efcb1de01b8efda095d649721f41ab8ac35 Gerrit-Change-Number: 37712 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith(a)sysmocom.de> Gerrit-MessageType: newchange
1 0
0 0
[S] Change in osmo-ci[master]: ansible/setup-jenkins: add podman
by osmith 02 Aug '24

02 Aug '24
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/37711?usp=email ) Change subject: ansible/setup-jenkins: add podman ...................................................................... ansible/setup-jenkins: add podman Install podman on jenkins nodes, to be used with the testenv for running ttcn3 testsuites in rootless containers. Related: OS#6494 Change-Id: Icefc8c507689f668bac2d1fe3fb0c44ac7ad8b6f --- M ansible/setup-jenkins-slave.yml 1 file changed, 19 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/11/37711/1 diff --git a/ansible/setup-jenkins-slave.yml b/ansible/setup-jenkins-slave.yml index ffafaf0..2ed3bc7 100644 --- a/ansible/setup-jenkins-slave.yml +++ b/ansible/setup-jenkins-slave.yml @@ -26,6 +26,12 @@ tags: - docker + - name: podman + when: ansible_distribution == 'Debian' and ansible_distribution_version|int >= 11 + jenkins_user: osmocom-build + tags: + - podman + - name: install-poky-sdk when: ansible_architecture == "x86_64" jenkins_user: osmocom-build -- To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/37711?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Change-Id: Icefc8c507689f668bac2d1fe3fb0c44ac7ad8b6f Gerrit-Change-Number: 37711 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith(a)sysmocom.de> Gerrit-MessageType: newchange
1 0
0 0
[L] Change in osmo-ci[master]: jobs/ttcn3-testsuites-testenv: initial
by osmith 02 Aug '24

02 Aug '24
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/37713?usp=email ) Change subject: jobs/ttcn3-testsuites-testenv: initial ...................................................................... jobs/ttcn3-testsuites-testenv: initial Move the first testsuites over from the old docker-playground based architecture of running testsuites to testenv. I'm doing this iteratively to avoid regressions. Depends: osmo-ttcn3-hacks If9f8b79dd6e5b4f06be4e5ff73db97759c3acfb2 Change-Id: I6c7f88bb268a9f339b3af1d31d665e4376b34e48 --- A jobs/ttcn3-testsuites-testenv.yml M jobs/ttcn3-testsuites.yml 2 files changed, 276 insertions(+), 67 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/13/37713/1 diff --git a/jobs/ttcn3-testsuites-testenv.yml b/jobs/ttcn3-testsuites-testenv.yml new file mode 100644 index 0000000..df52f80 --- /dev/null +++ b/jobs/ttcn3-testsuites-testenv.yml @@ -0,0 +1,262 @@ +--- +- project: + name: 'ttcn3-testsuites' + concurrent: false + disabled: false + description: | + Run the <code>{testsuite}</code> testsuite from + <a href="https://gitea.osmocom.org/ttcn3/osmo-ttcn3-hacks"> + osmo-ttcn3-hacks.git</a> with testenv.py.<br> + See <a href="https://osmocom.org/projects/cellular-infrastructure/wiki/Titan_TTCN3_Tests…"> + TTCN3 Testsuite</a> for more information.<br> + <br> + Arguments: <code>{args}</code> + timer: "@midnight" + node: ttcn3 + jobs: + - "{job-name}" + # timers: see jobs/README.adoc + job-name: + # --------------------------------------------- + # Debian nightly + # --------------------------------------------- + - ttcn3-hlr-test: + testsuite: hlr + args: -b osmocom:nightly + timer: H 05 * * * + + - ttcn3-mgw-test: + testsuite: mgw + args: -b osmocom:nightly + timer: H 05 * * * + + - ttcn3-sip-test: + testsuite: sip + args: -b osmocom:nightly + timer: H 05 * * * + + - ttcn3-sgsn-test: + testsuite: sgsn + args: -b osmocom:nightly -c generic + timer: H 05 * * * + + - ttcn3-sgsn-test-sns: + testsuite: sgsn + args: -b osmocom:nightly -c sns + timer: H 05 * * * + + - ttcn3-smlc-test: + testsuite: smlc + args: -b osmocom:nightly + timer: H 06 * * * + + - ttcn3-cbc-test: + testsuite: cbc + args: -b osmocom:nightly + timer: H 06 * * * + + - ttcn3-hnodeb-test: + testsuite: hnodeb + args: -b osmocom:nightly + timer: H 07 * * * + + - ttcn3-dia2gsup-test: + testsuite: dia2gsup + args: -b osmocom:nightly + timer: H 07 * * * + + - ttcn3-upf-test: + testsuite: upf + args: -b osmocom:nightly + timer: H 07 * * * + + - ttcn3-hss-test-ogs: + testsuite: hss + args: -b osmocom:nightly + timer: H 07 * * * + email: jenkins-notifications(a)lists.osmocom.org acetcom(a)gmail.com + + - ttcn3-mme-test-ogs: + testsuite: mme + args: -b osmocom:nightly + timer: H 07 * * * + email: jenkins-notifications(a)lists.osmocom.org acetcom(a)gmail.com + + # --------------------------------------------- + # Debian latest + # --------------------------------------------- + - ttcn3-hlr-test-latest: + testsuite: hlr + args: -b osmocom:latest + timer: H 08 * * * + + - ttcn3-mgw-test-latest: + testsuite: mgw + args: -b osmocom:latest + timer: H 08 * * * + + - ttcn3-sip-test-latest: + testsuite: sip + args: -b osmocom:latest + timer: H 08 * * * + + - ttcn3-sgsn-test-latest: + testsuite: sgsn + args: -b osmocom:latest -c generic + timer: H 08 * * * + + - ttcn3-sgsn-test-sns-latest: + testsuite: sgsn + args: -b osmocom:latest -c sns + timer: H 08 * * * + + - ttcn3-smlc-test-latest: + testsuite: smlc + args: -b osmocom:latest + timer: H 09 * * * + + - ttcn3-cbc-test-latest: + testsuite: cbc + args: -b osmocom:latest + timer: H 09 * * * + + - ttcn3-hnodeb-test-latest: + testsuite: hnodeb + args: -b osmocom:latest + timer: H 10 * * * + + - ttcn3-upf-test-latest: + testsuite: upf + args: -b osmocom:latest + timer: H 10 * * * + disabled: true + + # --------------------------------------------- + # Debian nightly + io_uring (OS#6357) + # --------------------------------------------- + - ttcn3-mgw-test-io_uring: + testsuite: mgw + args: -b osmocom:nightly --io-uring + timer: H 11 * * * + + - ttcn3-sgsn-test-io_uring: + testsuite: sgsn + args: -b osmocom:nightly --io-uring -c generic + timer: H 11 * * * + + # --------------------------------------------- + # Debian nightly + asan (OS#5301) + # --------------------------------------------- + - ttcn3-mgw-test-asan: + testsuite: mgw + args: -b osmocom:nightly:asan + timer: H 12 * * * + + - ttcn3-hlr-test-asan: + testsuite: hlr + args: -b osmocom:nightly:asan + timer: H 12 * * * + + - ttcn3-sip-test-asan: + testsuite: sip + args: -b osmocom:nightly:asan + timer: H 12 * * * + + - ttcn3-hnodeb-test-asan: + testsuite: hnodeb + args: -b osmocom:nightly:asan + timer: H 12 * * * + + - ttcn3-smlc-test-asan: + testsuite: smlc + args: -b osmocom:nightly:asan + timer: H 12 * * * + + - ttcn3-cbc-test-asan: + testsuite: cbc + args: -b osmocom:nightly:asan + timer: H 12 * * * + + - ttcn3-sgsn-test-asan: + testsuite: sgsn + args: -b osmocom:nightly:asan -c generic + timer: H 12 * * * + +- job-template: + name: '{job-name}' + project-type: freestyle + disabled: '{obj:disabled}' + defaults: global + description: '{obj:description}' + node: '{obj:node}' + parameters: + - string: + name: BRANCH + description: | + Branch of <code>osmo-ttcn3-hacks.git</code> + # default: 'master' + default: 'osmith/wip-testenv' # FIXME + builders: + - shell: |- + DISTRO="debian:bookworm" + IMAGE="registry.osmocom.org/osmocom-build/"$(echo "$DISTRO" | tr : -)"-osmo-ttcn3-testenv" + + podman pull "$IMAGE" + + rm -rf logs _cache + + set +x # Don't output the color codes we set here + export TESTENV_COLOR_DEBUG="$(printf '\e[0;94m')" # light blue + export TESTENV_COLOR_INFO="$(printf '\e[1;34m')" # bold, blue + export TESTENV_COLOR_WARNING="$(printf '\e[1;35m')" # bold, purple + export TESTENV_COLOR_ERROR="$(printf '\e[1;91m')" # bold, red + export TESTENV_COLOR_CRITICAL="$(printf '\e[1;91m')" # bold, red + export TESTENV_SOURCE_HIGHLIGHT_COLORS="esc" + export TESTENV_NO_IMAGE_UP_TO_DATE_CHECK=1 + set -x + + ./testenv.py run \ + {testsuite} \ + --podman \ + --cache "$PWD"/_cache \ + --ccache ~/ccache/testenv \ + --log-dir "$PWD"/logs \ + {args} + + # Free up space from downloaded apt packages, build artifacts etc. + # The osmo-ttcn3-hacks deps dir and ccache are persistent. + rm -rf _cache + + scm: + - git: + branches: + - '$BRANCH' + url: https://gerrit.osmocom.org/osmo-ttcn3-hacks + git-config-name: 'Jenkins Builder' + git-config-email: 'jenkins(a)osmocom.org' + wipe-workspace: false + triggers: + - timed: "{obj:timer}" + publishers: + - junit: + results: '**/junit-xml-*.log' + allow-empty-results: false + - email: + notify-every-unstable-build: false + recipients: '{obj:email}' + send-to-individuals: false + - archive: + allow-empty: false + artifacts: logs/**/* + case-sensitive: true + default-excludes: true + fingerprint: false + only-if-success: false + properties: + - build-discarder: + days-to-keep: 30 + num-to-keep: 120 + wrappers: + - ansicolor: + colormap: xterm + email: jenkins-notifications(a)lists.osmocom.org diff --git a/jobs/ttcn3-testsuites.yml b/jobs/ttcn3-testsuites.yml index 14e0a36..e11f5f3 100644 --- a/jobs/ttcn3-testsuites.yml +++ b/jobs/ttcn3-testsuites.yml @@ -81,20 +81,10 @@ timer: H 04 * * * - ttcn3-pcu-test-sns: timer: H 05 * * * - - ttcn3-sgsn-test: - timer: H 05 * * * - - ttcn3-sgsn-test-sns: - timer: H 05 * * * - ttcn3-bsc-test: timer: H 05 * * * - - ttcn3-mgw-test: - timer: H 05 * * * - - ttcn3-hlr-test: - timer: H 05 * * * - ttcn3-bts-test: timer: H 05 * * * - - ttcn3-sip-test: - timer: H 05 * * * - ttcn3-bscnat-test: timer: H 05 * * * disabled: true @@ -106,15 +96,11 @@ timer: H 06 * * * - ttcn3-sccp-test: timer: H 06 * * * - - ttcn3-smlc-test: - timer: H 06 * * * - ttcn3-gbproxy-test: timer: H 06 * * * - ttcn3-gbproxy-test-fr: timer: H 06 * * * node: hdlc - - ttcn3-cbc-test: - timer: H 06 * * * - ttcn3-ns-test: timer: H 06 * * * - ttcn3-ns-test-sns: @@ -128,10 +114,6 @@ timer: H 07 * * * - ttcn3-bsc-test-vamos: timer: H 07 * * * - - ttcn3-hnodeb-test: - timer: H 07 * * * - - ttcn3-upf-test: - timer: H 07 * * * - ttcn3-hnbgw-test: timer: H 07 * * * - ttcn3-fr-test: @@ -142,18 +124,6 @@ description: | Test open5gs-smfd + open5gs-upfd PGW main. email: jenkins-notifications(a)lists.osmocom.org acetcom(a)gmail.com - - ttcn3-mme-test-ogs: - timer: H 07 * * * - description: | - Test open5gs-mmed - email: jenkins-notifications(a)lists.osmocom.org acetcom(a)gmail.com - - ttcn3-hss-test-ogs: - timer: H 07 * * * - description: | - Test open5gs-hssd - email: jenkins-notifications(a)lists.osmocom.org acetcom(a)gmail.com - - ttcn3-dia2gsup-test: - timer: H 07 * * * - ttcn3-epdg-test: timer: H 07 * * * # osmo-epdg requires OTP and kernel >= debian12: @@ -178,20 +148,10 @@ timer: H 08 * * * - ttcn3-pcu-test-sns-latest: timer: H 08 * * * - - ttcn3-sgsn-test-latest: - timer: H 08 * * * - - ttcn3-sgsn-test-sns-latest: - timer: H 08 * * * - ttcn3-bsc-test-latest: timer: H 08 * * * - - ttcn3-mgw-test-latest: - timer: H 08 * * * - - ttcn3-hlr-test-latest: - timer: H 08 * * * - ttcn3-bts-test-latest: timer: H 08 * * * - - ttcn3-sip-test-latest: - timer: H 09 * * * - ttcn3-bscnat-test-latest: timer: H 09 * * * disabled: true @@ -203,22 +163,13 @@ timer: H 09 * * * - ttcn3-sccp-test-latest: timer: H 09 * * * - - ttcn3-smlc-test-latest: - timer: H 09 * * * - ttcn3-gbproxy-test-latest: timer: H 09 * * * - ttcn3-gbproxy-test-fr-latest: timer: H 09 * * * node: hdlc - - ttcn3-cbc-test-latest: - timer: H 09 * * * - ttcn3-pcap-client-test-latest: timer: H 10 * * * - - ttcn3-hnodeb-test-latest: - timer: H 10 * * * - - ttcn3-upf-test-latest: - timer: H 10 * * * - disabled: true - ttcn3-hnbgw-test-latest: timer: H 10 * * * - ttcn3-epdg-test-latest: @@ -246,12 +197,8 @@ timer: H 11 * * * - ttcn3-gbproxy-test-io_uring: timer: H 11 * * * - - ttcn3-sgsn-test-io_uring: - timer: H 11 * * * - ttcn3-stp-test-io_uring: timer: H 11 * * * - - ttcn3-mgw-test-io_uring: - timer: H 11 * * * - ttcn3-bts-test-io_uring: timer: H 11 * * * @@ -260,20 +207,12 @@ timer: H 12 * * * - ttcn3-bts-test-asan: timer: H 12 * * * - - ttcn3-cbc-test-asan: - timer: H 12 * * * - ttcn3-gbproxy-test-asan: timer: H 12 * * * - ttcn3-ggsn-test-asan: timer: H 12 * * * - - ttcn3-hlr-test-asan: - timer: H 12 * * * - ttcn3-hnbgw-test-asan: timer: H 12 * * * - - ttcn3-hnodeb-test-asan: - timer: H 12 * * * - - ttcn3-mgw-test-asan: - timer: H 12 * * * - ttcn3-msc-test-asan: timer: H 13 * * * - ttcn3-pcap-client-test-asan: @@ -284,12 +223,6 @@ timer: H 13 * * * - ttcn3-sccp-test-asan: timer: H 13 * * * - - ttcn3-sgsn-test-asan: - timer: H 13 * * * - - ttcn3-sip-test-asan: - timer: H 13 * * * - - ttcn3-smlc-test-asan: - timer: H 13 * * * - ttcn3-stp-test-asan: timer: H 13 * * * -- To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/37713?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Change-Id: I6c7f88bb268a9f339b3af1d31d665e4376b34e48 Gerrit-Change-Number: 37713 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith(a)sysmocom.de> Gerrit-MessageType: newchange
1 0
0 0
[M] Change in osmo-ttcn3-hacks[master]: cbc: initial testenv.cfg
by osmith 02 Aug '24

02 Aug '24
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37707?usp=email ) Change subject: cbc: initial testenv.cfg ...................................................................... cbc: initial testenv.cfg Change-Id: I8578bf7a2e627c93cc7480534cc2ddbba3ad6ff1 --- M cbc/CBC_Tests.cfg A cbc/osmo-cbc.cfg A cbc/testenv.cfg 3 files changed, 70 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/07/37707/1 diff --git a/cbc/CBC_Tests.cfg b/cbc/CBC_Tests.cfg index 7c2a3ac..2ab0885 100644 --- a/cbc/CBC_Tests.cfg +++ b/cbc/CBC_Tests.cfg @@ -11,6 +11,8 @@ [TESTPORT_PARAMETERS] [MODULE_PARAMETERS] +CBC_Tests.mp_local_host := "127.0.0.100"; +CBC_Tests.mp_cbc_host := "127.0.0.20"; [MAIN_CONTROLLER] diff --git a/cbc/osmo-cbc.cfg b/cbc/osmo-cbc.cfg new file mode 100644 index 0000000..5e8656d --- /dev/null +++ b/cbc/osmo-cbc.cfg @@ -0,0 +1,50 @@ +! +log gsmtap 127.0.0.100 + logging level set-all debug + logging level asn1c info + logging filter all 1 +! +log stderr + logging filter all 1 + logging color 1 + logging print category-hex 0 + logging print category 1 + logging print extended-timestamp 1 + logging print level 1 + logging print file 1 last + logging level set-all info + logging level cbsp debug + logging level sbcap debug + logging level rest debug +! +line vty + no login + bind 127.0.0.20 +! +cbc + unknown-peers reject + ecbe + local-ip 127.0.0.20 + local-port 12345 + cbsp + local-ip 127.0.0.20 + local-port 48049 + sbcap + local-ip 127.0.0.20 + local-port 29168 + peer cbsp ttcn3-bsc-client + mode server + remote-port 15000 + remote-ip 127.0.0.100 + peer cbsp ttcn3-bsc-server + mode client + remote-port 15001 + remote-ip 127.0.0.100 + peer sbcap ttcn3-mme-client + mode server + remote-port 16000 + remote-ip 127.0.0.100 + peer sbcap ttcn3-mme-server + mode client + remote-port 16001 + remote-ip 127.0.0.100 diff --git a/cbc/testenv.cfg b/cbc/testenv.cfg new file mode 100644 index 0000000..1cae33c --- /dev/null +++ b/cbc/testenv.cfg @@ -0,0 +1,9 @@ +[testsuite] +program=CBC_Tests +config=CBC_Tests.cfg + +[cbc] +program=osmo-cbc +make=osmo-cbc +package=osmo-cbc +copy=osmo-cbc.cfg -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37707?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I8578bf7a2e627c93cc7480534cc2ddbba3ad6ff1 Gerrit-Change-Number: 37707 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith(a)sysmocom.de> Gerrit-MessageType: newchange
1 0
0 0
[S] Change in osmo-ttcn3-hacks[master]: smlc: initial testenv.cfg
by osmith 02 Aug '24

02 Aug '24
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37706?usp=email ) Change subject: smlc: initial testenv.cfg ...................................................................... smlc: initial testenv.cfg Change-Id: Ib6db49f149e9382b802fceb40b307c5a286f92a1 --- A smlc/testenv.cfg 1 file changed, 24 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/06/37706/1 diff --git a/smlc/testenv.cfg b/smlc/testenv.cfg new file mode 100644 index 0000000..127e4d7 --- /dev/null +++ b/smlc/testenv.cfg @@ -0,0 +1,15 @@ +[testsuite] +program=SMLC_Tests +config=SMLC_Tests.cfg + +[stp] +program=osmo-stp +make=libosmo-sccp +package=osmo-stp +copy=osmo-stp.cfg + +[smlc] +program=osmo-smlc +make=osmo-smlc +package=osmo-smlc +copy=osmo-smlc.cfg -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37706?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: Ib6db49f149e9382b802fceb40b307c5a286f92a1 Gerrit-Change-Number: 37706 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith(a)sysmocom.de> Gerrit-MessageType: newchange
1 0
0 0
[L] Change in osmo-ttcn3-hacks[master]: mme: initial testenv.cfg
by osmith 02 Aug '24

02 Aug '24
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37709?usp=email ) Change subject: mme: initial testenv.cfg ...................................................................... mme: initial testenv.cfg Change-Id: I780584cc7722d92baa213049ee0a35e16a0e087c --- M mme/MME_Tests.cfg A mme/freediameter.conf A mme/open5gs-mme.yaml A mme/testenv.cfg 4 files changed, 375 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/09/37709/1 diff --git a/mme/MME_Tests.cfg b/mme/MME_Tests.cfg index 3e478c3..d0f5807 100644 --- a/mme/MME_Tests.cfg +++ b/mme/MME_Tests.cfg @@ -11,6 +11,33 @@ [TESTPORT_PARAMETERS] [MODULE_PARAMETERS] +# S1 interface +mp_mme_ip := "127.0.0.201"; +mp_mme_s1ap_port := 36412; +mp_s1_local_ip := "127.0.0.202"; +mp_s1_local_port := 50000; + +# S6 interface +mp_s6_local_ip := "127.0.0.202"; +mp_s6_local_port := 3868; + +# SGs interface +mp_sgs_local_ip := "127.0.0.202"; +mp_sgs_local_port := 29118; +mp_vlr_name := "vlr.example.net"; +mp_mme_name := "mmec01.mmegi0001.mme.epc.mnc070.mcc901.3gppnetwork.org"; + +# Gn interface +mp_gn_local_ip := "127.0.0.202"; +mp_gn_local_port := 2124; +mp_gn_remote_ip := "127.0.0.201"; +mp_gn_remote_port := 2123; + +# S11 interface (GTPv2C, interface between MME and SGW) +mp_s11_local_ip := "127.0.0.202"; +mp_s11_local_port := 2123; +mp_s11_remote_ip := "127.0.0.201"; +mp_s11_remote_port := 2123; [MAIN_CONTROLLER] diff --git a/mme/freediameter.conf b/mme/freediameter.conf new file mode 100644 index 0000000..932a5be --- /dev/null +++ b/mme/freediameter.conf @@ -0,0 +1,265 @@ +# This is a sample configuration file for freeDiameter daemon. + +# Most of the options can be omitted, as they default to reasonable values. +# Only TLS-related options must be configured properly in usual setups. + +# It is possible to use "include" keyword to import additional files +# e.g.: include "/etc/freeDiameter.d/*.conf" +# This is exactly equivalent as copy & paste the content of the included file(s) +# where the "include" keyword is found. + + +############################################################## +## Peer identity and realm + +# The Diameter Identity of this daemon. +# This must be a valid FQDN that resolves to the local host. +# Default: hostname's FQDN +#Identity = "aaa.koganei.freediameter.net"; +Identity = "mme.localdomain"; + +# The Diameter Realm of this daemon. +# Default: the domain part of Identity (after the first dot). +#Realm = "koganei.freediameter.net"; +Realm = "localdomain"; + +############################################################## +## Transport protocol configuration + +# The port this peer is listening on for incoming connections (TCP and SCTP). +# Default: 3868. Use 0 to disable. +Port = 3868; + +# The port this peer is listening on for incoming TLS-protected connections (TCP and SCTP). +# See TLS_old_method for more information about TLS flavours. +# Note: we use TLS/SCTP instead of DTLS/SCTP at the moment. This will change in future version of freeDiameter. +# Default: 5868. Use 0 to disable. +SecPort = 0; + +# Use RFC3588 method for TLS protection, where TLS is negociated after CER/CEA exchange is completed +# on the unsecure connection. The alternative is RFC6733 mechanism, where TLS protects also the +# CER/CEA exchange on a dedicated secure port. +# This parameter only affects outgoing connections. +# The setting can be also defined per-peer (see Peers configuration section). +# Default: use RFC6733 method with separate port for TLS. +#TLS_old_method; + +# Disable use of TCP protocol (only listen and connect over SCTP) +# Default : TCP enabled +#No_TCP; + +# Disable use of SCTP protocol (only listen and connect over TCP) +# Default : SCTP enabled +#No_SCTP; +# This option is ignored if freeDiameter is compiled with DISABLE_SCTP option. + +# Prefer TCP instead of SCTP for establishing new connections. +# This setting may be overwritten per peer in peer configuration blocs. +# Default : SCTP is attempted first. +#Prefer_TCP; + +# Default number of streams per SCTP associations. +# This setting may be overwritten per peer basis. +# Default : 30 streams +#SCTP_streams = 30; + +############################################################## +## Endpoint configuration + +# Disable use of IP addresses (only IPv6) +# Default : IP enabled +#No_IP; + +# Disable use of IPv6 addresses (only IP) +# Default : IPv6 enabled +#No_IPv6; + +# Specify local addresses the server must bind to +# Default : listen on all addresses available. +#ListenOn = "202.249.37.5"; +#ListenOn = "2001:200:903:2::202:1"; +#ListenOn = "fe80::21c:5ff:fe98:7d62%eth0"; +ListenOn = "127.0.0.201"; + + +############################################################## +## Server configuration + +# How many Diameter peers are allowed to be connecting at the same time ? +# This parameter limits the number of incoming connections from the time +# the connection is accepted until the first CER is received. +# Default: 5 unidentified clients in paralel. +#ThreadsPerServer = 5; + +############################################################## +## TLS Configuration + +# TLS is managed by the GNUTLS library in the freeDiameter daemon. +# You may find more information about parameters and special behaviors +# in the relevant documentation. +# http://www.gnu.org/software/gnutls/manual/ + +# Credentials of the local peer +# The X509 certificate and private key file to use for the local peer. +# The files must contain PKCS-1 encoded RSA key, in PEM format. +# (These parameters are passed to gnutls_certificate_set_x509_key_file function) +# Default : NO DEFAULT +#TLS_Cred = "<x509 certif file.PEM>" , "<x509 private key file.PEM>"; +#TLS_Cred = "/etc/ssl/certs/freeDiameter.pem", "/etc/ssl/private/freeDiameter.key"; + +# Certificate authority / trust anchors +# The file containing the list of trusted Certificate Authorities (PEM list) +# (This parameter is passed to gnutls_certificate_set_x509_trust_file function) +# The directive can appear several times to specify several files. +# Default : GNUTLS default behavior +#TLS_CA = "<file.PEM>"; + +# Certificate Revocation List file +# The information about revoked certificates. +# The file contains a list of trusted CRLs in PEM format. They should have been verified before. +# (This parameter is passed to gnutls_certificate_set_x509_crl_file function) +# Note: openssl CRL format might have interoperability issue with GNUTLS format. +# Default : GNUTLS default behavior +#TLS_CRL = "<file.PEM>"; + +# GNU TLS Priority string +# This string allows to configure the behavior of GNUTLS key exchanges +# algorithms. See gnutls_priority_init function documentation for information. +# You should also refer to the Diameter required TLS support here: +# http://tools.ietf.org/html/rfc6733#section-13.1 +# Default : "NORMAL" +# Example: TLS_Prio = "NONE:+VERS-TLS1.1:+AES-128-CBC:+RSA:+SHA1:+COMP-NULL"; +#TLS_Prio = "NORMAL"; + +# Diffie-Hellman parameters size +# Set the number of bits for generated DH parameters +# Valid value should be 768, 1024, 2048, 3072 or 4096. +# (This parameter is passed to gnutls_dh_params_generate2 function, +# it usually should match RSA key size) +# Default : 1024 +#TLS_DH_Bits = 1024; + +# Alternatively, you can specify a file to load the PKCS#3 encoded +# DH parameters directly from. This accelerates the daemon start +# but is slightly less secure. If this file is provided, the +# TLS_DH_Bits parameters has no effect. +# Default : no default. +#TLS_DH_File = "<file.PEM>"; + + +############################################################## +## Timers configuration + +# The Tc timer of this peer. +# It is the delay before a new attempt is made to reconnect a disconnected peer. +# The value is expressed in seconds. The recommended value is 30 seconds. +# Default: 30 +#TcTimer = 30; + +# The Tw timer of this peer. +# It is the delay before a watchdog message is sent, as described in RFC 3539. +# The value is expressed in seconds. The default value is 30 seconds. Value must +# be greater or equal to 6 seconds. See details in the RFC. +# Default: 30 +#TwTimer = 30; + +############################################################## +## Applications configuration + +# Disable the relaying of Diameter messages? +# For messages not handled locally, the default behavior is to forward the +# message to another peer if any is available, according to the routing +# algorithms. In addition the "0xffffff" application is advertised in CER/CEA +# exchanges. +# Default: Relaying is enabled. +#NoRelay; +NoRelay; + +# Number of server threads that can handle incoming messages at the same time. +# Default: 4 +#AppServThreads = 4; + +# Other applications are configured by loaded extensions. + +############################################################## +## Extensions configuration + +# The freeDiameter framework merely provides support for +# Diameter Base Protocol. The specific application behaviors, +# as well as advanced functions, are provided +# by loadable extensions (plug-ins). +# These extensions may in addition receive the name of a +# configuration file, the format of which is extension-specific. +# +# Format: +#LoadExtension = "/path/to/extension" [ : "/optional/configuration/file" ] ; +# +# Examples: +#LoadExtension = "extensions/sample.fdx"; +#LoadExtension = "extensions/sample.fdx":"conf/sample.conf"; + +# Extensions are named as follow: +# dict_* for extensions that add content to the dictionary definitions. +# dbg_* for extensions useful only to retrieve more information on the framework execution. +# acl_* : Access control list, to control which peers are allowed to connect. +# rt_* : routing extensions that impact how messages are forwarded to other peers. +# app_* : applications, these extensions usually register callbacks to handle specific messages. +# test_* : dummy extensions that are useful only in testing environments. + + +# The dbg_msg_dump.fdx extension allows you to tweak the way freeDiameter displays some +# information about some events. This extension does not actually use a configuration file +# but receives directly a parameter in the string passed to the extension. Here are some examples: +## LoadExtension = "dbg_msg_dumps.fdx" : "0x1111"; # Removes all default hooks, very quiet even in case of errors. +## LoadExtension = "dbg_msg_dumps.fdx" : "0x2222"; # Display all events with few details. +## LoadExtension = "dbg_msg_dumps.fdx" : "0x0080"; # Dump complete information about sent and received messages. +# The four digits respectively control: connections, routing decisions, sent/received messages, errors. +# The values for each digit are: +# 0 - default - keep the default behavior +# 1 - quiet - remove any specific log +# 2 - compact - display only a summary of the information +# 4 - full - display the complete information on a single long line +# 8 - tree - display the complete information in an easier to read format spanning several lines. + +LoadExtension = "dbg_msg_dumps.fdx" : "0x8888"; +LoadExtension = "dict_rfc5777.fdx"; +LoadExtension = "dict_mip6i.fdx"; +LoadExtension = "dict_nasreq.fdx"; +LoadExtension = "dict_nas_mipv6.fdx"; +LoadExtension = "dict_dcca.fdx"; +LoadExtension = "dict_dcca_3gpp.fdx"; + + +############################################################## +## Peers configuration + +# The local server listens for incoming connections. By default, +# all unknown connecting peers are rejected. Extensions can override this behavior (e.g., acl_wl). +# +# In addition to incoming connections, the local peer can +# be configured to establish and maintain connections to some +# Diameter nodes and allow connections from these nodes. +# This is achieved with the ConnectPeer directive described below. +# +# Note that the configured Diameter Identity MUST match +# the information received inside CEA, or the connection will be aborted. +# +# Format: +#ConnectPeer = "diameterid" [ { parameter1; parameter2; ...} ] ; +# Parameters that can be specified in the peer's parameter list: +# No_TCP; No_SCTP; No_IP; No_IPv6; Prefer_TCP; TLS_old_method; +# No_TLS; # assume transparent security instead of TLS. DTLS is not supported yet (will change in future versions). +# Port = 5868; # The port to connect to +# TcTimer = 30; +# TwTimer = 30; +# ConnectTo = "202.249.37.5"; +# ConnectTo = "2001:200:903:2::202:1"; +# TLS_Prio = "NORMAL"; +# Realm = "realm.net"; # Reject the peer if it does not advertise this realm. +# Examples: +#ConnectPeer = "aaa.wide.ad.jp"; +#ConnectPeer = "old.diameter.serv" { TcTimer = 60; TLS_old_method; No_SCTP; Port=3868; } ; +ConnectPeer = "hss.localdomain" { ConnectTo = "127.0.0.202"; Port = 3868; No_TLS; TcTimer = 2; }; + + +############################################################## diff --git a/mme/open5gs-mme.yaml b/mme/open5gs-mme.yaml new file mode 100644 index 0000000..61c038d --- /dev/null +++ b/mme/open5gs-mme.yaml @@ -0,0 +1,65 @@ +# See https://github.com/open5gs/open5gs/blob/main/configs/open5gs/mme.yaml.in + +logger: + level: debug + +global: + max: + ue: 1024 + +mme: + freeDiameter: freediameter.conf + s1ap: + server: + - address: 127.0.0.201 + gtpc: + server: + - address: 127.0.0.201 + client: + sgwc: + - address: 127.0.0.202 + smf: + - address: 127.0.0.201 + - address: ::1 + sgsn: + - address: + - 127.0.0.202 + port: 2124 + routes: + - rai: + lai: + plmn_id: + mcc: 262 + mnc: 42 + lac: 39594 + rac: 187 + ci: 1223 + metrics: + server: + - address: 127.0.0.201 + port: 9090 + gummei: + - plmn_id: + mcc: 001 + mnc: 01 + mme_gid: 2 + mme_code: 1 + tai: + - plmn_id: + mcc: 001 + mnc: 01 + tac: 12345 + security: + integrity_order : [ EIA2, EIA1, EIA0 ] + ciphering_order : [ EEA0, EEA1, EEA2 ] + network_name: + full: Open5GS + mme_name: open5gs-mme0 + +parameter: + +max: + +usrsctp: + +time: diff --git a/mme/testenv.cfg b/mme/testenv.cfg new file mode 100644 index 0000000..3470fe5 --- /dev/null +++ b/mme/testenv.cfg @@ -0,0 +1,9 @@ +[testsuite] +program=MME_Tests +config=MME_Tests.cfg + +[mme] +program=open5gs-mmed -c open5gs-mme.yaml +make=open5gs +package=open5gs-mme +copy=open5gs-mme.yaml freediameter.conf -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37709?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I780584cc7722d92baa213049ee0a35e16a0e087c Gerrit-Change-Number: 37709 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith(a)sysmocom.de> Gerrit-MessageType: newchange
1 0
0 0
[L] Change in osmo-ttcn3-hacks[master]: hss: initial testenv.cfg
by osmith 02 Aug '24

02 Aug '24
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37708?usp=email ) Change subject: hss: initial testenv.cfg ...................................................................... hss: initial testenv.cfg Change-Id: I8a095f51f1a9516967d5188587537a2f90927f6c --- M hss/HSS_Tests.cfg A hss/create_test_subscribers.sh A hss/freediameter.conf A hss/mongod.conf A hss/open5gs-hss.yaml A hss/testenv.cfg 6 files changed, 388 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/08/37708/1 diff --git a/hss/HSS_Tests.cfg b/hss/HSS_Tests.cfg index 24fe9c4..58c489b 100644 --- a/hss/HSS_Tests.cfg +++ b/hss/HSS_Tests.cfg @@ -11,6 +11,14 @@ [TESTPORT_PARAMETERS] [MODULE_PARAMETERS] +mp_hss_hostname := "127.0.0.201"; +mp_hss_port := 3868; +mp_diam_local_hostname := "127.0.0.202"; +mp_diam_local_port := 3868; +mp_diam_orig_realm := "localdomain"; +mp_diam_orig_host := "mme.localdomain"; +mp_diam_dest_realm := "localdomain"; +mp_diam_dest_host := "hss.localdomain"; [MAIN_CONTROLLER] diff --git a/hss/create_test_subscribers.sh b/hss/create_test_subscribers.sh new file mode 100755 index 0000000..f5b6c5b --- /dev/null +++ b/hss/create_test_subscribers.sh @@ -0,0 +1,27 @@ +#!/bin/sh -ex +DB_URI="mongodb://127.0.0.103/open5gs" +DBCTL="$TESTENV_CACHE_DIR/open5gs-dbctl" +DBCTL_CMD="$DBCTL --db_uri=$DB_URI" + +if ! [ -e "$DBCTL" ]; then + wget "https://raw.githubusercontent.com/open5gs/open5gs/v2.7.1/misc/db/open5gs-db…" \ + -O "$DBCTL" +fi + +if ! [ -x "$DBCTL" ]; then + chmod +x "$DBCTL" +fi + +# mongod needs some time to bootstrap... +while ! mongosh --quiet $DB_URI</dev/null; do + sleep 1 +done + +# Create a test subscriber with IMSI=001010000000000 +$DBCTL_CMD add 001010000000000 3c6e0b8a9c15224a8228b9a98ca1531d 762a2206fe0b4151ace403c86a11e479 + +# Mark test subscriber with IMSI=001010000000001 as: +# Subscriber-Status=OPERATOR_DETERMINED_BARRING (1) +# Operator-Determined-Barring="Barring of all outgoing inter-zonal calls except those directed to the home PLMN country" (7) +$DBCTL_CMD add 001010000000001 3c6e0b8a9c15224a8228b9a98ca1531d 762a2206fe0b4151ace403c86a11e479 +$DBCTL_CMD subscriber_status 001010000000001 1 7 diff --git a/hss/freediameter.conf b/hss/freediameter.conf new file mode 100644 index 0000000..2670cae --- /dev/null +++ b/hss/freediameter.conf @@ -0,0 +1,265 @@ +# This is a sample configuration file for freeDiameter daemon. + +# Most of the options can be omitted, as they default to reasonable values. +# Only TLS-related options must be configured properly in usual setups. + +# It is possible to use "include" keyword to import additional files +# e.g.: include "/etc/freeDiameter.d/*.conf" +# This is exactly equivalent as copy & paste the content of the included file(s) +# where the "include" keyword is found. + + +############################################################## +## Peer identity and realm + +# The Diameter Identity of this daemon. +# This must be a valid FQDN that resolves to the local host. +# Default: hostname's FQDN +#Identity = "aaa.koganei.freediameter.net"; +Identity = "hss.localdomain"; + +# The Diameter Realm of this daemon. +# Default: the domain part of Identity (after the first dot). +#Realm = "koganei.freediameter.net"; +Realm = "localdomain"; + +############################################################## +## Transport protocol configuration + +# The port this peer is listening on for incoming connections (TCP and SCTP). +# Default: 3868. Use 0 to disable. +Port = 3868; + +# The port this peer is listening on for incoming TLS-protected connections (TCP and SCTP). +# See TLS_old_method for more information about TLS flavours. +# Note: we use TLS/SCTP instead of DTLS/SCTP at the moment. This will change in future version of freeDiameter. +# Default: 5868. Use 0 to disable. +SecPort = 0; + +# Use RFC3588 method for TLS protection, where TLS is negociated after CER/CEA exchange is completed +# on the unsecure connection. The alternative is RFC6733 mechanism, where TLS protects also the +# CER/CEA exchange on a dedicated secure port. +# This parameter only affects outgoing connections. +# The setting can be also defined per-peer (see Peers configuration section). +# Default: use RFC6733 method with separate port for TLS. +#TLS_old_method; + +# Disable use of TCP protocol (only listen and connect over SCTP) +# Default : TCP enabled +#No_TCP; + +# Disable use of SCTP protocol (only listen and connect over TCP) +# Default : SCTP enabled +#No_SCTP; +# This option is ignored if freeDiameter is compiled with DISABLE_SCTP option. + +# Prefer TCP instead of SCTP for establishing new connections. +# This setting may be overwritten per peer in peer configuration blocs. +# Default : SCTP is attempted first. +#Prefer_TCP; + +# Default number of streams per SCTP associations. +# This setting may be overwritten per peer basis. +# Default : 30 streams +#SCTP_streams = 30; + +############################################################## +## Endpoint configuration + +# Disable use of IP addresses (only IPv6) +# Default : IP enabled +#No_IP; + +# Disable use of IPv6 addresses (only IP) +# Default : IPv6 enabled +#No_IPv6; + +# Specify local addresses the server must bind to +# Default : listen on all addresses available. +#ListenOn = "202.249.37.5"; +#ListenOn = "2001:200:903:2::202:1"; +#ListenOn = "fe80::21c:5ff:fe98:7d62%eth0"; +ListenOn = "127.0.0.201"; + + +############################################################## +## Server configuration + +# How many Diameter peers are allowed to be connecting at the same time ? +# This parameter limits the number of incoming connections from the time +# the connection is accepted until the first CER is received. +# Default: 5 unidentified clients in paralel. +#ThreadsPerServer = 5; + +############################################################## +## TLS Configuration + +# TLS is managed by the GNUTLS library in the freeDiameter daemon. +# You may find more information about parameters and special behaviors +# in the relevant documentation. +# http://www.gnu.org/software/gnutls/manual/ + +# Credentials of the local peer +# The X509 certificate and private key file to use for the local peer. +# The files must contain PKCS-1 encoded RSA key, in PEM format. +# (These parameters are passed to gnutls_certificate_set_x509_key_file function) +# Default : NO DEFAULT +#TLS_Cred = "<x509 certif file.PEM>" , "<x509 private key file.PEM>"; +#TLS_Cred = "/etc/ssl/certs/freeDiameter.pem", "/etc/ssl/private/freeDiameter.key"; + +# Certificate authority / trust anchors +# The file containing the list of trusted Certificate Authorities (PEM list) +# (This parameter is passed to gnutls_certificate_set_x509_trust_file function) +# The directive can appear several times to specify several files. +# Default : GNUTLS default behavior +#TLS_CA = "<file.PEM>"; + +# Certificate Revocation List file +# The information about revoked certificates. +# The file contains a list of trusted CRLs in PEM format. They should have been verified before. +# (This parameter is passed to gnutls_certificate_set_x509_crl_file function) +# Note: openssl CRL format might have interoperability issue with GNUTLS format. +# Default : GNUTLS default behavior +#TLS_CRL = "<file.PEM>"; + +# GNU TLS Priority string +# This string allows to configure the behavior of GNUTLS key exchanges +# algorithms. See gnutls_priority_init function documentation for information. +# You should also refer to the Diameter required TLS support here: +# http://tools.ietf.org/html/rfc6733#section-13.1 +# Default : "NORMAL" +# Example: TLS_Prio = "NONE:+VERS-TLS1.1:+AES-128-CBC:+RSA:+SHA1:+COMP-NULL"; +#TLS_Prio = "NORMAL"; + +# Diffie-Hellman parameters size +# Set the number of bits for generated DH parameters +# Valid value should be 768, 1024, 2048, 3072 or 4096. +# (This parameter is passed to gnutls_dh_params_generate2 function, +# it usually should match RSA key size) +# Default : 1024 +#TLS_DH_Bits = 1024; + +# Alternatively, you can specify a file to load the PKCS#3 encoded +# DH parameters directly from. This accelerates the daemon start +# but is slightly less secure. If this file is provided, the +# TLS_DH_Bits parameters has no effect. +# Default : no default. +#TLS_DH_File = "<file.PEM>"; + + +############################################################## +## Timers configuration + +# The Tc timer of this peer. +# It is the delay before a new attempt is made to reconnect a disconnected peer. +# The value is expressed in seconds. The recommended value is 30 seconds. +# Default: 30 +#TcTimer = 30; + +# The Tw timer of this peer. +# It is the delay before a watchdog message is sent, as described in RFC 3539. +# The value is expressed in seconds. The default value is 30 seconds. Value must +# be greater or equal to 6 seconds. See details in the RFC. +# Default: 30 +#TwTimer = 30; + +############################################################## +## Applications configuration + +# Disable the relaying of Diameter messages? +# For messages not handled locally, the default behavior is to forward the +# message to another peer if any is available, according to the routing +# algorithms. In addition the "0xffffff" application is advertised in CER/CEA +# exchanges. +# Default: Relaying is enabled. +#NoRelay; +NoRelay; + +# Number of server threads that can handle incoming messages at the same time. +# Default: 4 +#AppServThreads = 4; + +# Other applications are configured by loaded extensions. + +############################################################## +## Extensions configuration + +# The freeDiameter framework merely provides support for +# Diameter Base Protocol. The specific application behaviors, +# as well as advanced functions, are provided +# by loadable extensions (plug-ins). +# These extensions may in addition receive the name of a +# configuration file, the format of which is extension-specific. +# +# Format: +#LoadExtension = "/path/to/extension" [ : "/optional/configuration/file" ] ; +# +# Examples: +#LoadExtension = "extensions/sample.fdx"; +#LoadExtension = "extensions/sample.fdx":"conf/sample.conf"; + +# Extensions are named as follow: +# dict_* for extensions that add content to the dictionary definitions. +# dbg_* for extensions useful only to retrieve more information on the framework execution. +# acl_* : Access control list, to control which peers are allowed to connect. +# rt_* : routing extensions that impact how messages are forwarded to other peers. +# app_* : applications, these extensions usually register callbacks to handle specific messages. +# test_* : dummy extensions that are useful only in testing environments. + + +# The dbg_msg_dump.fdx extension allows you to tweak the way freeDiameter displays some +# information about some events. This extension does not actually use a configuration file +# but receives directly a parameter in the string passed to the extension. Here are some examples: +## LoadExtension = "dbg_msg_dumps.fdx" : "0x1111"; # Removes all default hooks, very quiet even in case of errors. +## LoadExtension = "dbg_msg_dumps.fdx" : "0x2222"; # Display all events with few details. +## LoadExtension = "dbg_msg_dumps.fdx" : "0x0080"; # Dump complete information about sent and received messages. +# The four digits respectively control: connections, routing decisions, sent/received messages, errors. +# The values for each digit are: +# 0 - default - keep the default behavior +# 1 - quiet - remove any specific log +# 2 - compact - display only a summary of the information +# 4 - full - display the complete information on a single long line +# 8 - tree - display the complete information in an easier to read format spanning several lines. + +LoadExtension = "dbg_msg_dumps.fdx" : "0x8888"; +LoadExtension = "dict_rfc5777.fdx"; +LoadExtension = "dict_mip6i.fdx"; +LoadExtension = "dict_nasreq.fdx"; +LoadExtension = "dict_nas_mipv6.fdx"; +LoadExtension = "dict_dcca.fdx"; +LoadExtension = "dict_dcca_3gpp.fdx"; + + +############################################################## +## Peers configuration + +# The local server listens for incoming connections. By default, +# all unknown connecting peers are rejected. Extensions can override this behavior (e.g., acl_wl). +# +# In addition to incoming connections, the local peer can +# be configured to establish and maintain connections to some +# Diameter nodes and allow connections from these nodes. +# This is achieved with the ConnectPeer directive described below. +# +# Note that the configured Diameter Identity MUST match +# the information received inside CEA, or the connection will be aborted. +# +# Format: +#ConnectPeer = "diameterid" [ { parameter1; parameter2; ...} ] ; +# Parameters that can be specified in the peer's parameter list: +# No_TCP; No_SCTP; No_IP; No_IPv6; Prefer_TCP; TLS_old_method; +# No_TLS; # assume transparent security instead of TLS. DTLS is not supported yet (will change in future versions). +# Port = 5868; # The port to connect to +# TcTimer = 30; +# TwTimer = 30; +# ConnectTo = "202.249.37.5"; +# ConnectTo = "2001:200:903:2::202:1"; +# TLS_Prio = "NORMAL"; +# Realm = "realm.net"; # Reject the peer if it does not advertise this realm. +# Examples: +#ConnectPeer = "aaa.wide.ad.jp"; +#ConnectPeer = "old.diameter.serv" { TcTimer = 60; TLS_old_method; No_SCTP; Port=3868; } ; +ConnectPeer = "mme.localdomain" { ConnectTo = "127.0.0.202"; Port = 3868; No_TLS; TcTimer = 2; }; + + +############################################################## diff --git a/hss/mongod.conf b/hss/mongod.conf new file mode 100644 index 0000000..ff648f4 --- /dev/null +++ b/hss/mongod.conf @@ -0,0 +1,45 @@ +# mongod.conf + +# for documentation of all options, see: +# http://docs.mongodb.org/manual/reference/configuration-options/ + +# Where and how to store data. +storage: + dbPath: db +# journal: +# enabled: true +# engine: +# mmapv1: +# wiredTiger: + +# where to write logging data. +# systemLog: +# destination: file +# logAppend: true +# path: /data/mongod.log + +# network interfaces +net: + port: 27017 + bindIp: 127.0.0.103 + + +# how the process runs +processManagement: + timeZoneInfo: /usr/share/zoneinfo + +#security: + +#operationProfiling: + +#replication: + +#sharding: + +## Enterprise-Only Options: + +#auditLog: + +#snmp: + + diff --git a/hss/open5gs-hss.yaml b/hss/open5gs-hss.yaml new file mode 100644 index 0000000..6b90bdc --- /dev/null +++ b/hss/open5gs-hss.yaml @@ -0,0 +1,17 @@ +# See https://github.com/open5gs/open5gs/blob/main/configs/open5gs/hss.yaml.in + +db_uri: mongodb://127.0.0.103/open5gs + +logger: + level: trace + +global: + max: + ue: 1024 + +hss: + freeDiameter: freediameter.conf + +parameter: + +max: diff --git a/hss/testenv.cfg b/hss/testenv.cfg new file mode 100644 index 0000000..79ccede --- /dev/null +++ b/hss/testenv.cfg @@ -0,0 +1,17 @@ +[testsuite] +program=HSS_Tests +config=HSS_Tests.cfg + +[db] +prepare=mkdir db +program=mongod --config mongod.conf +setup=create_test_subscribers.sh +copy=mongod.conf +make=no +package=no + +[hss] +program=open5gs-hssd -c open5gs-hss.yaml +make=open5gs +copy=open5gs-hss.yaml freediameter.conf +package=open5gs-hss -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37708?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I8a095f51f1a9516967d5188587537a2f90927f6c Gerrit-Change-Number: 37708 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith(a)sysmocom.de> Gerrit-MessageType: newchange
1 0
0 0
[S] Change in osmo-ttcn3-hacks[master]: mgw: initial testenv.cfg
by osmith 02 Aug '24

02 Aug '24
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37696?usp=email ) Change subject: mgw: initial testenv.cfg ...................................................................... mgw: initial testenv.cfg Change-Id: Ifad2a6e25816c2dd7d27206751597b486acdd096 --- A mgw/testenv.cfg 1 file changed, 18 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/96/37696/1 diff --git a/mgw/testenv.cfg b/mgw/testenv.cfg new file mode 100644 index 0000000..c69c422 --- /dev/null +++ b/mgw/testenv.cfg @@ -0,0 +1,9 @@ +[testsuite] +program=MGCP_Test +config=MGCP_Test.cfg + +[mgw] +program=osmo-mgw +make=osmo-mgw +package=osmo-mgw +copy=osmo-mgw.cfg -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37696?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: Ifad2a6e25816c2dd7d27206751597b486acdd096 Gerrit-Change-Number: 37696 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith(a)sysmocom.de> Gerrit-MessageType: newchange
1 0
0 0
[S] Change in osmo-ttcn3-hacks[master]: hlr: initial testenv.cfg
by osmith 02 Aug '24

02 Aug '24
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37695?usp=email ) Change subject: hlr: initial testenv.cfg ...................................................................... hlr: initial testenv.cfg Change-Id: If937f021a33bf81b4e7296c2efdbd13a73cdaca9 --- A hlr/testenv.cfg 1 file changed, 18 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/95/37695/1 diff --git a/hlr/testenv.cfg b/hlr/testenv.cfg new file mode 100644 index 0000000..0fe2f86 --- /dev/null +++ b/hlr/testenv.cfg @@ -0,0 +1,9 @@ +[testsuite] +program=HLR_Tests +config=HLR_Tests.cfg + +[hlr] +program=osmo-hlr +make=osmo-hlr +package=osmo-hlr +copy=osmo-hlr.cfg -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37695?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: If937f021a33bf81b4e7296c2efdbd13a73cdaca9 Gerrit-Change-Number: 37695 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith(a)sysmocom.de> Gerrit-MessageType: newchange
1 0
0 0
  • ← Newer
  • 1
  • ...
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • ...
  • 148
  • Older →

HyperKitty Powered by HyperKitty version 1.3.12.