ns2: add first sgsn test case TC_sns_sgsn_config_success

Checks if the SGSN can success configures a SNS.

Change-Id: Ibacc2f6ad3053ff7b1e00054cabb9ec7010ffab2
changes/39/25139/3
Alexander Couzens 2 years ago
parent de3dfaafc6
commit 358c74c0ae
  1. 47
      ns/NS_Tests.sgsn.sns.cfg
  2. 14
      ns/NS_Tests.ttcn
  3. 99
      ns/osmo-ns.sgsn.sns.cfg

@ -0,0 +1,47 @@
[ORDERED_INCLUDE]
# Common configuration, shared between test suites
"../Common.cfg"
# testsuite specific configuration, not expected to change
"./NS_Tests.default"
[LOGGING]
[MODULE_PARAMETERS]
NS_Tests.mp_nsconfig := {
nsei := 1234,
nsvc := {
{
provider := {
ip := {
address_family := AF_INET,
local_ip := "127.0.0.1",
local_udp_port := 22000,
remote_ip := "127.0.0.1",
remote_udp_port := 23000
}
},
nsvci := 1234
},
{
provider := {
ip := {
address_family := AF_INET,
local_ip := "127.0.0.1",
local_udp_port := 22000,
remote_ip := "127.0.0.1",
remote_udp_port := 23001
}
},
nsvci := 1235
}
}
}
NS_Tests.mp_dialect := NS2_DIALECT_SNS
NS_Tests.mp_sns_role := SNS_ROLE_SGSN;
[TESTPORT_PARAMETERS]
[MAIN_CONTROLLER]
[EXECUTE]
NS_Tests.control

@ -698,6 +698,16 @@ testcase TC_idle() runs on RAW_Test_CT {
f_clean_ns_codec();
}
testcase TC_sns_sgsn_config_success() runs on RAW_Test_CT {
f_init_vty();
f_init_ns_codec(mp_nsconfig);
f_outgoing_sns_size();
f_outgoing_sns_config();
f_incoming_sns_config();
setverdict(pass);
f_clean_ns_codec();
}
control {
if (mp_dialect == NS2_DIALECT_STATIC_RESETBLOCK or mp_dialect == NS2_DIALECT_IPACCESS) {
execute( TC_tx_reset() );
@ -753,6 +763,10 @@ control {
execute( TC_sns_bss_all_signalling_nsvcs_failed() );
execute( TC_sns_rx_size_force_unconf() );
}
if (mp_sns_role == SNS_ROLE_SGSN) {
execute( TC_sns_sgsn_config_success() );
}
}
}

@ -0,0 +1,99 @@
!
! 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 lnssignal debug
logging level lbssgp debug
log gsmtap 127.0.0.1
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 lnssignal debug
logging level lbssgp debug
!
stats reporter statsd
disable
remote-ip 127.0.0.1
remote-port 8125
mtu 1024
level subscriber
prefix TTCN3
flush-period 1
enable
stats interval 0
!
line vty
no login
!
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 127.0.0.1 23000
ip-sns signalling-weight 2 data-weight 2
bind udp local2
listen 127.0.0.1 23001
ip-sns signalling-weight 1 data-weight 1
nse 1234 ip-sns-role-sgsn
ip-sns-bind local
ip-sns-bind local2
Loading…
Cancel
Save