neels has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/docker-playground/+/29357 )


Change subject: join ttcn3-hnbgw-test-pfcp
......................................................................

join ttcn3-hnbgw-test-pfcp

Change-Id: Id0f8a01f108e39ea7d0617132d05614770e86880
---
M ttcn3-hnbgw-test/jenkins.sh
A ttcn3-hnbgw-test/with-pfcp/HNBGW_Tests.cfg
A ttcn3-hnbgw-test/with-pfcp/osmo-hnbgw.cfg
3 files changed, 155 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/docker-playground 
refs/changes/57/29357/1

diff --git a/ttcn3-hnbgw-test/jenkins.sh b/ttcn3-hnbgw-test/jenkins.sh
index 71a4dc6..f04a2ca 100755
--- a/ttcn3-hnbgw-test/jenkins.sh
+++ b/ttcn3-hnbgw-test/jenkins.sh
@@ -57,6 +57,59 @@
                $DOCKER_ARGS \
                $REPO_USER/ttcn3-hnbgw-test

+echo Running HNBGW_Tests with PFCP enabled...
+
 echo Stopping containers
 docker container kill ${BUILD_TAG}-hnbgw
 docker container kill ${BUILD_TAG}-stp
+
+echo Restarting containers for: with-pfcp
+
+VOL_BASE_DIR_PFCP="$VOL_BASE_DIR_PFCP/with-pfcp"
+mkdir $VOL_BASE_DIR_PFCP/hnbgw-tester/unix
+cp with-pfcp/HNBGW_Tests.cfg $VOL_BASE_DIR_PFCP/hnbgw-tester/
+write_mp_osmo_repo "$VOL_BASE_DIR_PFCP/hnbgw-tester/HNBGW_Tests.cfg"
+
+mkdir $VOL_BASE_DIR_PFCP/stp
+cp osmo-stp.cfg $VOL_BASE_DIR_PFCP/stp/
+
+mkdir $VOL_BASE_DIR_PFCP/hnbgw
+mkdir $VOL_BASE_DIR_PFCP/hnbgw/unix
+cp with-pfcp/osmo-hnbgw.cfg $VOL_BASE_DIR/hnbgw/
+
+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_PFCP/hnbgw:/data \
+               -v $VOL_BASE_DIR_PFCP/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_PFCP/hnbgw-tester:/data \
+               -v $VOL_BASE_DIR_PFCP/unix:/data/unix \
+               --name ${BUILD_TAG}-ttcn3-hnbgw-test \
+               $DOCKER_ARGS \
+               $REPO_USER/ttcn3-hnbgw-test
+
+docker container kill ${BUILD_TAG}-hnbgw
+docker container kill ${BUILD_TAG}-stp
+
+# Make jenkins results show ':with-pfcp': append ':with-pfcp' to the jenkins 
results classnames
+sed -i "s/classname='\([^']\+\)'/classname='\1:with-pfcp'/g" \
+           $VOL_BASE_DIR_PFCP/hnbgw-tester/junit-xml-*.log
diff --git a/ttcn3-hnbgw-test/with-pfcp/HNBGW_Tests.cfg 
b/ttcn3-hnbgw-test/with-pfcp/HNBGW_Tests.cfg
new file mode 100644
index 0000000..d3ea553
--- /dev/null
+++ b/ttcn3-hnbgw-test/with-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/with-pfcp/osmo-hnbgw.cfg 
b/ttcn3-hnbgw-test/with-pfcp/osmo-hnbgw.cfg
new file mode 100644
index 0000000..ce8e673
--- /dev/null
+++ b/ttcn3-hnbgw-test/with-pfcp/osmo-hnbgw.cfg
@@ -0,0 +1,53 @@
+!
+! 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
+  # so far HNBGW_Tests.ttcn does not heed the port an Assoc Setup Req came 
from, it always responds to port 8805
+  local-port 8805
+ # send PFCP Assoc Setup Req more often
+ timer pfcp x26 5

--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/29357
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: Id0f8a01f108e39ea7d0617132d05614770e86880
Gerrit-Change-Number: 29357
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofm...@sysmocom.de>
Gerrit-MessageType: newchange

Reply via email to