Change in docker-playground[master]: Add ttcn3-ns-test-sns container

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Tue Mar 30 20:38:53 UTC 2021


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


Change subject: Add ttcn3-ns-test-sns container
......................................................................

Add ttcn3-ns-test-sns container

Change-Id: I8fc4f6453f04aa579762da9200900f25e78034c5
Related: OS#5396
---
A ttcn3-ns-test-sns/jenkins.sh
A ttcn3-ns-test-sns/sns
A ttcn3-ns-test/jenkins-sns.sh
A ttcn3-ns-test/sns/NS_Tests.cfg
A ttcn3-ns-test/sns/osmo-ns-dummy.cfg
5 files changed, 170 insertions(+), 0 deletions(-)



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

diff --git a/ttcn3-ns-test-sns/jenkins.sh b/ttcn3-ns-test-sns/jenkins.sh
new file mode 120000
index 0000000..eaf7ae2
--- /dev/null
+++ b/ttcn3-ns-test-sns/jenkins.sh
@@ -0,0 +1 @@
+../ttcn3-ns-test/jenkins-sns.sh
\ No newline at end of file
diff --git a/ttcn3-ns-test-sns/sns b/ttcn3-ns-test-sns/sns
new file mode 120000
index 0000000..5660c48
--- /dev/null
+++ b/ttcn3-ns-test-sns/sns
@@ -0,0 +1 @@
+../ttcn3-ns-test/sns
\ No newline at end of file
diff --git a/ttcn3-ns-test/jenkins-sns.sh b/ttcn3-ns-test/jenkins-sns.sh
new file mode 100755
index 0000000..7fb899e
--- /dev/null
+++ b/ttcn3-ns-test/jenkins-sns.sh
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+. ../jenkins-common.sh
+IMAGE_SUFFIX="${IMAGE_SUFFIX:-master}"
+docker_images_require \
+	"osmo-ns-$IMAGE_SUFFIX" \
+	"ttcn3-ns-test"
+
+set_clean_up_trap
+set -e
+
+SUBNET=29
+network_create $SUBNET
+
+mkdir $VOL_BASE_DIR/ns-tester
+cp sns/NS_Tests.cfg $VOL_BASE_DIR/ns-tester/
+
+mkdir $VOL_BASE_DIR/ns
+cp sns/osmo-ns-dummy.cfg $VOL_BASE_DIR/ns/
+
+echo Starting container with osmo-ns-dummy
+docker run	--rm \
+		$(docker_network_params $SUBNET 101) \
+		--ulimit core=-1 \
+		-v $VOL_BASE_DIR/ns:/data \
+		--name ${BUILD_TAG}-ns-sns -d \
+		$DOCKER_ARGS \
+		$REPO_USER/osmo-ns-$IMAGE_SUFFIX \
+		/bin/sh -c "/usr/local/bin/osmo-ns-dummy -c /data/osmo-ns-dummy.cfg -p 4240 >>/data/osmo-ns-dummy.log 2>&1"
+
+echo Starting container with NS testsuite
+docker run	--rm \
+		$(docker_network_params $SUBNET 10) \
+		--ulimit core=-1 \
+		-e "TTCN3_PCAP_PATH=/data" \
+		-v $VOL_BASE_DIR/ns-tester:/data \
+		--name ${BUILD_TAG}-ttcn3-ns-test-sns \
+		$DOCKER_ARGS \
+		$REPO_USER/ttcn3-ns-test
diff --git a/ttcn3-ns-test/sns/NS_Tests.cfg b/ttcn3-ns-test/sns/NS_Tests.cfg
new file mode 100644
index 0000000..bc3c870
--- /dev/null
+++ b/ttcn3-ns-test/sns/NS_Tests.cfg
@@ -0,0 +1,33 @@
+[ORDERED_INCLUDE]
+"/osmo-ttcn3-hacks/Common.cfg"
+"/osmo-ttcn3-hacks/ns/NS_Tests.default"
+
+[LOGGING]
+
+[TESTPORT_PARAMETERS]
+*.NSVTY.CTRL_HOSTNAME := "172.18.29.101"
+
+[MODULE_PARAMETERS]
+NS_Tests.mp_nsconfig := {
+	nsei := 1234,
+	nsvc := {
+		{
+			provider := {
+				ip := {
+					address_family := AF_INET,
+					local_ip := "172.18.29.10",
+					local_udp_port := 22000,
+					remote_ip := "172.18.29.101",
+					remote_udp_port := 23000
+				}
+			},
+			nsvci := 1234
+		}
+	}
+}
+NS_Tests.mp_dialect := NS2_DIALECT_SNS
+
+[MAIN_CONTROLLER]
+
+[EXECUTE]
+NS_Tests.control
diff --git a/ttcn3-ns-test/sns/osmo-ns-dummy.cfg b/ttcn3-ns-test/sns/osmo-ns-dummy.cfg
new file mode 100644
index 0000000..985aff3
--- /dev/null
+++ b/ttcn3-ns-test/sns/osmo-ns-dummy.cfg
@@ -0,0 +1,96 @@
+!
+! OsmoNSdummy (1.4.0.326-f57c-dirty) configuration saved from vty
+!!
+!
+log stderr
+ logging filter all 1
+ logging color 0
+ logging print category-hex 0
+ logging print category 1
+ logging print extended-timestamp 1
+ logging print level 1
+ logging print file basename
+ logging level force-all info
+ logging level lglobal debug
+ logging level llapd debug
+ logging level linp debug
+ logging level lmux debug
+ logging level lmi debug
+ logging level lmib debug
+ logging level lsms debug
+ logging level lctrl debug
+ logging level lgtp debug
+ logging level lstats debug
+ logging level lgsup debug
+ logging level loap debug
+ logging level lss7 debug
+ logging level lsccp debug
+ logging level lsua debug
+ logging level lm3ua debug
+ logging level lmgcp debug
+ logging level ljibuf debug
+ logging level lrspro debug
+ logging level lns debug
+ logging level lbssgp debug
+log gsmtap 172.18.29.10
+ logging filter all 0
+ logging color 1
+ logging print category-hex 1
+ logging print category 0
+ logging timestamp 0
+ logging print file 1
+ logging level lglobal debug
+ logging level llapd debug
+ logging level linp debug
+ logging level lmux debug
+ logging level lmi debug
+ logging level lmib debug
+ logging level lsms debug
+ logging level lctrl debug
+ logging level lgtp debug
+ logging level lstats debug
+ logging level lgsup debug
+ logging level loap debug
+ logging level lss7 debug
+ logging level lsccp debug
+ logging level lsua debug
+ logging level lm3ua debug
+ logging level lmgcp debug
+ logging level ljibuf debug
+ logging level lrspro debug
+ logging level lns debug
+ logging level lbssgp debug
+!
+stats reporter statsd
+  disable
+  remote-ip 172.18.29.10
+  remote-port 8125
+  mtu 1024
+  level subscriber
+  prefix TTCN3
+  flush-period 1
+  enable
+stats interval 0
+!
+line vty
+ no login
+ bind 172.18.29.101
+!
+ns
+ timer tns-block 3
+ timer tns-block-retries 3
+ timer tns-reset 3
+ timer tns-reset-retries 3
+ timer tns-test 12
+ timer tns-alive 3
+ timer tns-alive-retries 3
+ timer tsns-prov 3
+ timer tsns-size-retries 3
+ timer tsns-config-retries 3
+ bind udp local
+  listen 172.18.29.101 23000
+  accept-ipaccess
+  ip-sns signalling-weight 2 data-weight 2
+ nse 1234
+  ip-sns-remote 172.18.29.10 22000
+  ip-sns-bind local

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

Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I8fc4f6453f04aa579762da9200900f25e78034c5
Gerrit-Change-Number: 23559
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210330/ab38caab/attachment.htm>


More information about the gerrit-log mailing list