osmith has submitted this change. ( https://gerrit.osmocom.org/c/docker-playground/+/37714?usp=email )
Change subject: Remove ttcn3 testsuites ported to testenv, part 1 ......................................................................
Remove ttcn3 testsuites ported to testenv, part 1
Related: OS#6494 Depends: osmo-ci I6c7f88bb268a9f339b3af1d31d665e4376b34e48 Depends: osmo-ci Iac626d0c7c87c49ee6ba540ae1894abdb2336642 Change-Id: I7182c7e8eb00a9323fe1b6d27f630d253b4d34f6 --- M README.md D ttcn3-cbc-test/CBC_Tests.cfg D ttcn3-cbc-test/Dockerfile D ttcn3-cbc-test/Makefile D ttcn3-cbc-test/jenkins.sh D ttcn3-cbc-test/osmo-cbc.cfg D ttcn3-dia2gsup-test/DIA2GSUP_Tests.cfg D ttcn3-dia2gsup-test/Dockerfile D ttcn3-dia2gsup-test/Makefile D ttcn3-dia2gsup-test/jenkins.sh D ttcn3-dia2gsup-test/osmo_dia2gsup.config D ttcn3-hlr-test/Dockerfile D ttcn3-hlr-test/HLR_Tests.cfg D ttcn3-hlr-test/Makefile D ttcn3-hlr-test/jenkins.sh D ttcn3-hlr-test/osmo-hlr.cfg D ttcn3-hnodeb-test/Dockerfile D ttcn3-hnodeb-test/HNB_Tests.cfg D ttcn3-hnodeb-test/Makefile D ttcn3-hnodeb-test/jenkins.sh D ttcn3-hnodeb-test/osmo-hnodeb.cfg D ttcn3-hss-test-ogs/Dockerfile D ttcn3-hss-test-ogs/Makefile D ttcn3-hss-test-ogs/jenkins.sh D ttcn3-hss-test-ogs/ogs/HSS_Tests.cfg D ttcn3-hss-test-ogs/ogs/freediameter.conf D ttcn3-hss-test-ogs/ogs/mongod.conf D ttcn3-hss-test-ogs/ogs/open5gs-hss-latest.yaml D ttcn3-hss-test-ogs/ogs/open5gs-hss-master.yaml D ttcn3-mgw-test/Dockerfile D ttcn3-mgw-test/MGCP_Test.cfg D ttcn3-mgw-test/Makefile D ttcn3-mgw-test/jenkins.sh D ttcn3-mgw-test/osmo-mgw.cfg D ttcn3-mme-test-ogs/Dockerfile D ttcn3-mme-test-ogs/Makefile D ttcn3-mme-test-ogs/jenkins.sh D ttcn3-mme-test-ogs/ogs/MME_Tests.cfg D ttcn3-mme-test-ogs/ogs/freediameter.conf D ttcn3-mme-test-ogs/ogs/mme.sh D ttcn3-mme-test-ogs/ogs/open5gs-mme-latest.yaml D ttcn3-mme-test-ogs/ogs/open5gs-mme-master.yaml D ttcn3-s1gw-test/Dockerfile D ttcn3-s1gw-test/Makefile D ttcn3-s1gw-test/S1GW_Tests.cfg D ttcn3-s1gw-test/jenkins.sh D ttcn3-s1gw-test/osmo-s1gw.config D ttcn3-s1gw-test/s1gw.sh D ttcn3-sgsn-test-sns/jenkins.sh D ttcn3-sgsn-test-sns/osmo-stp.cfg D ttcn3-sgsn-test-sns/sns D ttcn3-sgsn-test/Dockerfile D ttcn3-sgsn-test/Makefile D ttcn3-sgsn-test/SGSN_Tests.cfg D ttcn3-sgsn-test/jenkins-sns.sh D ttcn3-sgsn-test/jenkins.sh D ttcn3-sgsn-test/osmo-sgsn.cfg D ttcn3-sgsn-test/osmo-stp.cfg D ttcn3-sgsn-test/sns/SGSN_Tests.cfg D ttcn3-sgsn-test/sns/osmo-sgsn.cfg D ttcn3-sgsn-test/ttcn3.sh D ttcn3-sip-test/Dockerfile D ttcn3-sip-test/Makefile D ttcn3-sip-test/SIP_Tests.cfg D ttcn3-sip-test/jenkins.sh D ttcn3-sip-test/osmo-sip-connector.cfg D ttcn3-smlc-test/Dockerfile D ttcn3-smlc-test/Makefile D ttcn3-smlc-test/SMLC_Tests.cfg D ttcn3-smlc-test/jenkins.sh D ttcn3-smlc-test/osmo-smlc.cfg D ttcn3-smlc-test/osmo-stp.cfg D ttcn3-upf-test/Dockerfile D ttcn3-upf-test/Makefile D ttcn3-upf-test/UPF_Tests.cfg D ttcn3-upf-test/jenkins.sh D ttcn3-upf-test/osmo-upf.cfg 77 files changed, 9 insertions(+), 2,616 deletions(-)
Approvals: Jenkins Builder: Verified laforge: Looks good to me, but someone else must approve pespin: Looks good to me, approved
diff --git a/README.md b/README.md index 6c2c989..3139f07 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,15 @@ =========================
This repository contains some humble attempts at creating some Docker -containers + related stacks around Osmocom. So far, the main focus is -test automation. +containers + related stacks around Osmocom. + +Historically this repository had all containers for running the TTCN3 +testsuites. We are porting them over to the new testenv configurations +inside `osmo-ttcn3-hacks.git` and removing them afterwards from +`docker-playground.git`. See +[_testenv/README.md](https://gitea.osmocom.org/ttcn3/osmo-ttcn3-hacks/src/branch/master/_testenv/...) +for more information, and [OS#6494](https://osmocom.org/issues/6494) +for reasoning.
## Running a testsuite All testsuite folders start with `ttcn3` or `nplab`. Run the following diff --git a/ttcn3-cbc-test/CBC_Tests.cfg b/ttcn3-cbc-test/CBC_Tests.cfg deleted file mode 100644 index 6e7ab21..0000000 --- a/ttcn3-cbc-test/CBC_Tests.cfg +++ /dev/null @@ -1,18 +0,0 @@ -[ORDERED_INCLUDE] -"/osmo-ttcn3-hacks/Common.cfg" -"/osmo-ttcn3-hacks/cbc/CBC_Tests.default" - -# Local configuration below - -[LOGGING] - -[TESTPORT_PARAMETERS] - -[MODULE_PARAMETERS] -CBC_Tests.mp_local_host := "172.18.27.100"; -CBC_Tests.mp_cbc_host := "172.18.27.20"; - -[MAIN_CONTROLLER] - -[EXECUTE] -CBC_Tests.control diff --git a/ttcn3-cbc-test/Dockerfile b/ttcn3-cbc-test/Dockerfile deleted file mode 100644 index 784eb25..0000000 --- a/ttcn3-cbc-test/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -ARG REGISTRY -ARG USER -FROM $REGISTRY/$USER/debian-bookworm-titan -ARG OSMO_TTCN3_BRANCH="master" - -ADD https://gerrit.osmocom.org/plugins/gitiles/osmo-ttcn3-hacks/+/$OSMO_TTCN3_BR... /tmp/commit -RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" cbc - -VOLUME /data - -COPY CBC_Tests.cfg /data/CBC_Tests.cfg - -CMD ttcn3-docker-run cbc CBC_Tests diff --git a/ttcn3-cbc-test/Makefile b/ttcn3-cbc-test/Makefile deleted file mode 100644 index 45d5a8d..0000000 --- a/ttcn3-cbc-test/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -RUN_ARGS?=-it --sysctl net.ipv6.conf.all.disable_ipv6=0 --network sigtran --ip 172.18.23.202 - -include ../make/Makefile diff --git a/ttcn3-cbc-test/jenkins.sh b/ttcn3-cbc-test/jenkins.sh deleted file mode 100755 index 584d0b7..0000000 --- a/ttcn3-cbc-test/jenkins.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh - -. ../jenkins-common.sh -IMAGE_SUFFIX="${IMAGE_SUFFIX:-master}" -docker_images_require \ - "osmo-cbc-$IMAGE_SUFFIX" \ - "ttcn3-cbc-test" - -set_clean_up_trap -set -e - -mkdir $VOL_BASE_DIR/cbc-tester -cp CBC_Tests.cfg $VOL_BASE_DIR/cbc-tester/ -write_mp_osmo_repo "$VOL_BASE_DIR/cbc-tester/CBC_Tests.cfg" - -mkdir $VOL_BASE_DIR/cbc -cp osmo-cbc.cfg $VOL_BASE_DIR/cbc/ - -network_create -network_replace_subnet_in_configs - -echo Starting container with CBC -docker run --rm \ - $(docker_network_params $SUBNET 20) \ - --ulimit core=-1 \ - -v $VOL_BASE_DIR/cbc:/data \ - --name ${BUILD_TAG}-cbc -d \ - $DOCKER_ARGS \ - $REPO_USER/osmo-cbc-$IMAGE_SUFFIX - -echo Starting container with CBC testsuite -docker run --rm \ - $(docker_network_params $SUBNET 100) \ - --ulimit core=-1 \ - -e "TTCN3_PCAP_PATH=/data" \ - -e "OSMO_SUT_HOST=$SUB4_PREFIX.$SUBNET.20" \ - -e "OSMO_SUT_PORT=4264" \ - -v $VOL_BASE_DIR/cbc-tester:/data \ - --name ${BUILD_TAG}-ttcn3-cbc-test \ - $DOCKER_ARGS \ - $REPO_USER/ttcn3-cbc-test diff --git a/ttcn3-cbc-test/osmo-cbc.cfg b/ttcn3-cbc-test/osmo-cbc.cfg deleted file mode 100644 index fdb2011..0000000 --- a/ttcn3-cbc-test/osmo-cbc.cfg +++ /dev/null @@ -1,50 +0,0 @@ -! -log gsmtap 172.18.27.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 172.18.27.20 -! -cbc - unknown-peers reject - ecbe - local-ip 172.18.27.20 - local-port 12345 - cbsp - local-ip 172.18.27.20 - local-port 48049 - sbcap - local-ip 172.18.27.20 - local-port 29168 - peer cbsp ttcn3-bsc-client - mode server - remote-port 15000 - remote-ip 172.18.27.100 - peer cbsp ttcn3-bsc-server - mode client - remote-port 15001 - remote-ip 172.18.27.100 - peer sbcap ttcn3-mme-client - mode server - remote-port 16000 - remote-ip 172.18.27.100 - peer sbcap ttcn3-mme-server - mode client - remote-port 16001 - remote-ip 172.18.27.100 diff --git a/ttcn3-dia2gsup-test/DIA2GSUP_Tests.cfg b/ttcn3-dia2gsup-test/DIA2GSUP_Tests.cfg deleted file mode 100644 index ce68c1f..0000000 --- a/ttcn3-dia2gsup-test/DIA2GSUP_Tests.cfg +++ /dev/null @@ -1,17 +0,0 @@ -[ORDERED_INCLUDE] -"/osmo-ttcn3-hacks/Common.cfg" -"/osmo-ttcn3-hacks/dia2gsup/DIA2GSUP_Tests.default" - -[LOGGING] - -[TESTPORT_PARAMETERS] - -[MODULE_PARAMETERS] -DIA2GSUP_Tests.mp_hlr_ip := "172.18.10.103" -DIA2GSUP_Tests.mp_s6_local_ip := "172.18.10.103" -DIA2GSUP_Tests.mp_hss_ip := "172.18.10.20" - -[MAIN_CONTROLLER] - -[EXECUTE] -DIA2GSUP_Tests.control diff --git a/ttcn3-dia2gsup-test/Dockerfile b/ttcn3-dia2gsup-test/Dockerfile deleted file mode 100644 index ff93371..0000000 --- a/ttcn3-dia2gsup-test/Dockerfile +++ /dev/null @@ -1,14 +0,0 @@ -ARG REGISTRY -ARG USER -FROM $REGISTRY/$USER/debian-bookworm-titan - -ARG OSMO_TTCN3_BRANCH="master" - -ADD https://gerrit.osmocom.org/plugins/gitiles/osmo-ttcn3-hacks/+/$OSMO_TTCN3_BR... /tmp/commit -RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" dia2gsup - -VOLUME /data - -COPY DIA2GSUP_Tests.cfg /data/DIA2GSUP_Tests.cfg - -CMD ttcn3-docker-run dia2gsup DIA2GSUP_Tests diff --git a/ttcn3-dia2gsup-test/Makefile b/ttcn3-dia2gsup-test/Makefile deleted file mode 100644 index 8d0e10b..0000000 --- a/ttcn3-dia2gsup-test/Makefile +++ /dev/null @@ -1 +0,0 @@ -include ../make/Makefile diff --git a/ttcn3-dia2gsup-test/jenkins.sh b/ttcn3-dia2gsup-test/jenkins.sh deleted file mode 100755 index 87eea24..0000000 --- a/ttcn3-dia2gsup-test/jenkins.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -. ../jenkins-common.sh -IMAGE_SUFFIX="${IMAGE_SUFFIX:-master}" -docker_images_require \ - "osmo_dia2gsup-$IMAGE_SUFFIX" \ - "ttcn3-dia2gsup-test" - -set_clean_up_trap -set -e - -mkdir $VOL_BASE_DIR/dia2gsup-tester -cp DIA2GSUP_Tests.cfg $VOL_BASE_DIR/dia2gsup-tester/ -write_mp_osmo_repo "$VOL_BASE_DIR/dia2gsup-tester/DIA2GSUP_Tests.cfg" - -mkdir $VOL_BASE_DIR/dia2gsup -cp osmo_dia2gsup.config $VOL_BASE_DIR/dia2gsup/ - -network_create -network_replace_subnet_in_configs - -echo Starting container with osmo_dia2gsup -docker run --rm \ - $(docker_network_params $SUBNET 20) \ - --ulimit core=-1 \ - -v $VOL_BASE_DIR/dia2gsup:/data \ - --name ${BUILD_TAG}-dia2gsup -d \ - $DOCKER_ARGS \ - $REPO_USER/osmo_dia2gsup-$IMAGE_SUFFIX - -echo Starting container with DIA2GSUP testsuite -docker run --rm \ - $(docker_network_params $SUBNET 103) \ - --ulimit core=-1 \ - -e "TTCN3_PCAP_PATH=/data" \ - -v $VOL_BASE_DIR/dia2gsup-tester:/data \ - --name ${BUILD_TAG}-ttcn3-dia2gsup-test \ - $DOCKER_ARGS \ - $REPO_USER/ttcn3-dia2gsup-test diff --git a/ttcn3-dia2gsup-test/osmo_dia2gsup.config b/ttcn3-dia2gsup-test/osmo_dia2gsup.config deleted file mode 100644 index 4403935..0000000 --- a/ttcn3-dia2gsup-test/osmo_dia2gsup.config +++ /dev/null @@ -1,13 +0,0 @@ -[{osmo_dia2gsup, [ - {hlr_ip, "172.18.10.103"}, - {hlr_port, 4222}, - - {diameter_ip, "172.18.10.20"}, - {diameter_port, 3868}, - {diameter_proto, sctp}, - {diameter_connect_timer, 200}, - - {origin_host, "hss.localdomain"}, - {origin_realm, "localdomain"}, - {vendor_id, 0} -]}]. diff --git a/ttcn3-hlr-test/Dockerfile b/ttcn3-hlr-test/Dockerfile deleted file mode 100644 index df3396d..0000000 --- a/ttcn3-hlr-test/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -ARG REGISTRY -ARG USER -FROM $REGISTRY/$USER/debian-bookworm-titan -ARG OSMO_TTCN3_BRANCH="master" - -ADD https://gerrit.osmocom.org/plugins/gitiles/osmo-ttcn3-hacks/+/$OSMO_TTCN3_BR... /tmp/commit -RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" hlr - -VOLUME /data - -COPY HLR_Tests.cfg /data/HLR_Tests.cfg - -CMD ttcn3-docker-run hlr HLR_Tests diff --git a/ttcn3-hlr-test/HLR_Tests.cfg b/ttcn3-hlr-test/HLR_Tests.cfg deleted file mode 100644 index b8aa886..0000000 --- a/ttcn3-hlr-test/HLR_Tests.cfg +++ /dev/null @@ -1,16 +0,0 @@ -[ORDERED_INCLUDE] -"/osmo-ttcn3-hacks/Common.cfg" -"/osmo-ttcn3-hacks/hlr/HLR_Tests.default" - -[LOGGING] - -[TESTPORT_PARAMETERS] -*.VTY.CTRL_HOSTNAME := "172.18.10.20" - -[MODULE_PARAMETERS] -HLR_Tests.mp_hlr_ip := "172.18.10.20" - -[MAIN_CONTROLLER] - -[EXECUTE] -HLR_Tests.control diff --git a/ttcn3-hlr-test/Makefile b/ttcn3-hlr-test/Makefile deleted file mode 100644 index 0895788..0000000 --- a/ttcn3-hlr-test/Makefile +++ /dev/null @@ -1,2 +0,0 @@ - -include ../make/Makefile diff --git a/ttcn3-hlr-test/jenkins.sh b/ttcn3-hlr-test/jenkins.sh deleted file mode 100755 index c716add..0000000 --- a/ttcn3-hlr-test/jenkins.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/sh - -. ../jenkins-common.sh -IMAGE_SUFFIX="${IMAGE_SUFFIX:-master}" -docker_images_require \ - "osmo-hlr-$IMAGE_SUFFIX" \ - "ttcn3-hlr-test" - -set_clean_up_trap -set -e - -mkdir $VOL_BASE_DIR/hlr-tester -cp HLR_Tests.cfg $VOL_BASE_DIR/hlr-tester/ -write_mp_osmo_repo "$VOL_BASE_DIR/hlr-tester/HLR_Tests.cfg" - -mkdir $VOL_BASE_DIR/hlr -cp osmo-hlr.cfg $VOL_BASE_DIR/hlr/ - -network_create -network_replace_subnet_in_configs - -echo Starting container with HLR -docker run --rm \ - $(docker_network_params $SUBNET 20) \ - --ulimit core=-1 \ - -v $VOL_BASE_DIR/hlr:/data \ - --name ${BUILD_TAG}-hlr -d \ - $DOCKER_ARGS \ - $REPO_USER/osmo-hlr-$IMAGE_SUFFIX \ - /bin/sh -c "osmo-hlr -c /data/osmo-hlr.cfg >/data/osmo-hlr.log 2>&1" - -echo Starting container with HLR testsuite -docker run --rm \ - $(docker_network_params $SUBNET 103) \ - --ulimit core=-1 \ - -e "TTCN3_PCAP_PATH=/data" \ - -e "OSMO_SUT_HOST=$SUB4_PREFIX.$SUBNET.20" \ - -e "OSMO_SUT_PORT=4258" \ - -v $VOL_BASE_DIR/hlr-tester:/data \ - --name ${BUILD_TAG}-ttcn3-hlr-test \ - $DOCKER_ARGS \ - $REPO_USER/ttcn3-hlr-test diff --git a/ttcn3-hlr-test/osmo-hlr.cfg b/ttcn3-hlr-test/osmo-hlr.cfg deleted file mode 100644 index 5cda49e..0000000 --- a/ttcn3-hlr-test/osmo-hlr.cfg +++ /dev/null @@ -1,28 +0,0 @@ -! -! OsmoHLR example configuration -! -log gsmtap 172.18.10.103 - logging level set-all debug - logging filter all 1 -! -log stderr - logging filter all 1 - logging color 1 - logging print level 1 - logging print category 1 - logging print category-hex 0 - logging print file basename last - logging print extended-timestamp 1 - logging level set-all debug -! -line vty - bind 0.0.0.0 -ctrl - bind 0.0.0.0 -hlr - gsup - bind ip 0.0.0.0 - euse foobar - ussd route prefix *#100 internal own-msisdn - ussd route prefix *#101 internal own-imsi - ussd route prefix *100 external foobar diff --git a/ttcn3-hnodeb-test/Dockerfile b/ttcn3-hnodeb-test/Dockerfile deleted file mode 100644 index df6cb94..0000000 --- a/ttcn3-hnodeb-test/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -ARG REGISTRY -ARG USER -FROM $REGISTRY/$USER/debian-bookworm-titan -ARG OSMO_TTCN3_BRANCH="master" - -ADD https://gerrit.osmocom.org/plugins/gitiles/osmo-ttcn3-hacks/+/$OSMO_TTCN3_BR... /tmp/commit -RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" hnodeb - -VOLUME /data - -COPY HNB_Tests.cfg /data/HNB_Tests.cfg - -CMD ttcn3-docker-run hnodeb HNB_Tests diff --git a/ttcn3-hnodeb-test/HNB_Tests.cfg b/ttcn3-hnodeb-test/HNB_Tests.cfg deleted file mode 100644 index 677e12b..0000000 --- a/ttcn3-hnodeb-test/HNB_Tests.cfg +++ /dev/null @@ -1,20 +0,0 @@ -[ORDERED_INCLUDE] -"/osmo-ttcn3-hacks/Common.cfg" -"/osmo-ttcn3-hacks/hnodeb/HNB_Tests.default" - -[LOGGING] -*.JUnitLogger.testsuite_name := "HNB_Tests" - -[TESTPORT_PARAMETERS] -*.HNBVTY.CTRL_HOSTNAME := "172.18.33.20"; -*.STATSVTY.CTRL_HOSTNAME := "172.18.33.20"; - -[MODULE_PARAMETERS] -HNB_Tests.mp_hnodeb_ip := "172.18.33.20"; -HNB_Tests.mp_hnbgw_iuh_ip := "172.18.33.203"; -HNB_Tests.mp_hnbllif_sk_path := "/data/unix/ll_sock"; - -[MAIN_CONTROLLER] - -[EXECUTE] -HNB_Tests.control diff --git a/ttcn3-hnodeb-test/Makefile b/ttcn3-hnodeb-test/Makefile deleted file mode 100644 index 397f597..0000000 --- a/ttcn3-hnodeb-test/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -RUN_ARGS?=-it --sysctl net.ipv6.conf.all.disable_ipv6=0 --network sigtran --ip 172.18.33.202 -v ggsn-test-vol:/data - -include ../make/Makefile diff --git a/ttcn3-hnodeb-test/jenkins.sh b/ttcn3-hnodeb-test/jenkins.sh deleted file mode 100755 index d3ae816..0000000 --- a/ttcn3-hnodeb-test/jenkins.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/sh - -. ../jenkins-common.sh -IMAGE_SUFFIX="${IMAGE_SUFFIX:-master}" -docker_images_require \ - "osmo-hnodeb-$IMAGE_SUFFIX" \ - "ttcn3-hnodeb-test" - -set_clean_up_trap -set -e - -mkdir $VOL_BASE_DIR/hnodeb-tester -mkdir $VOL_BASE_DIR/hnodeb-tester/unix -cp HNB_Tests.cfg $VOL_BASE_DIR/hnodeb-tester/ -write_mp_osmo_repo "$VOL_BASE_DIR/hnodeb-tester/HNB_Tests.cfg" - -mkdir $VOL_BASE_DIR/hnodeb -mkdir $VOL_BASE_DIR/hnodeb/unix -cp osmo-hnodeb.cfg $VOL_BASE_DIR/hnodeb/ - -mkdir $VOL_BASE_DIR/unix - -network_create -network_replace_subnet_in_configs - -echo Starting container with HNodeB -docker run --rm \ - $(docker_network_params $SUBNET 20) \ - --ulimit core=-1 \ - -v $VOL_BASE_DIR/hnodeb:/data \ - -v $VOL_BASE_DIR/unix:/data/unix \ - --name ${BUILD_TAG}-hnodeb -d \ - $DOCKER_ARGS \ - $REPO_USER/osmo-hnodeb-$IMAGE_SUFFIX - -echo Starting container with HNodeB testsuite -docker run --rm \ - $(docker_network_params $SUBNET 203) \ - --ulimit core=-1 \ - -e "TTCN3_PCAP_PATH=/data" \ - -e "OSMO_SUT_HOST=$SUB4_PREFIX.$SUBNET.20" \ - -e "OSMO_SUT_PORT=4273" \ - -v $VOL_BASE_DIR/hnodeb-tester:/data \ - -v $VOL_BASE_DIR/unix:/data/unix \ - --name ${BUILD_TAG}-ttcn3-hnodeb-test \ - $DOCKER_ARGS \ - $REPO_USER/ttcn3-hnodeb-test - -echo Stopping containers -docker_kill_wait ${BUILD_TAG}-hnodeb diff --git a/ttcn3-hnodeb-test/osmo-hnodeb.cfg b/ttcn3-hnodeb-test/osmo-hnodeb.cfg deleted file mode 100644 index 7d24700..0000000 --- a/ttcn3-hnodeb-test/osmo-hnodeb.cfg +++ /dev/null @@ -1,29 +0,0 @@ -! -log gsmtap 172.18.33.203 - logging level set-all debug - logging filter all 1 -! -log stderr - logging filter all 1 - logging color 1 - logging print category 1 - logging timestamp 1 - logging print extended-timestamp 1 - logging level set-all debug -! -line vty - no login - bind 172.18.33.20 -! -hnodeb - cell_identity 1 - location_area_code 2 - routing_area_code 3 - service_area_code 4 - iuh - local-ip 172.18.33.20 - remote-ip 172.18.33.203 - ll-socket - path /data/unix/ll_sock - gtp - local-ip 172.18.33.20 diff --git a/ttcn3-hss-test-ogs/Dockerfile b/ttcn3-hss-test-ogs/Dockerfile deleted file mode 100644 index f8ae830..0000000 --- a/ttcn3-hss-test-ogs/Dockerfile +++ /dev/null @@ -1,21 +0,0 @@ -ARG REGISTRY -ARG USER -FROM $REGISTRY/$USER/debian-bookworm-titan - -RUN apt-get update && \ - apt-get upgrade -y && \ - DEBIAN_FRONTEND='noninteractive' apt-get install -y --no-install-recommends --no-install-suggests \ - libgnutls28-dev \ - && \ - apt-get clean - -ARG OSMO_TTCN3_BRANCH="master" - -ADD https://gerrit.osmocom.org/plugins/gitiles/osmo-ttcn3-hacks/+/$OSMO_TTCN3_BR... /tmp/commit -RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" hss - -VOLUME /data - -COPY ogs/HSS_Tests.cfg /data/HSS_Tests.cfg - -CMD ttcn3-docker-run hss HSS_Tests diff --git a/ttcn3-hss-test-ogs/Makefile b/ttcn3-hss-test-ogs/Makefile deleted file mode 100644 index 8d0e10b..0000000 --- a/ttcn3-hss-test-ogs/Makefile +++ /dev/null @@ -1 +0,0 @@ -include ../make/Makefile diff --git a/ttcn3-hss-test-ogs/jenkins.sh b/ttcn3-hss-test-ogs/jenkins.sh deleted file mode 100755 index d8932aa..0000000 --- a/ttcn3-hss-test-ogs/jenkins.sh +++ /dev/null @@ -1,81 +0,0 @@ -#!/bin/sh - -. ../jenkins-common.sh - -IMAGE_SUFFIX="${IMAGE_SUFFIX:-master}" -docker_images_require \ - "open5gs-$IMAGE_SUFFIX" \ - "ttcn3-hss-test-ogs" - -set_clean_up_trap -set -e - -mkdir -p $VOL_BASE_DIR/mongo/db -cp ogs/mongod.conf $VOL_BASE_DIR/mongo/ - -mkdir $VOL_BASE_DIR/hss-tester -cp ogs/HSS_Tests.cfg $VOL_BASE_DIR/hss-tester/ -write_mp_osmo_repo "$VOL_BASE_DIR/hss-tester/HSS_Tests.cfg" - -mkdir $VOL_BASE_DIR/hss -cp ogs/open5gs-*-$IMAGE_SUFFIX.yaml $VOL_BASE_DIR/hss/ -cp ogs/freediameter.conf $VOL_BASE_DIR/hss/ - -network_create -network_replace_subnet_in_configs - -MONGOD_ADDR="$SUB4_PREFIX.$SUBNET.103" -DBCTL="open5gs-dbctl --db_uri=mongodb://$MONGOD_ADDR/open5gs" - -# start container with mongod in background -docker run --rm --user $(id -u) \ - $(docker_network_params $SUBNET 103) \ - --ulimit core=-1 \ - -v $VOL_BASE_DIR/mongo:/data \ - --name ${BUILD_TAG}-mongo -d \ - $DOCKER_ARGS \ - $REPO_USER/open5gs-$IMAGE_SUFFIX \ - /bin/sh -c "mongod -f /data/mongod.conf >/data/mongod.out 2>&1" - -# mongod needs some time to bootstrap... -while ! nc -z $MONGOD_ADDR 27017; do sleep 1; done - -# create a test subscriber with IMSI=001010000000000 -docker run --rm \ - $(docker_network_params $SUBNET 8) \ - $REPO_USER/open5gs-$IMAGE_SUFFIX \ - $DBCTL 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) -docker run --rm \ - $(docker_network_params $SUBNET 8) \ - $REPO_USER/open5gs-$IMAGE_SUFFIX \ - /bin/sh -c "$DBCTL add 001010000000001 3c6e0b8a9c15224a8228b9a98ca1531d 762a2206fe0b4151ace403c86a11e479 && - $DBCTL subscriber_status 001010000000001 1 7" - -# start container with hss in background -docker run --sysctl net.ipv6.conf.all.disable_ipv6=0 \ - --rm \ - --ulimit core=-1 \ - -v $VOL_BASE_DIR/hss:/data \ - --name ${BUILD_TAG}-ogs-hss -d \ - $DOCKER_ARGS \ - $(docker_network_params $SUBNET 201) \ - $REPO_USER/open5gs-$IMAGE_SUFFIX \ - /bin/sh -c "open5gs-hssd -c /data/open5gs-hss-$IMAGE_SUFFIX.yaml >/data/open5gs-hssd.out 2>&1" - -# start docker container with testsuite in foreground -docker run --rm \ - --sysctl net.ipv6.conf.all.disable_ipv6=0 \ - $(docker_network_params $SUBNET 202) \ - --ulimit core=-1 \ - -v $VOL_BASE_DIR/hss-tester:/data \ - -e "TTCN3_PCAP_PATH=/data" \ - --name ${BUILD_TAG}-hss-test \ - $DOCKER_ARGS \ - $REPO_USER/ttcn3-hss-test-ogs - -# remove mongodb's database -rm -rf $VOL_BASE_DIR/mongo/db/ diff --git a/ttcn3-hss-test-ogs/ogs/HSS_Tests.cfg b/ttcn3-hss-test-ogs/ogs/HSS_Tests.cfg deleted file mode 100644 index 17fa1a5..0000000 --- a/ttcn3-hss-test-ogs/ogs/HSS_Tests.cfg +++ /dev/null @@ -1,26 +0,0 @@ -[ORDERED_INCLUDE] -# Common configuration, shared between test suites -"/osmo-ttcn3-hacks/Common.cfg" -# testsuite specific configuration, not expected to change -"/osmo-ttcn3-hacks/hss/HSS_Tests.default" - -# Local configuration below - -[LOGGING] - -[TESTPORT_PARAMETERS] - -[MODULE_PARAMETERS] -mp_hss_hostname := "172.18.3.201"; -mp_hss_port := 3868; -mp_diam_local_hostname := "172.18.3.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] - -[EXECUTE] -HSS_Tests.control diff --git a/ttcn3-hss-test-ogs/ogs/freediameter.conf b/ttcn3-hss-test-ogs/ogs/freediameter.conf deleted file mode 100644 index 2678592..0000000 --- a/ttcn3-hss-test-ogs/ogs/freediameter.conf +++ /dev/null @@ -1,265 +0,0 @@ -# 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 = "172.18.3.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 = "/usr/lib/x86_64-linux-gnu/freeDiameter/dbg_msg_dumps.fdx" : "0x8888"; -LoadExtension = "/usr/lib/x86_64-linux-gnu/freeDiameter/dict_rfc5777.fdx"; -LoadExtension = "/usr/lib/x86_64-linux-gnu/freeDiameter/dict_mip6i.fdx"; -LoadExtension = "/usr/lib/x86_64-linux-gnu/freeDiameter/dict_nasreq.fdx"; -LoadExtension = "/usr/lib/x86_64-linux-gnu/freeDiameter/dict_nas_mipv6.fdx"; -LoadExtension = "/usr/lib/x86_64-linux-gnu/freeDiameter/dict_dcca.fdx"; -LoadExtension = "/usr/lib/x86_64-linux-gnu/freeDiameter/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 = "172.18.3.202"; Port = 3868; No_TLS; TcTimer = 2; }; - - -############################################################## diff --git a/ttcn3-hss-test-ogs/ogs/mongod.conf b/ttcn3-hss-test-ogs/ogs/mongod.conf deleted file mode 100644 index 65beb4e..0000000 --- a/ttcn3-hss-test-ogs/ogs/mongod.conf +++ /dev/null @@ -1,44 +0,0 @@ -# mongod.conf - -# for documentation of all options, see: -# http://docs.mongodb.org/manual/reference/configuration-options/ - -# Where and how to store data. -storage: - dbPath: /data/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: 172.18.16.103 - - -# how the process runs -processManagement: - timeZoneInfo: /usr/share/zoneinfo - -#security: - -#operationProfiling: - -#replication: - -#sharding: - -## Enterprise-Only Options: - -#auditLog: - -#snmp: - diff --git a/ttcn3-hss-test-ogs/ogs/open5gs-hss-latest.yaml b/ttcn3-hss-test-ogs/ogs/open5gs-hss-latest.yaml deleted file mode 100644 index 8d1f42e..0000000 --- a/ttcn3-hss-test-ogs/ogs/open5gs-hss-latest.yaml +++ /dev/null @@ -1,13 +0,0 @@ -# See https://github.com/open5gs/open5gs/blob/main/configs/open5gs/hss.yaml.in - -db_uri: mongodb://172.18.3.103/open5gs - -logger: - level: trace - -hss: - freeDiameter: /data/freediameter.conf - -parameter: - -max: diff --git a/ttcn3-hss-test-ogs/ogs/open5gs-hss-master.yaml b/ttcn3-hss-test-ogs/ogs/open5gs-hss-master.yaml deleted file mode 100644 index df92b6f..0000000 --- a/ttcn3-hss-test-ogs/ogs/open5gs-hss-master.yaml +++ /dev/null @@ -1,17 +0,0 @@ -# See https://github.com/open5gs/open5gs/blob/main/configs/open5gs/hss.yaml.in - -db_uri: mongodb://172.18.3.103/open5gs - -logger: - level: trace - -global: - max: - ue: 1024 - -hss: - freeDiameter: /data/freediameter.conf - -parameter: - -max: diff --git a/ttcn3-mgw-test/Dockerfile b/ttcn3-mgw-test/Dockerfile deleted file mode 100644 index e8aad68..0000000 --- a/ttcn3-mgw-test/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -ARG REGISTRY -ARG USER -FROM $REGISTRY/$USER/debian-bookworm-titan -ARG OSMO_TTCN3_BRANCH="master" - -ADD https://gerrit.osmocom.org/plugins/gitiles/osmo-ttcn3-hacks/+/$OSMO_TTCN3_BR... /tmp/commit -RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" mgw - -VOLUME /data - -COPY MGCP_Test.cfg /data/MGCP_Test.cfg - -CMD ttcn3-docker-run mgw MGCP_Test diff --git a/ttcn3-mgw-test/MGCP_Test.cfg b/ttcn3-mgw-test/MGCP_Test.cfg deleted file mode 100644 index 5a9d9e6..0000000 --- a/ttcn3-mgw-test/MGCP_Test.cfg +++ /dev/null @@ -1,21 +0,0 @@ -[ORDERED_INCLUDE] -"/osmo-ttcn3-hacks/Common.cfg" -"/osmo-ttcn3-hacks/mgw/MGCP_Test.default" - -[LOGGING] - -[TESTPORT_PARAMETERS] -*.MGWVTY.CTRL_HOSTNAME := "172.18.4.180" -*.STATSVTY.CTRL_HOSTNAME := "172.18.4.180" - -[MODULE_PARAMETERS] -mp_local_ipv4 := "172.18.4.181"; -mp_local_ipv6 := "fd02:db8:4::181"; -mp_remote_ipv4 := "172.18.4.180"; -mp_remote_ipv6 := "fd02:db8:4::180"; -mp_num_endpoints := 300; - -[MAIN_CONTROLLER] - -[EXECUTE] -MGCP_Test.control diff --git a/ttcn3-mgw-test/Makefile b/ttcn3-mgw-test/Makefile deleted file mode 100644 index 8d0e10b..0000000 --- a/ttcn3-mgw-test/Makefile +++ /dev/null @@ -1 +0,0 @@ -include ../make/Makefile diff --git a/ttcn3-mgw-test/jenkins.sh b/ttcn3-mgw-test/jenkins.sh deleted file mode 100755 index 4add209..0000000 --- a/ttcn3-mgw-test/jenkins.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh - -. ../jenkins-common.sh -IMAGE_SUFFIX="${IMAGE_SUFFIX:-master}" -docker_images_require \ - "osmo-mgw-$IMAGE_SUFFIX" \ - "ttcn3-mgw-test" - -set_clean_up_trap -set -e - -mkdir $VOL_BASE_DIR/mgw-tester -cp MGCP_Test.cfg $VOL_BASE_DIR/mgw-tester/ -write_mp_osmo_repo "$VOL_BASE_DIR/mgw-tester/MGCP_Test.cfg" - -mkdir $VOL_BASE_DIR/mgw -cp osmo-mgw.cfg $VOL_BASE_DIR/mgw/ - -network_create -network_replace_subnet_in_configs - -# start container with mgw in background -docker run --rm \ - $(docker_network_params $SUBNET 180) \ - --ulimit core=-1 \ - -v $VOL_BASE_DIR/mgw:/data \ - --name ${BUILD_TAG}-mgw -d \ - $DOCKER_ARGS \ - $REPO_USER/osmo-mgw-$IMAGE_SUFFIX - -# start docker container with testsuite in foreground -docker run --rm \ - $(docker_network_params $SUBNET 181) \ - --ulimit core=-1 \ - -v $VOL_BASE_DIR/mgw-tester:/data \ - -e "TTCN3_PCAP_PATH=/data" \ - -e "OSMO_SUT_HOST=$SUB4_PREFIX.$SUBNET.180" \ - -e "OSMO_SUT_PORT=4243" \ - --name ${BUILD_TAG}-ttcn3-mgw-test \ - $DOCKER_ARGS \ - $REPO_USER/ttcn3-mgw-test diff --git a/ttcn3-mgw-test/osmo-mgw.cfg b/ttcn3-mgw-test/osmo-mgw.cfg deleted file mode 100644 index f009bef..0000000 --- a/ttcn3-mgw-test/osmo-mgw.cfg +++ /dev/null @@ -1,71 +0,0 @@ -! -! OsmoMGW (1.2.0.17-52e3) configuration saved from vty -!! -! -log gsmtap 172.18.4.181 - logging level set-all debug - logging filter all 1 -! -log stderr - logging filter all 1 - logging color 1 - logging print level 1 - logging print category 1 - logging timestamp 1 - logging print file basename last - logging print extended-timestamp 1 - logging level set-all notice - logging level lmgcp debug -! -stats interval 5 -! -line vty - no login - bind 0.0.0.0 -ctrl - bind 0.0.0.0 -! -stats interval 0 -stats reporter statsd - prefix TTCN3 - level global - remote-ip 172.18.4.181 - remote-port 8125 - flush-period 1 - mtu 1024 - enable -! -e1_input - e1_line 0 driver ipa -! -mgcp - bind ip 172.18.4.180 - bind port 2427 - rtp port-range 4002 16000 - rtp bind-ip 172.18.4.180 - rtp bind-ip-v6 fd02:db8:4::180 - rtp ip-probing - rtp ip-dscp 46 - no rtp keep-alive - no rtcp-omit - no rtp-patch - sdp audio-payload number 98 - sdp audio-payload name GSM - sdp audio-payload send-ptime - sdp audio-payload send-name - conn-timeout 0 - loop 0 - number endpoints 300 - allow-transcoding - osmux off - osmux bind-ip 172.18.4.180 - osmux bind-ip-v6 fd02:db8:4::180 - trunk 1 - sdp audio-payload send-ptime - sdp audio-payload send-name - no rtp keep-alive - loop 0 - no rtcp-omit - no rtp-patch - allow-transcoding - line 0 diff --git a/ttcn3-mme-test-ogs/Dockerfile b/ttcn3-mme-test-ogs/Dockerfile deleted file mode 100644 index 0f9d688..0000000 --- a/ttcn3-mme-test-ogs/Dockerfile +++ /dev/null @@ -1,21 +0,0 @@ -ARG REGISTRY -ARG USER -FROM $REGISTRY/$USER/debian-bookworm-titan - -RUN apt-get update && \ - apt-get upgrade -y && \ - DEBIAN_FRONTEND='noninteractive' apt-get install -y --no-install-recommends --no-install-suggests \ - libgnutls28-dev \ - && \ - apt-get clean - -ARG OSMO_TTCN3_BRANCH="master" - -ADD https://gerrit.osmocom.org/plugins/gitiles/osmo-ttcn3-hacks/+/$OSMO_TTCN3_BR... /tmp/commit -RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" mme - -VOLUME /data - -COPY ogs/MME_Tests.cfg /data/MME_Tests.cfg - -CMD ttcn3-docker-run mme MME_Tests diff --git a/ttcn3-mme-test-ogs/Makefile b/ttcn3-mme-test-ogs/Makefile deleted file mode 100644 index 8d0e10b..0000000 --- a/ttcn3-mme-test-ogs/Makefile +++ /dev/null @@ -1 +0,0 @@ -include ../make/Makefile diff --git a/ttcn3-mme-test-ogs/jenkins.sh b/ttcn3-mme-test-ogs/jenkins.sh deleted file mode 100755 index 069b990..0000000 --- a/ttcn3-mme-test-ogs/jenkins.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/sh - -. ../jenkins-common.sh - -IMAGE_SUFFIX="${IMAGE_SUFFIX:-master}" -docker_images_require \ - "open5gs-$IMAGE_SUFFIX" \ - "ttcn3-mme-test-ogs" - -set_clean_up_trap -set -e - -mkdir $VOL_BASE_DIR/mme-tester -cp ogs/MME_Tests.cfg $VOL_BASE_DIR/mme-tester/ -write_mp_osmo_repo "$VOL_BASE_DIR/mme-tester/MME_Tests.cfg" - -mkdir $VOL_BASE_DIR/mme -cp ogs/open5gs-*-$IMAGE_SUFFIX.yaml $VOL_BASE_DIR/mme/ -cp ogs/freediameter.conf $VOL_BASE_DIR/mme/ -cp ogs/mme.sh $VOL_BASE_DIR/mme/ - -network_create -network_replace_subnet_in_configs - -# start container with mme in background -docker run --sysctl net.ipv6.conf.all.disable_ipv6=0 \ - --rm \ - --ulimit core=-1 \ - -v $VOL_BASE_DIR/mme:/data \ - --name ${BUILD_TAG}-ogs-mme -d \ - $DOCKER_ARGS \ - $(docker_network_params $SUBNET 201) \ - $REPO_USER/open5gs-$IMAGE_SUFFIX \ - /bin/sh -c "open5gs-mmed -c /data/open5gs-mme-$IMAGE_SUFFIX.yaml >/data/open5gs-mmed.out 2>&1" - -# start docker container with testsuite in foreground -docker run --rm \ - --sysctl net.ipv6.conf.all.disable_ipv6=0 \ - $(docker_network_params $SUBNET 202) \ - --ulimit core=-1 \ - -v $VOL_BASE_DIR/mme-tester:/data \ - -e "TTCN3_PCAP_PATH=/data" \ - --name ${BUILD_TAG}-mme-test \ - $DOCKER_ARGS \ - $REPO_USER/ttcn3-mme-test-ogs diff --git a/ttcn3-mme-test-ogs/ogs/MME_Tests.cfg b/ttcn3-mme-test-ogs/ogs/MME_Tests.cfg deleted file mode 100644 index 6e727f5..0000000 --- a/ttcn3-mme-test-ogs/ogs/MME_Tests.cfg +++ /dev/null @@ -1,45 +0,0 @@ -[ORDERED_INCLUDE] -# Common configuration, shared between test suites -"/osmo-ttcn3-hacks/Common.cfg" -# testsuite specific configuration, not expected to change -"/osmo-ttcn3-hacks/mme/MME_Tests.default" - -# Local configuration below - -[LOGGING] - -[TESTPORT_PARAMETERS] - -[MODULE_PARAMETERS] -# S1 interface -mp_mme_ip := "172.18.3.201"; -mp_mme_s1ap_port := 36412; -mp_s1_local_ip := "172.18.3.202"; -mp_s1_local_port := 50000; - -# S6 interface -mp_s6_local_ip := "172.18.3.202"; -mp_s6_local_port := 3868; - -# SGs interface -mp_sgs_local_ip := "172.18.3.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 := "172.18.3.202"; -mp_gn_local_port := 2124; -mp_gn_remote_ip := "172.18.3.201"; -mp_gn_remote_port := 2123; - -# S11 interface (GTPv2C, interface between MME and SGW) -mp_s11_local_ip := "172.18.3.202"; -mp_s11_local_port := 2123; -mp_s11_remote_ip := "172.18.3.201"; -mp_s11_remote_port := 2123; - -[MAIN_CONTROLLER] - -[EXECUTE] -MME_Tests.control diff --git a/ttcn3-mme-test-ogs/ogs/freediameter.conf b/ttcn3-mme-test-ogs/ogs/freediameter.conf deleted file mode 100644 index d149aa3..0000000 --- a/ttcn3-mme-test-ogs/ogs/freediameter.conf +++ /dev/null @@ -1,265 +0,0 @@ -# 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 = "172.18.3.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 = "/usr/lib/x86_64-linux-gnu/freeDiameter/dbg_msg_dumps.fdx" : "0x8888"; -LoadExtension = "/usr/lib/x86_64-linux-gnu/freeDiameter/dict_rfc5777.fdx"; -LoadExtension = "/usr/lib/x86_64-linux-gnu/freeDiameter/dict_mip6i.fdx"; -LoadExtension = "/usr/lib/x86_64-linux-gnu/freeDiameter/dict_nasreq.fdx"; -LoadExtension = "/usr/lib/x86_64-linux-gnu/freeDiameter/dict_nas_mipv6.fdx"; -LoadExtension = "/usr/lib/x86_64-linux-gnu/freeDiameter/dict_dcca.fdx"; -LoadExtension = "/usr/lib/x86_64-linux-gnu/freeDiameter/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 = "172.18.3.202"; Port = 3868; No_TLS; TcTimer = 2; }; - - -############################################################## diff --git a/ttcn3-mme-test-ogs/ogs/mme.sh b/ttcn3-mme-test-ogs/ogs/mme.sh deleted file mode 100755 index ae417fd..0000000 --- a/ttcn3-mme-test-ogs/ogs/mme.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh -set -e -set -x -/data/mmed-setup.sh -mmed_bin="$(command -v open5gs-mmed)" -su - osmocom -c "$mmed_bin $*" diff --git a/ttcn3-mme-test-ogs/ogs/open5gs-mme-latest.yaml b/ttcn3-mme-test-ogs/ogs/open5gs-mme-latest.yaml deleted file mode 100644 index af5d96e..0000000 --- a/ttcn3-mme-test-ogs/ogs/open5gs-mme-latest.yaml +++ /dev/null @@ -1,64 +0,0 @@ -# See https://github.com/open5gs/open5gs/blob/main/configs/open5gs/mme.yaml.in - -logger: - level: debug - -mme: - freeDiameter: /data/freediameter.conf - s1ap: - - addr: 172.18.3.201 - gtpc: - - addr: 172.18.3.201 - metrics: - - addr: 172.18.3.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 - -sgwc: - gtpc: - - addr: 172.18.3.202 - -smf: - gtpc: - - addr: - - 172.18.3.201 - - ::1 - -sgsn: - - gtpc: - addr: - - 172.18.3.202 - port: 2124 - routes: - - rai: - lai: - plmn_id: - mcc: 262 - mnc: 42 - lac: 39594 - rac: 187 - ci: 1223 - -parameter: - -max: - -usrsctp: - -time: diff --git a/ttcn3-mme-test-ogs/ogs/open5gs-mme-master.yaml b/ttcn3-mme-test-ogs/ogs/open5gs-mme-master.yaml deleted file mode 100644 index 66c9b66..0000000 --- a/ttcn3-mme-test-ogs/ogs/open5gs-mme-master.yaml +++ /dev/null @@ -1,65 +0,0 @@ -# See https://github.com/open5gs/open5gs/blob/main/configs/open5gs/mme.yaml.in - -logger: - level: debug - -global: - max: - ue: 1024 - -mme: - freeDiameter: /data/freediameter.conf - s1ap: - server: - - address: 172.18.3.201 - gtpc: - server: - - address: 172.18.3.201 - client: - sgwc: - - address: 172.18.3.202 - smf: - - address: 172.18.3.201 - - address: ::1 - sgsn: - - address: - - 172.18.3.202 - port: 2124 - routes: - - rai: - lai: - plmn_id: - mcc: 262 - mnc: 42 - lac: 39594 - rac: 187 - ci: 1223 - metrics: - server: - - address: 172.18.3.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/ttcn3-s1gw-test/Dockerfile b/ttcn3-s1gw-test/Dockerfile deleted file mode 100644 index 296cd02..0000000 --- a/ttcn3-s1gw-test/Dockerfile +++ /dev/null @@ -1,14 +0,0 @@ -ARG REGISTRY -ARG USER -FROM $REGISTRY/$USER/debian-bookworm-titan - -ARG OSMO_TTCN3_BRANCH="master" - -ADD https://gerrit.osmocom.org/plugins/gitiles/osmo-ttcn3-hacks/+/$OSMO_TTCN3_BR... /tmp/commit -RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" s1gw - -VOLUME /data - -COPY S1GW_Tests.cfg /data/S1GW_Tests.cfg - -CMD ttcn3-docker-run s1gw S1GW_Tests diff --git a/ttcn3-s1gw-test/Makefile b/ttcn3-s1gw-test/Makefile deleted file mode 100644 index 8d0e10b..0000000 --- a/ttcn3-s1gw-test/Makefile +++ /dev/null @@ -1 +0,0 @@ -include ../make/Makefile diff --git a/ttcn3-s1gw-test/S1GW_Tests.cfg b/ttcn3-s1gw-test/S1GW_Tests.cfg deleted file mode 100644 index a81c95e..0000000 --- a/ttcn3-s1gw-test/S1GW_Tests.cfg +++ /dev/null @@ -1,17 +0,0 @@ -[ORDERED_INCLUDE] -"/osmo-ttcn3-hacks/Common.cfg" -"/osmo-ttcn3-hacks/s1gw/S1GW_Tests.default" - -[LOGGING] - -[TESTPORT_PARAMETERS] - -[MODULE_PARAMETERS] -S1GW_Tests.mp_s1gw_enb_ip := "172.18.10.200"; -S1GW_Tests.mp_s1gw_mme_ip := "172.18.10.100"; -S1GW_Tests.mp_mme_bind_ip := "172.18.10.101"; - -[MAIN_CONTROLLER] - -[EXECUTE] -S1GW_Tests.control diff --git a/ttcn3-s1gw-test/jenkins.sh b/ttcn3-s1gw-test/jenkins.sh deleted file mode 100755 index f00987d..0000000 --- a/ttcn3-s1gw-test/jenkins.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/sh - -. ../jenkins-common.sh -IMAGE_SUFFIX="${IMAGE_SUFFIX:-master}" -docker_images_require \ - "osmo-s1gw-$IMAGE_SUFFIX" \ - "ttcn3-s1gw-test" - -set_clean_up_trap -set -e - -mkdir $VOL_BASE_DIR/s1gw-tester -cp S1GW_Tests.cfg $VOL_BASE_DIR/s1gw-tester/ -write_mp_osmo_repo "$VOL_BASE_DIR/s1gw-tester/S1GW_Tests.cfg" - -mkdir $VOL_BASE_DIR/s1gw -cp s1gw.sh $VOL_BASE_DIR/s1gw/ -cp osmo-s1gw.config $VOL_BASE_DIR/s1gw/ - -network_create -network_replace_subnet_in_configs - -echo "Starting container with osmo-s1gw" -docker run --rm \ - $(docker_network_params $SUBNET 100) \ - --user=root \ - --ulimit core=-1 \ - --cap-add=NET_ADMIN \ - -e "ERL_FLAGS=-config /data/osmo-s1gw.config" \ - -v $VOL_BASE_DIR/s1gw:/data \ - --name ${BUILD_TAG}-s1gw -d \ - $DOCKER_ARGS \ - $REPO_USER/osmo-s1gw-$IMAGE_SUFFIX \ - /bin/sh -c "/data/s1gw.sh > /data/osmo-s1gw.log 2>&1" - -# Give some time to osmo-s1gw to be fully started; it's a bit slow... -sleep 2 - -echo "Starting container with the S1GW testsuite" -docker run --rm \ - $(docker_network_params $SUBNET 101) \ - --ulimit core=-1 \ - -e "TTCN3_PCAP_PATH=/data" \ - -v $VOL_BASE_DIR/s1gw-tester:/data \ - --name ${BUILD_TAG}-ttcn3-s1gw-test \ - $DOCKER_ARGS \ - $REPO_USER/ttcn3-s1gw-test diff --git a/ttcn3-s1gw-test/osmo-s1gw.config b/ttcn3-s1gw-test/osmo-s1gw.config deleted file mode 100644 index b621ef9..0000000 --- a/ttcn3-s1gw-test/osmo-s1gw.config +++ /dev/null @@ -1,35 +0,0 @@ -%% -*- erlang -*- - -[%% ================================================================================ - %% application config - %% - %% eNB S1GW - %% +-----+ +----------------+ - %% | ... | --> | s1gw_bind_addr | MME - %% +-----+ +----------------+ +-----------------+ - %% | mme_loc_addr | --> | mme_rem_addr | - %% +----------------+ +-----------------+ - %% ================================================================================ - {osmo_s1gw, - [{s1gw_bind_addr, "172.18.10.200"}, %% S1GW bind address for incoming eNB connections - {mme_loc_addr, "172.18.10.100"}, %% local address for outgoing connections to the MME - {mme_rem_addr, "172.18.10.101"} %% remote address for outgoing connections to the MME - ]}, - %% ================================================================================ - %% kernel config - %% ================================================================================ - {kernel, - [{logger_level, debug}, - {logger, - [{handler, default, logger_std_h, - #{level => debug, - formatter => {logger_formatter, - #{template => [time, " ", - "[", level, "]", - {pid, [" ", pid, ""], ""}, - {prefix, [" ", prefix, " ::"], ""}, - " ", msg, - {mfa, [" (", mfa, ":", line, ")"], ""}, - "\n"]}}}}]}]}]. - -%% vim:set ts=2 sw=2 et: diff --git a/ttcn3-s1gw-test/s1gw.sh b/ttcn3-s1gw-test/s1gw.sh deleted file mode 100755 index e212aa2..0000000 --- a/ttcn3-s1gw-test/s1gw.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -ex - -# the subnet prefix is to be modified by network_replace_subnet_in_configs() -ip addr add 172.18.10.100/24 dev eth0 || true # primary address already set by docker_network_params() -ip addr add 172.18.10.200/24 dev eth0 # secondary address for eNB -> S1GW connections - -# drop the root privileges and finally start osmo-s1gw -su build -c "/tmp/osmo-s1gw/_build/default/bin/osmo-s1gw" diff --git a/ttcn3-sgsn-test-sns/jenkins.sh b/ttcn3-sgsn-test-sns/jenkins.sh deleted file mode 120000 index 4c1f7b3..0000000 --- a/ttcn3-sgsn-test-sns/jenkins.sh +++ /dev/null @@ -1 +0,0 @@ -../ttcn3-sgsn-test/jenkins-sns.sh \ No newline at end of file diff --git a/ttcn3-sgsn-test-sns/osmo-stp.cfg b/ttcn3-sgsn-test-sns/osmo-stp.cfg deleted file mode 120000 index 6760339..0000000 --- a/ttcn3-sgsn-test-sns/osmo-stp.cfg +++ /dev/null @@ -1 +0,0 @@ -../ttcn3-sgsn-test/osmo-stp.cfg \ No newline at end of file diff --git a/ttcn3-sgsn-test-sns/sns b/ttcn3-sgsn-test-sns/sns deleted file mode 120000 index 95cdae2..0000000 --- a/ttcn3-sgsn-test-sns/sns +++ /dev/null @@ -1 +0,0 @@ -../ttcn3-sgsn-test/sns \ No newline at end of file diff --git a/ttcn3-sgsn-test/Dockerfile b/ttcn3-sgsn-test/Dockerfile deleted file mode 100644 index eba4ddd..0000000 --- a/ttcn3-sgsn-test/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -ARG REGISTRY -ARG USER -FROM $REGISTRY/$USER/debian-bookworm-titan -ARG OSMO_TTCN3_BRANCH="master" - -ADD https://gerrit.osmocom.org/plugins/gitiles/osmo-ttcn3-hacks/+/$OSMO_TTCN3_BR... /tmp/commit -RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" sgsn - -VOLUME /data - -COPY SGSN_Tests.cfg /data/SGSN_Tests.cfg - -CMD ttcn3-docker-run sgsn SGSN_Tests diff --git a/ttcn3-sgsn-test/Makefile b/ttcn3-sgsn-test/Makefile deleted file mode 100644 index 1e5903f..0000000 --- a/ttcn3-sgsn-test/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -RUN_ARGS?=-it --network sigtran --ip 172.19.1.202 -v sgsn-test-vol:/data - -include ../make/Makefile diff --git a/ttcn3-sgsn-test/SGSN_Tests.cfg b/ttcn3-sgsn-test/SGSN_Tests.cfg deleted file mode 100644 index 40694ee..0000000 --- a/ttcn3-sgsn-test/SGSN_Tests.cfg +++ /dev/null @@ -1,77 +0,0 @@ -[ORDERED_INCLUDE] -# Common configuration, shared between test suites -"/osmo-ttcn3-hacks/Common.cfg" -# testsuite specific configuration, not expected to change -"/osmo-ttcn3-hacks/sgsn/SGSN_Tests.default" - -# Local configuration below - -[LOGGING] - -[TESTPORT_PARAMETERS] -*.SGSNVTY.CTRL_HOSTNAME := "172.18.8.10" - -[MODULE_PARAMETERS] -SGSN_Tests.mp_nsconfig := { - { - nsvc := { - { - provider := { - ip := { - address_family := AF_INET, - local_ip := "172.18.8.103", - remote_ip := "172.18.8.10", - data_weight := 1, - signalling_weight := 1 - } - } - } - } - }, - { - nsvc := { - { - provider := { - ip := { - address_family := AF_INET, - local_ip := "172.18.8.103", - remote_ip := "172.18.8.10", - data_weight := 1, - signalling_weight := 1 - } - } - } - } - }, - { - nsvc := { - { - provider := { - ip := { - address_family := AF_INET, - local_ip := "172.18.8.103", - remote_ip := "172.18.8.10", - data_weight := 1, - signalling_weight := 1 - } - } - } - } - } -} -SGSN_Tests.mp_ranap_cfg := { - { - sctp_addr := { 23908, "172.18.8.104", 2905, "172.18.8.200" } - } -} -SGSN_Tests.mp_hlr_ip := "172.18.8.103" -SGSN_Tests.mp_ggsn_ip := "172.18.8.103" -SGSN_Tests.mp_sgsn_gtp_ip := "172.18.8.10" - - -[MAIN_CONTROLLER] - -[EXECUTE] -SGSN_Tests.control -SGSN_Tests_Iu.control -SGSN_Tests_NS.control diff --git a/ttcn3-sgsn-test/jenkins-sns.sh b/ttcn3-sgsn-test/jenkins-sns.sh deleted file mode 100755 index 027244d..0000000 --- a/ttcn3-sgsn-test/jenkins-sns.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh - -. ../jenkins-common.sh -IMAGE_SUFFIX="${IMAGE_SUFFIX:-master}" -docker_images_require \ - "osmo-stp-$IMAGE_SUFFIX" \ - "osmo-sgsn-$IMAGE_SUFFIX" \ - "ttcn3-sgsn-test" - -set_clean_up_trap -set -e - -mkdir $VOL_BASE_DIR/sgsn-tester -cp sns/SGSN_Tests.cfg $VOL_BASE_DIR/sgsn-tester/ -write_mp_osmo_repo "$VOL_BASE_DIR/sgsn-tester/SGSN_Tests.cfg" - -mkdir $VOL_BASE_DIR/sgsn -cp sns/osmo-sgsn.cfg $VOL_BASE_DIR/sgsn/ - -mkdir $VOL_BASE_DIR/stp -cp osmo-stp.cfg $VOL_BASE_DIR/stp/ - -mkdir $VOL_BASE_DIR/unix - -network_create -network_replace_subnet_in_configs - -echo Starting container with STP -docker run --rm \ - $(docker_network_params $SUBNET 200) \ - --ulimit core=-1 \ - -v $VOL_BASE_DIR/stp:/data \ - --name ${BUILD_TAG}-stp -d \ - $DOCKER_ARGS \ - $REPO_USER/osmo-stp-$IMAGE_SUFFIX - -echo Starting container with SGSN -docker run --rm \ - $(docker_network_params $SUBNET 10) \ - --ulimit core=-1 \ - -v $VOL_BASE_DIR/sgsn:/data \ - --name ${BUILD_TAG}-sgsn-sns -d \ - $DOCKER_ARGS \ - $REPO_USER/osmo-sgsn-$IMAGE_SUFFIX \ - /bin/sh -c "osmo-sgsn -c /data/osmo-sgsn.cfg >/data/osmo-sgsn.log 2>&1" - -echo Starting container with SGSN testsuite -docker run --rm \ - $(docker_network_params $SUBNET 103) \ - --ulimit core=-1 \ - -e "TTCN3_PCAP_PATH=/data" \ - -e "OSMO_SUT_HOST=172.18.$SUBNET.10" \ - -e "OSMO_SUT_PORT=4245" \ - -v $VOL_BASE_DIR/sgsn-tester:/data \ - --name ${BUILD_TAG}-ttcn3-sgsn-test-sns \ - $DOCKER_ARGS \ - $REPO_USER/ttcn3-sgsn-test diff --git a/ttcn3-sgsn-test/jenkins.sh b/ttcn3-sgsn-test/jenkins.sh deleted file mode 100755 index b047d80..0000000 --- a/ttcn3-sgsn-test/jenkins.sh +++ /dev/null @@ -1,62 +0,0 @@ -#!/bin/sh - -. ../jenkins-common.sh -IMAGE_SUFFIX="${IMAGE_SUFFIX:-master}" -docker_images_require \ - "osmo-stp-$IMAGE_SUFFIX" \ - "osmo-sgsn-$IMAGE_SUFFIX" \ - "ttcn3-sgsn-test" - -set_clean_up_trap -set -e - -mkdir $VOL_BASE_DIR/sgsn-tester -cp "ttcn3.sh" "$VOL_BASE_DIR/sgsn-tester/" -cp SGSN_Tests.cfg $VOL_BASE_DIR/sgsn-tester/ -write_mp_osmo_repo "$VOL_BASE_DIR/sgsn-tester/SGSN_Tests.cfg" - -mkdir $VOL_BASE_DIR/sgsn -cp osmo-sgsn.cfg $VOL_BASE_DIR/sgsn/ - -mkdir $VOL_BASE_DIR/stp -cp osmo-stp.cfg $VOL_BASE_DIR/stp/ - -mkdir $VOL_BASE_DIR/unix - -network_create -network_replace_subnet_in_configs -TTCN3_RAN_IPADDR="$SUB4_PREFIX.$SUBNET.104" - -echo Starting container with STP -docker run --rm \ - $(docker_network_params $SUBNET 200) \ - --ulimit core=-1 \ - -v $VOL_BASE_DIR/stp:/data \ - --name ${BUILD_TAG}-stp -d \ - $DOCKER_ARGS \ - $REPO_USER/osmo-stp-$IMAGE_SUFFIX - -echo Starting container with SGSN -docker run --rm \ - $(docker_network_params $SUBNET 10) \ - --ulimit core=-1 \ - -v $VOL_BASE_DIR/sgsn:/data \ - --name ${BUILD_TAG}-sgsn -d \ - $DOCKER_ARGS \ - $REPO_USER/osmo-sgsn-$IMAGE_SUFFIX \ - /bin/sh -c "osmo-sgsn -c /data/osmo-sgsn.cfg >/data/osmo-sgsn.log 2>&1" - -echo Starting container with SGSN testsuite -docker run --rm \ - --cap-add=NET_ADMIN \ - $(docker_network_params $SUBNET 103) \ - --ulimit core=-1 \ - -e "TTCN3_PCAP_PATH=/data" \ - -e "OSMO_SUT_HOST=$SUB4_PREFIX.$SUBNET.10" \ - -e "OSMO_SUT_PORT=4245" \ - -e "EXTRA_IPADDR=${TTCN3_RAN_IPADDR}" \ - -v $VOL_BASE_DIR/sgsn-tester:/data \ - --name ${BUILD_TAG}-ttcn3-sgsn-test \ - $DOCKER_ARGS \ - $REPO_USER/ttcn3-sgsn-test \ - /data/ttcn3.sh diff --git a/ttcn3-sgsn-test/osmo-sgsn.cfg b/ttcn3-sgsn-test/osmo-sgsn.cfg deleted file mode 100644 index 0fb826a..0000000 --- a/ttcn3-sgsn-test/osmo-sgsn.cfg +++ /dev/null @@ -1,105 +0,0 @@ -! -! OsmoSGSN (1.2.0.46-e77e-dirty) configuration saved from vty -!! -! -log gsmtap 172.18.8.103 - logging level set-all debug - logging filter all 1 -! -log stderr - logging filter all 1 - logging color 1 - logging print category 1 - logging timestamp 1 - logging print extended-timestamp 1 - logging print file 1 - logging level mm debug - logging level pag notice - logging level meas notice - logging level ref notice - logging level gprs debug - logging level llc debug - logging level sndcp debug - logging level slhc notice - logging level ranap info - logging level sua info - logging level v42bis info - logging level lglobal info - logging level llapd notice - logging level linp notice - logging level lmux notice - logging level lmi notice - logging level lmib notice - logging level lsms notice - logging level lctrl notice - logging level lgtp debug - logging level lstats notice - logging level lgsup debug - logging level loap notice - logging level lss7 notice - logging level lsccp info - logging level lsua notice - logging level lm3ua notice - logging level lmgcp notice -! -stats interval 5 -! -line vty - no login - bind 0.0.0.0 -ctrl - bind 0.0.0.0 -! -cs7 instance 0 - point-code 0.23.4 - asp asp-clnt-OsmoSGSN-A 2905 0 m3ua - local-ip 172.18.8.10 - local-ip fd02:db8:8::10 - remote-ip 172.18.8.200 - remote-ip fd02:db8:8::200 - role asp - sctp-role client - as as-clnt-OsmoSGSN-A m3ua - asp asp-clnt-OsmoSGSN-A - routing-key 3 0.23.4 -ns - timer tns-block 3 - timer tns-block-retries 3 - timer tns-reset 3 - timer tns-reset-retries 3 - timer tns-test 30 - timer tns-alive 3 - timer tns-alive-retries 10 - bind udp local - listen 172.18.8.10 23000 - accept-ipaccess -bssgp -sgsn - gtp local-ip 172.18.8.10 - ggsn 0 remote-ip 172.18.8.103 - ggsn 0 gtp-version 1 - gsup remote-ip 172.18.8.103 - gsup remote-port 4222 - auth-policy remote - gsup oap-id 0 - ! apn * ggsn 0 - no cdr filename - no cdr trap - cdr interval 600 - timer t3312 600 - timer t3322 6 - timer t3350 6 - timer t3360 6 - timer t3370 6 - timer t3313 30 - timer t3314 44 - timer t3316 44 - timer t3385 8 - timer t3386 8 - timer t3395 8 - timer t3397 8 - no compression rfc1144 - no compression v42bis - mme test-mme0 - gtp remote-ip 172.18.8.103 - gtp ran-info-relay 262 42 3 diff --git a/ttcn3-sgsn-test/osmo-stp.cfg b/ttcn3-sgsn-test/osmo-stp.cfg deleted file mode 100644 index 3a7d0ab..0000000 --- a/ttcn3-sgsn-test/osmo-stp.cfg +++ /dev/null @@ -1,40 +0,0 @@ -! -! OsmoSTP (0.8.1) configuration saved from vty -!! -! -log gsmtap 172.18.1.103 - logging level set-all debug - logging filter all 1 -! -log stderr - logging filter all 1 - logging color 1 - logging print category 1 - logging timestamp 1 - logging print extended-timestamp 1 - logging level set-all debug -! -line vty - no login -! -cs7 instance 0 - xua rkm routing-key-allocation dynamic-permitted - asp virt-rnc0-0 23908 2905 m3ua - local-ip 172.18.8.200 - local-ip fd02:db8:8::200 - remote-ip 172.18.8.104 - remote-ip fd02:db8:8::104 - role sg - sctp-role server - as virt-rnc0 m3ua - asp virt-rnc0-0 - routing-key 2 0.24.3 - route-table system - update route 0.24.3 7.255.7 linkset virt-rnc0 - listen m3ua 2905 - accept-asp-connections dynamic-permitted - local-ip 172.18.8.200 - local-ip fd02:db8:8::200 - listen ipa 5000 - accept-asp-connections dynamic-permitted - local-ip 172.18.8.200 diff --git a/ttcn3-sgsn-test/sns/SGSN_Tests.cfg b/ttcn3-sgsn-test/sns/SGSN_Tests.cfg deleted file mode 100644 index e3ee59f..0000000 --- a/ttcn3-sgsn-test/sns/SGSN_Tests.cfg +++ /dev/null @@ -1,46 +0,0 @@ -[ORDERED_INCLUDE] -# Common configuration, shared between test suites -"/osmo-ttcn3-hacks/Common.cfg" -# testsuite specific configuration, not expected to change -"/osmo-ttcn3-hacks/sgsn/SGSN_Tests.default" - -# Local configuration below - -[LOGGING] - -[TESTPORT_PARAMETERS] -*.SGSNVTY.CTRL_HOSTNAME := "172.18.8.10" - -[MODULE_PARAMETERS] -SGSN_Tests.mp_nsconfig := { - { - handle_sns := true, - nsvc := { - { - provider := { - ip := { - address_family := AF_INET, - local_ip := "172.18.8.103", - remote_ip := "172.18.8.10", - data_weight := 1, - signalling_weight := 1 - } - } - } - } - } -} -SGSN_Tests.mp_ranap_cfg := { - { - sctp_addr := { 23908, "172.18.8.103", 2905, "172.18.8.200" } - } -} -SGSN_Tests.mp_hlr_ip := "172.18.8.103" -SGSN_Tests.mp_ggsn_ip := "172.18.8.103" -SGSN_Tests.mp_sgsn_gtp_ip := "172.18.8.10" - - -[MAIN_CONTROLLER] - -[EXECUTE] -SGSN_Tests_NS.control diff --git a/ttcn3-sgsn-test/sns/osmo-sgsn.cfg b/ttcn3-sgsn-test/sns/osmo-sgsn.cfg deleted file mode 100644 index f2a4def..0000000 --- a/ttcn3-sgsn-test/sns/osmo-sgsn.cfg +++ /dev/null @@ -1,105 +0,0 @@ -! -! OsmoSGSN (1.2.0.46-e77e-dirty) configuration saved from vty -!! -! -log gsmtap 172.18.8.103 - logging level set-all debug - logging filter all 1 -! -log stderr - logging filter all 1 - logging color 1 - logging print category 1 - logging timestamp 1 - logging print extended-timestamp 1 - logging print file 1 - logging level mm debug - logging level pag notice - logging level meas notice - logging level ref notice - logging level gprs debug - logging level llc debug - logging level sndcp debug - logging level slhc notice - logging level ranap info - logging level sua info - logging level v42bis info - logging level lglobal info - logging level llapd notice - logging level linp notice - logging level lmux notice - logging level lmi notice - logging level lmib notice - logging level lsms notice - logging level lctrl notice - logging level lgtp debug - logging level lstats notice - logging level lgsup debug - logging level loap notice - logging level lss7 notice - logging level lsccp info - logging level lsua notice - logging level lm3ua notice - logging level lmgcp notice -! -stats interval 5 -! -line vty - no login - bind 0.0.0.0 -ctrl - bind 0.0.0.0 -! -cs7 instance 0 - point-code 0.23.4 - asp asp-clnt-OsmoSGSN-A 2905 0 m3ua - local-ip 172.18.8.10 - local-ip fd02:db8:8::10 - remote-ip 172.18.8.200 - remote-ip fd02:db8:8::200 - role asp - sctp-role client - as as-clnt-OsmoSGSN-A m3ua - asp asp-clnt-OsmoSGSN-A - routing-key 3 0.23.4 -ns - timer tns-block 3 - timer tns-block-retries 3 - timer tns-reset 3 - timer tns-reset-retries 3 - timer tns-test 30 - timer tns-alive 3 - timer tns-alive-retries 10 - bind udp local - listen 172.18.8.10 23000 - accept-dynamic-ip-sns -bssgp -sgsn - gtp local-ip 172.18.8.10 - ggsn 0 remote-ip 172.18.8.103 - ggsn 0 gtp-version 1 - gsup remote-ip 172.18.8.103 - gsup remote-port 4222 - auth-policy remote - gsup oap-id 0 - ! apn * ggsn 0 - no cdr filename - no cdr trap - cdr interval 600 - timer t3312 600 - timer t3322 6 - timer t3350 6 - timer t3360 6 - timer t3370 6 - timer t3313 30 - timer t3314 44 - timer t3316 44 - timer t3385 8 - timer t3386 8 - timer t3395 8 - timer t3397 8 - no compression rfc1144 - no compression v42bis - mme test-mme0 - gtp remote-ip 172.18.8.103 - gtp ran-info-relay 262 42 3 diff --git a/ttcn3-sgsn-test/ttcn3.sh b/ttcn3-sgsn-test/ttcn3.sh deleted file mode 100755 index 9100bfa..0000000 --- a/ttcn3-sgsn-test/ttcn3.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash -set +e -set -x - -if [[ -z "${EXTRA_IPADDR}" ]]; then - echo "env var EXTRA_IPADDR undefined!" - exit 1 -fi - -ip addr add "${EXTRA_IPADDR}" dev eth0 - -# https://bugzilla.redhat.com/show_bug.cgi?id=782042 -# IPv6 addresses may take an extra while to be available ('tentative' state): -while [ -n "$(ip -6 addr show tentative)" ]; do sleep 1; done - -ttcn3-docker-run sgsn SGSN_Tests diff --git a/ttcn3-sip-test/Dockerfile b/ttcn3-sip-test/Dockerfile deleted file mode 100644 index 7418ea6..0000000 --- a/ttcn3-sip-test/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -ARG REGISTRY -ARG USER -FROM $REGISTRY/$USER/debian-bookworm-titan -ARG OSMO_TTCN3_BRANCH="master" - -ADD https://gerrit.osmocom.org/plugins/gitiles/osmo-ttcn3-hacks/+/$OSMO_TTCN3_BR... /tmp/commit -RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" sip - -VOLUME /data - -COPY SIP_Tests.cfg /data/SIP_Tests.cfg - -CMD ttcn3-docker-run sip SIP_Tests diff --git a/ttcn3-sip-test/Makefile b/ttcn3-sip-test/Makefile deleted file mode 100644 index 8d0e10b..0000000 --- a/ttcn3-sip-test/Makefile +++ /dev/null @@ -1 +0,0 @@ -include ../make/Makefile diff --git a/ttcn3-sip-test/SIP_Tests.cfg b/ttcn3-sip-test/SIP_Tests.cfg deleted file mode 100644 index 2904e76..0000000 --- a/ttcn3-sip-test/SIP_Tests.cfg +++ /dev/null @@ -1,20 +0,0 @@ -[ORDERED_INCLUDE] -"/osmo-ttcn3-hacks/Common.cfg" -"/osmo-ttcn3-hacks/sip/SIP_Tests.default" - -[LOGGING] - -[TESTPORT_PARAMETERS] -*.SIPVTY.CTRL_HOSTNAME := "172.18.11.10" -*.SIP.default_local_address := "172.18.11.103" -*.SIP.default_dest_address := "172.18.11.10" - -[MODULE_PARAMETERS] -SIP_Tests.mp_local_host := "172.18.11.103" -SIP_Tests.mp_osmosip_host := "172.18.11.10" -SIP_Tests.mp_mncc := "/data/unix/mncc" - -[MAIN_CONTROLLER] - -[EXECUTE] -SIP_Tests.control diff --git a/ttcn3-sip-test/jenkins.sh b/ttcn3-sip-test/jenkins.sh deleted file mode 100755 index 6558875..0000000 --- a/ttcn3-sip-test/jenkins.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/sh - -. ../jenkins-common.sh -IMAGE_SUFFIX="${IMAGE_SUFFIX:-master}" -docker_images_require \ - "osmo-sip-$IMAGE_SUFFIX" \ - "ttcn3-sip-test" - -set_clean_up_trap -set -e - -mkdir $VOL_BASE_DIR/sip-tester -mkdir $VOL_BASE_DIR/sip-tester/unix -cp SIP_Tests.cfg $VOL_BASE_DIR/sip-tester/ -write_mp_osmo_repo "$VOL_BASE_DIR/sip-tester/SIP_Tests.cfg" - -mkdir $VOL_BASE_DIR/sip -mkdir $VOL_BASE_DIR/sip/unix -cp osmo-sip-connector.cfg $VOL_BASE_DIR/sip/ - -mkdir $VOL_BASE_DIR/unix - -network_create -network_replace_subnet_in_configs - -echo Starting container with osmo-sip-connector -docker run --rm \ - $(docker_network_params $SUBNET 10) \ - --ulimit core=-1 \ - -v $VOL_BASE_DIR/sip:/data \ - -v $VOL_BASE_DIR/unix:/data/unix \ - --name ${BUILD_TAG}-sip-connector -d \ - $DOCKER_ARGS \ - $REPO_USER/osmo-sip-$IMAGE_SUFFIX \ - /bin/sh -c "osmo-sip-connector -c /data/osmo-sip-connector.cfg >>/data/osmo-sip-connector.log 2>&1" - -echo Starting container with SIP testsuite -docker run --rm \ - $(docker_network_params $SUBNET 103) \ - --ulimit core=-1 \ - -e "TTCN3_PCAP_PATH=/data" \ - -e "OSMO_SUT_HOST=$SUB4_PREFIX.$SUBNET.10" \ - -e "OSMO_SUT_PORT=4256" \ - -v $VOL_BASE_DIR/sip-tester:/data \ - -v $VOL_BASE_DIR/unix:/data/unix \ - --name ${BUILD_TAG}-ttcn3-sip-test \ - $DOCKER_ARGS \ - $REPO_USER/ttcn3-sip-test diff --git a/ttcn3-sip-test/osmo-sip-connector.cfg b/ttcn3-sip-test/osmo-sip-connector.cfg deleted file mode 100644 index 5d0a451..0000000 --- a/ttcn3-sip-test/osmo-sip-connector.cfg +++ /dev/null @@ -1,50 +0,0 @@ -! -! OsmoMNCC (1.1.0-dirty) configuration saved from vty -!! -! -log gsmtap 172.18.11.103 - logging level set-all debug - logging filter all 1 -! -log stderr - logging filter all 1 - logging color 1 - logging print category 1 - logging timestamp 1 - logging print extended-timestamp 1 - logging print file basename - logging level sip debug - logging level mncc debug - logging level app debug - logging level call notice - logging level lglobal notice - logging level llapd notice - logging level linp notice - logging level lmux notice - logging level lmi notice - logging level lmib notice - logging level lsms notice - logging level lctrl notice - logging level lgtp notice - logging level lstats notice - logging level lgsup notice - logging level loap notice - logging level lss7 notice - logging level lsccp notice - logging level lsua notice - logging level lm3ua notice - logging level lmgcp notice - logging level ljibuf notice -! -stats interval 5 -! -line vty - no login - bind 0.0.0.0 -! -sip - local 172.18.11.10 5060 - remote 172.18.11.103 5060 -mncc - socket-path /data/unix/mncc -app diff --git a/ttcn3-smlc-test/Dockerfile b/ttcn3-smlc-test/Dockerfile deleted file mode 100644 index 6c41c1c..0000000 --- a/ttcn3-smlc-test/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -ARG REGISTRY -ARG USER -FROM $REGISTRY/$USER/debian-bookworm-titan -ARG OSMO_TTCN3_BRANCH="master" - -ADD https://gerrit.osmocom.org/plugins/gitiles/osmo-ttcn3-hacks/+/$OSMO_TTCN3_BR... /tmp/commit -RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" smlc - -VOLUME /data - -COPY SMLC_Tests.cfg /data/SMLC_Tests.cfg - -CMD ttcn3-docker-run smlc SMLC_Tests diff --git a/ttcn3-smlc-test/Makefile b/ttcn3-smlc-test/Makefile deleted file mode 100644 index 45d5a8d..0000000 --- a/ttcn3-smlc-test/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -RUN_ARGS?=-it --sysctl net.ipv6.conf.all.disable_ipv6=0 --network sigtran --ip 172.18.23.202 - -include ../make/Makefile diff --git a/ttcn3-smlc-test/SMLC_Tests.cfg b/ttcn3-smlc-test/SMLC_Tests.cfg deleted file mode 100644 index 34bcb75..0000000 --- a/ttcn3-smlc-test/SMLC_Tests.cfg +++ /dev/null @@ -1,31 +0,0 @@ -[ORDERED_INCLUDE] -"/osmo-ttcn3-hacks/Common.cfg" -"/osmo-ttcn3-hacks/smlc/SMLC_Tests.default" - -[LOGGING] -*.JUnitLogger.testsuite_name := "SMLC_Tests" - -[TESTPORT_PARAMETERS] -*.SMLCVTY.CTRL_HOSTNAME := "172.18.23.20" -*.STATSVTY.CTRL_HOSTNAME := "172.18.23.20" - -[MODULE_PARAMETERS] -SMLC_Tests.mp_smlc_ip := "172.18.23.20"; -SMLC_Tests.mp_test_ip := "172.18.23.203"; -SMLC_Tests.mp_bssap_le_cfg := { - { - sccp_service_type := "mtp3_itu", - sctp_addr := { 23905, "172.18.23.203", 2905, "172.18.23.200" }, - own_pc := 187, /* 0.23.3 first BSC emulation */ - own_ssn := 250, /* BSC side SSN */ - peer_pc := 190, /* 0.23.6 osmo-smlc */ - peer_ssn := 252, /* SMLC side SSN */ - sio := '83'O, - rctx := 1 - } -}; - -[MAIN_CONTROLLER] - -[EXECUTE] -SMLC_Tests.control diff --git a/ttcn3-smlc-test/jenkins.sh b/ttcn3-smlc-test/jenkins.sh deleted file mode 100755 index 5bcdcbe..0000000 --- a/ttcn3-smlc-test/jenkins.sh +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/sh - -. ../jenkins-common.sh -IMAGE_SUFFIX="${IMAGE_SUFFIX:-master}" -docker_images_require \ - "osmo-stp-$IMAGE_SUFFIX" \ - "osmo-smlc-$IMAGE_SUFFIX" \ - "ttcn3-smlc-test" - -set_clean_up_trap -set -e - -mkdir $VOL_BASE_DIR/smlc-tester -cp SMLC_Tests.cfg $VOL_BASE_DIR/smlc-tester/ -write_mp_osmo_repo "$VOL_BASE_DIR/smlc-tester/SMLC_Tests.cfg" - -mkdir $VOL_BASE_DIR/stp -cp osmo-stp.cfg $VOL_BASE_DIR/stp/ - -mkdir $VOL_BASE_DIR/smlc -cp osmo-smlc.cfg $VOL_BASE_DIR/smlc/ - -network_create -network_replace_subnet_in_configs - -echo Starting container with STP -docker run --rm \ - $(docker_network_params $SUBNET 200) \ - --ulimit core=-1 \ - -v $VOL_BASE_DIR/stp:/data \ - --name ${BUILD_TAG}-stp -d \ - --ulimit core=-1 \ - $DOCKER_ARGS \ - $REPO_USER/osmo-stp-$IMAGE_SUFFIX - -echo Starting container with SMLC -docker run --rm \ - $(docker_network_params $SUBNET 20) \ - --ulimit core=-1 \ - -v $VOL_BASE_DIR/smlc:/data \ - --name ${BUILD_TAG}-smlc -d \ - $DOCKER_ARGS \ - $REPO_USER/osmo-smlc-$IMAGE_SUFFIX - -echo Starting container with SMLC testsuite -docker run --rm \ - $(docker_network_params $SUBNET 203) \ - --ulimit core=-1 \ - -e "TTCN3_PCAP_PATH=/data" \ - -e "OSMO_SUT_HOST=$SUB4_PREFIX.$SUBNET.20" \ - -e "OSMO_SUT_PORT=4271" \ - -v $VOL_BASE_DIR/smlc-tester:/data \ - --name ${BUILD_TAG}-ttcn3-smlc-test \ - $DOCKER_ARGS \ - $REPO_USER/ttcn3-smlc-test diff --git a/ttcn3-smlc-test/osmo-smlc.cfg b/ttcn3-smlc-test/osmo-smlc.cfg deleted file mode 100644 index 7da2163..0000000 --- a/ttcn3-smlc-test/osmo-smlc.cfg +++ /dev/null @@ -1,29 +0,0 @@ -log gsmtap 172.18.23.203 - logging level set-all debug - logging filter all 1 -log stderr - logging filter all 1 - logging color 1 - logging print level 1 - logging print category 1 - logging print category-hex 0 - logging print extended-timestamp 1 - logging print file basename last - logging level set-all debug - -line vty - no login - bind 0.0.0.0 - -cs7 instance 0 - asp asp-clnt-msc-0 2905 2905 m3ua - local-ip 172.18.23.20 - local-ip fd02:db8:23::20 - remote-ip 172.18.23.200 - remote-ip fd02:db8:23::200 - role asp - sctp-role client -cells - lac-ci 23 42 lat 23.23 lon 42.42 - cgi 001 02 3 4 lat 5.678 lon 6.789 - cgi 001 02 1 17 lat 7.890123 lon 8.90123 diff --git a/ttcn3-smlc-test/osmo-stp.cfg b/ttcn3-smlc-test/osmo-stp.cfg deleted file mode 100644 index fb87a9c..0000000 --- a/ttcn3-smlc-test/osmo-stp.cfg +++ /dev/null @@ -1,44 +0,0 @@ -! -! OsmoSTP (0.8.1) configuration saved from vty -!! -! -log gsmtap 172.18.23.203 - logging level set-all debug - logging filter all 1 -! -log stderr - logging filter all 1 - logging color 1 - logging print level 1 - logging print category 1 - logging print category-hex 0 - logging print extended-timestamp 1 - logging print file basename last - logging level set-all notice - logging level lss7 debug - logging level lsccp debug - logging level lsua debug - logging level lm3ua debug -! -line vty - no login -! -cs7 instance 0 - xua rkm routing-key-allocation dynamic-permitted - asp virt-bsc0-0 23905 2905 m3ua - local-ip 172.18.23.200 - local-ip fd02:db8:23::200 - remote-ip 172.18.23.203 - remote-ip fd02:db8:23::203 - role sg - sctp-role server - as virt-bsc0 m3ua - asp virt-bsc0-0 - routing-key 1 0.23.3 - - route-table system - update route 0.23.3 7.255.7 linkset virt-bsc0 - listen m3ua 2905 - accept-asp-connections dynamic-permitted - local-ip 172.18.23.200 - local-ip fd02:db8:23::200 diff --git a/ttcn3-upf-test/Dockerfile b/ttcn3-upf-test/Dockerfile deleted file mode 100644 index 665d818..0000000 --- a/ttcn3-upf-test/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -ARG REGISTRY -ARG USER -FROM $REGISTRY/$USER/debian-bookworm-titan -ARG OSMO_TTCN3_BRANCH="master" - -ADD https://gerrit.osmocom.org/plugins/gitiles/osmo-ttcn3-hacks/+/$OSMO_TTCN3_BR... /tmp/commit -RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" upf - -VOLUME /data - -COPY UPF_Tests.cfg /data/UPF_Tests.cfg - -CMD ttcn3-docker-run upf UPF_Tests diff --git a/ttcn3-upf-test/Makefile b/ttcn3-upf-test/Makefile deleted file mode 100644 index 207d0f1..0000000 --- a/ttcn3-upf-test/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -RUN_ARGS?=-it --sysctl net.ipv6.conf.all.disable_ipv6=0 --network sigtran --ip 172.18.34.202 - -include ../make/Makefile diff --git a/ttcn3-upf-test/UPF_Tests.cfg b/ttcn3-upf-test/UPF_Tests.cfg deleted file mode 100644 index 0b794e7..0000000 --- a/ttcn3-upf-test/UPF_Tests.cfg +++ /dev/null @@ -1,25 +0,0 @@ -[ORDERED_INCLUDE] -"/osmo-ttcn3-hacks/Common.cfg" -"/osmo-ttcn3-hacks/upf/UPF_Tests.default" - -[LOGGING] -*.JUnitLogger.testsuite_name := "UPF_Tests" - -# Local configuration below - -[LOGGING] - -[TESTPORT_PARAMETERS] -*.UPFVTY.CTRL_HOSTNAME := "172.18.34.20"; -*.STATSVTY.CTRL_HOSTNAME := "172.18.34.20"; - -[MODULE_PARAMETERS] -UPF_Tests.mp_pfcp_ip_upf := "172.18.34.20"; -UPF_Tests.mp_pfcp_ip_local := "172.18.34.203"; - -UPF_Tests.mp_verify_gtp_actions := false; - -[MAIN_CONTROLLER] - -[EXECUTE] -UPF_Tests.control diff --git a/ttcn3-upf-test/jenkins.sh b/ttcn3-upf-test/jenkins.sh deleted file mode 100755 index 47b892c..0000000 --- a/ttcn3-upf-test/jenkins.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh - -. ../jenkins-common.sh -IMAGE_SUFFIX="${IMAGE_SUFFIX:-master}" -docker_images_require \ - "osmo-upf-$IMAGE_SUFFIX" \ - "ttcn3-upf-test" - -set_clean_up_trap -set -e - -mkdir $VOL_BASE_DIR/upf-tester -cp UPF_Tests.cfg $VOL_BASE_DIR/upf-tester/ -write_mp_osmo_repo "$VOL_BASE_DIR/upf-tester/UPF_Tests.cfg" - -mkdir $VOL_BASE_DIR/upf -cp osmo-upf.cfg $VOL_BASE_DIR/upf/ - -network_create -network_replace_subnet_in_configs - -echo Starting container with UPF -docker run --rm \ - $(docker_network_params $SUBNET 20) \ - --ulimit core=-1 \ - -v $VOL_BASE_DIR/upf:/data \ - --name ${BUILD_TAG}-upf -d \ - $DOCKER_ARGS \ - $REPO_USER/osmo-upf-$IMAGE_SUFFIX - -echo Starting container with UPF testsuite -docker run --rm \ - $(docker_network_params $SUBNET 203) \ - --ulimit core=-1 \ - -e "TTCN3_PCAP_PATH=/data" \ - -e "OSMO_SUT_HOST=$SUB4_PREFIX.$SUBNET.20" \ - -e "OSMO_SUT_PORT=4275" \ - -v $VOL_BASE_DIR/upf-tester:/data \ - --name ${BUILD_TAG}-ttcn3-upf-test \ - $DOCKER_ARGS \ - $REPO_USER/ttcn3-upf-test diff --git a/ttcn3-upf-test/osmo-upf.cfg b/ttcn3-upf-test/osmo-upf.cfg deleted file mode 100644 index 39aaeb7..0000000 --- a/ttcn3-upf-test/osmo-upf.cfg +++ /dev/null @@ -1,24 +0,0 @@ -log stderr - logging filter all 1 - logging color 1 - logging print category-hex 0 - logging print category 1 - logging print thread-id 0 - logging print extended-timestamp 1 - logging print level 1 - logging print file basename last - logging level set-all debug -log gsmtap 172.18.34.203 - logging level set-all debug - logging filter all 1 -line vty - no login - bind 0.0.0.0 -ctrl - bind 0.0.0.0 -pfcp - local-addr 172.18.34.20 -gtp - mockup -nft - mockup