neels has uploaded this change for review.
add ttcn3-hnbgw-test-pfcp
Add a new test suite, running osmo-hnbgw with PFCP enabled. Just run all
the same tests again, no matter if they are related to PS RAB Assignment
or not, to also ensure no ill side effects from PFCP configuration.
Related: SYS#5895
Depends: I511e758807e0512c18f3f9e0a8c4699b9a3f5992 (osmo-ttcn3-hacks)
Change-Id: I02b60941343000a4618e95f56326bec170c32bfe
---
A ttcn3-hnbgw-test-pfcp/Dockerfile
A ttcn3-hnbgw-test-pfcp/HNBGW_Tests.cfg
A ttcn3-hnbgw-test-pfcp/Makefile
A ttcn3-hnbgw-test-pfcp/jenkins.sh
A ttcn3-hnbgw-test-pfcp/osmo-hnbgw.cfg
A ttcn3-hnbgw-test-pfcp/osmo-stp.cfg
6 files changed, 228 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/39/29339/1
diff --git a/ttcn3-hnbgw-test-pfcp/Dockerfile b/ttcn3-hnbgw-test-pfcp/Dockerfile
new file mode 100644
index 0000000..4dd0d1b
--- /dev/null
+++ b/ttcn3-hnbgw-test-pfcp/Dockerfile
@@ -0,0 +1,13 @@
+ARG REGISTRY
+ARG USER
+FROM $REGISTRY/$USER/debian-bullseye-titan
+ARG OSMO_TTCN3_BRANCH="master"
+
+ADD http://git.osmocom.org/osmo-ttcn3-hacks/patch?h=$OSMO_TTCN3_BRANCH /tmp/commit
+RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" hnbgw
+
+VOLUME /data
+
+COPY HNBGW_Tests.cfg /data/HNBGW_Tests.cfg
+
+CMD ttcn3-docker-run hnbgw HNBGW_Tests
diff --git a/ttcn3-hnbgw-test-pfcp/HNBGW_Tests.cfg b/ttcn3-hnbgw-test-pfcp/HNBGW_Tests.cfg
new file mode 100644
index 0000000..d3ea553
--- /dev/null
+++ b/ttcn3-hnbgw-test-pfcp/HNBGW_Tests.cfg
@@ -0,0 +1,49 @@
+[ORDERED_INCLUDE]
+# Common configuration, shared between test suites
+"/osmo-ttcn3-hacks/Common.cfg"
+# testsuite specific configuration, not expected to change
+"/osmo-ttcn3-hacks/hnbgw/HNBGW_Tests.default"
+
+# Local configuration below
+
+[LOGGING]
+
+[TESTPORT_PARAMETERS]
+*.HNBGWVTY.CTRL_HOSTNAME := "172.18.35.20"
+
+[MODULE_PARAMETERS]
+HNBGW_Tests.mp_hnodeb_ip := "172.18.35.203";
+HNBGW_Tests.mp_hnbgw_ip := "172.18.35.20";
+HNBGW_Tests.mp_mgw_ip := "172.18.35.203";
+HNBGW_Tests.mp_msc_cfg := {
+ transport := RANAP_TRANSPORT_IuCS,
+ sccp_service_type := "mtp3_itu",
+ sctp_addr := { 23905, "172.18.35.203", 2905, "172.18.35.200" },
+ own_pc := 188, /* 0.23.4 first MSC emulation */
+ own_ssn := 142,
+ peer_pc := 189, /* 0.23.5 osmo-hnbgw */
+ peer_ssn := 142,
+ sio := '83'O,
+ rctx := 1
+};
+HNBGW_Tests.mp_sgsn_cfg := {
+ transport := RANAP_TRANSPORT_IuCS,
+ sccp_service_type := "mtp3_itu",
+ sctp_addr := { 23906, "172.18.35.203", 2905, "172.18.35.200" },
+ own_pc := 185, /* 0.23.1 first SGSN emulation */
+ own_ssn := 142,
+ peer_pc := 189, /* 0.23.5 osmo-hnbgw */
+ peer_ssn := 142,
+ sio := '83'O,
+ rctx := 2
+};
+
+HNBGW_Tests.mp_enable_pfcp_tests := true;
+HNBGW_Tests.mp_pfcp_ip_local := "172.18.35.203";
+HNBGW_Tests.mp_pfcp_ip_remote := "172.18.35.20";
+
+
+[MAIN_CONTROLLER]
+
+[EXECUTE]
+HNBGW_Tests.control
diff --git a/ttcn3-hnbgw-test-pfcp/Makefile b/ttcn3-hnbgw-test-pfcp/Makefile
new file mode 100644
index 0000000..1fcab4f
--- /dev/null
+++ b/ttcn3-hnbgw-test-pfcp/Makefile
@@ -0,0 +1,3 @@
+RUN_ARGS?=-it --sysctl net.ipv6.conf.all.disable_ipv6=0 --network sigtran --ip 172.18.35.203 -v ggsn-test-vol:/data
+
+include ../make/Makefile
diff --git a/ttcn3-hnbgw-test-pfcp/jenkins.sh b/ttcn3-hnbgw-test-pfcp/jenkins.sh
new file mode 100755
index 0000000..71a4dc6
--- /dev/null
+++ b/ttcn3-hnbgw-test-pfcp/jenkins.sh
@@ -0,0 +1,62 @@
+#!/bin/sh
+
+. ../jenkins-common.sh
+IMAGE_SUFFIX="${IMAGE_SUFFIX:-master}"
+docker_images_require \
+ "osmo-stp-$IMAGE_SUFFIX" \
+ "osmo-hnbgw-$IMAGE_SUFFIX" \
+ "ttcn3-hnbgw-test"
+
+set_clean_up_trap
+set -e
+
+mkdir $VOL_BASE_DIR/hnbgw-tester
+mkdir $VOL_BASE_DIR/hnbgw-tester/unix
+cp HNBGW_Tests.cfg $VOL_BASE_DIR/hnbgw-tester/
+write_mp_osmo_repo "$VOL_BASE_DIR/hnbgw-tester/HNBGW_Tests.cfg"
+
+mkdir $VOL_BASE_DIR/stp
+cp osmo-stp.cfg $VOL_BASE_DIR/stp/
+
+mkdir $VOL_BASE_DIR/hnbgw
+mkdir $VOL_BASE_DIR/hnbgw/unix
+cp osmo-hnbgw.cfg $VOL_BASE_DIR/hnbgw/
+
+mkdir $VOL_BASE_DIR/unix
+
+SUBNET=35
+network_create $SUBNET
+
+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 HNBGW
+docker run --rm \
+ $(docker_network_params $SUBNET 20) \
+ --ulimit core=-1 \
+ -v $VOL_BASE_DIR/hnbgw:/data \
+ -v $VOL_BASE_DIR/unix:/data/unix \
+ --name ${BUILD_TAG}-hnbgw -d \
+ $DOCKER_ARGS \
+ $REPO_USER/osmo-hnbgw-$IMAGE_SUFFIX
+
+echo Starting container with HNBGW testsuite
+docker run --rm \
+ $(docker_network_params $SUBNET 203) \
+ --ulimit core=-1 \
+ -e "TTCN3_PCAP_PATH=/data" \
+ -v $VOL_BASE_DIR/hnbgw-tester:/data \
+ -v $VOL_BASE_DIR/unix:/data/unix \
+ --name ${BUILD_TAG}-ttcn3-hnbgw-test \
+ $DOCKER_ARGS \
+ $REPO_USER/ttcn3-hnbgw-test
+
+echo Stopping containers
+docker container kill ${BUILD_TAG}-hnbgw
+docker container kill ${BUILD_TAG}-stp
diff --git a/ttcn3-hnbgw-test-pfcp/osmo-hnbgw.cfg b/ttcn3-hnbgw-test-pfcp/osmo-hnbgw.cfg
new file mode 100644
index 0000000..0ba0afc
--- /dev/null
+++ b/ttcn3-hnbgw-test-pfcp/osmo-hnbgw.cfg
@@ -0,0 +1,49 @@
+!
+! OsmoHNBGW (1.1.0) configuration saved from vty
+!!
+!
+log gsmtap 172.18.35.203
+ logging level set-all debug
+ logging filter all 1
+!
+log stderr
+ logging filter all 1
+ logging color 1
+ logging print category-hex 1
+ logging print category 1
+ logging print thread-id 0
+ logging print extended-timestamp 1
+ logging print file 1
+ 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.35.20
+ remote-ip 172.18.35.200
+ point-code 0.23.5
+ sccp-address msc
+ routing-indicator PC
+ point-code 0.23.4
+ sccp-address sgsn
+ routing-indicator PC
+ point-code 0.23.1
+hnbgw
+ log-prefix hnb-id
+ iuh
+ local-ip 172.18.35.20
+ local-port 29169
+ hnbap-allow-tmsi 1
+ iucs
+ remote-addr msc
+ iups
+ remote-addr sgsn
+ mgcp
+ mgw local-ip 172.18.35.20
+ mgw remote-ip 172.18.35.203
+ pfcp
+ remote-addr 172.18.35.203
+ local-addr 172.18.35.20
diff --git a/ttcn3-hnbgw-test-pfcp/osmo-stp.cfg b/ttcn3-hnbgw-test-pfcp/osmo-stp.cfg
new file mode 100644
index 0000000..76685eb
--- /dev/null
+++ b/ttcn3-hnbgw-test-pfcp/osmo-stp.cfg
@@ -0,0 +1,52 @@
+!
+! OsmoSTP (0.8.1) configuration saved from vty
+!!
+!
+log stderr
+ logging filter all 1
+ logging color 1
+ logging print category 1
+ logging timestamp 1
+ logging print extended-timestamp 1
+ 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 debug
+ logging level lsccp debug
+ logging level lsua debug
+ logging level lm3ua debug
+ logging level lmgcp notice
+!
+line vty
+ no login
+!
+cs7 instance 0
+ xua rkm routing-key-allocation dynamic-permitted
+ asp virt-msc0-0 23905 2905 m3ua
+ local-ip 172.18.35.200
+ remote-ip 172.18.35.203
+ as virt-msc0 m3ua
+ asp virt-msc0-0
+ routing-key 1 0.23.4
+ asp virt-sgsn0-0 23906 2905 m3ua
+ local-ip 172.18.35.200
+ remote-ip 172.18.35.203
+ as virt-sgsn0 m3ua
+ asp virt-sgsn0-0
+ routing-key 2 0.23.1
+
+
+ route-table system
+ update route 0.23.4 7.255.7 linkset virt-msc0
+ update route 0.23.1 7.255.7 linkset virt-sgsn0
+ listen m3ua 2905
+ accept-asp-connections dynamic-permitted
To view, visit change 29339. To unsubscribe, or for help writing mail filters, visit settings.