ttcn3-ns-test-sgsn-sns: add test run for ns sgsn role with sns
Change-Id: I1a9205885d381c04141dad752de0b39d9268ab69changes/74/25374/1
parent
51881eb9ce
commit
4daf8dd53d
|
@ -0,0 +1 @@
|
|||
../ttcn3-ns-test/jenkins-sgsn-sns.sh
|
|
@ -0,0 +1 @@
|
|||
../ttcn3-ns-test/sgsn-sns/
|
|
@ -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=32
|
||||
network_create $SUBNET
|
||||
|
||||
mkdir $VOL_BASE_DIR/ns-tester
|
||||
cp sgsn-sns/NS_Tests.cfg $VOL_BASE_DIR/ns-tester/
|
||||
|
||||
mkdir $VOL_BASE_DIR/ns
|
||||
cp sgsn-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-sgsn-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-sgsn-sns \
|
||||
$DOCKER_ARGS \
|
||||
$REPO_USER/ttcn3-ns-test
|
|
@ -0,0 +1,46 @@
|
|||
[ORDERED_INCLUDE]
|
||||
"/osmo-ttcn3-hacks/Common.cfg"
|
||||
"/osmo-ttcn3-hacks/ns/NS_Tests.default"
|
||||
|
||||
[LOGGING]
|
||||
|
||||
[TESTPORT_PARAMETERS]
|
||||
*.NSVTY.CTRL_HOSTNAME := "172.18.32.101"
|
||||
|
||||
[MODULE_PARAMETERS]
|
||||
NS_Tests.mp_nsconfig := {
|
||||
nsei := 1234,
|
||||
nsvc := {
|
||||
{
|
||||
provider := {
|
||||
ip := {
|
||||
address_family := AF_INET,
|
||||
local_ip := "172.18.32.10",
|
||||
local_udp_port := 22000,
|
||||
remote_ip := "172.18.32.101",
|
||||
remote_udp_port := 23000
|
||||
}
|
||||
},
|
||||
nsvci := 1234
|
||||
},
|
||||
{
|
||||
provider := {
|
||||
ip := {
|
||||
address_family := AF_INET,
|
||||
local_ip := "172.18.32.10",
|
||||
local_udp_port := 22000,
|
||||
remote_ip := "172.18.32.101",
|
||||
remote_udp_port := 23001
|
||||
}
|
||||
},
|
||||
nsvci := 1235
|
||||
}
|
||||
}
|
||||
}
|
||||
NS_Tests.mp_dialect := NS2_DIALECT_SNS
|
||||
NS_Tests.mp_sns_role := SNS_ROLE_SGSN
|
||||
|
||||
[MAIN_CONTROLLER]
|
||||
|
||||
[EXECUTE]
|
||||
NS_Tests.control
|
|
@ -0,0 +1,100 @@
|
|||
!
|
||||
! 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.32.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.32.10
|
||||
remote-port 8125
|
||||
mtu 1024
|
||||
level subscriber
|
||||
prefix TTCN3
|
||||
flush-period 1
|
||||
enable
|
||||
stats interval 0
|
||||
!
|
||||
line vty
|
||||
no login
|
||||
bind 172.18.32.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.32.101 23000
|
||||
ip-sns signalling-weight 2 data-weight 2
|
||||
accept-ipaccess
|
||||
bind udp local2
|
||||
listen 172.18.32.101 23001
|
||||
ip-sns signalling-weight 1 data-weight 1
|
||||
accept-ipaccess
|
||||
nse 1234 ip-sns-role-sgsn
|
||||
ip-sns-bind local
|
||||
ip-sns-bind local2
|
Loading…
Reference in New Issue