ns: SNS: add bss change weight testcase
Do a normal SNS configuration. Afterwards the BSS will change
the weights of the endpoints
Change-Id: I691b9d26bf3eb8fa65aa02eba3efd0fd3869fc2a
diff --git a/ns/NS_Tests.ttcn b/ns/NS_Tests.ttcn
index e2ff114..8182a91 100644
--- a/ns/NS_Tests.ttcn
+++ b/ns/NS_Tests.ttcn
@@ -468,6 +468,19 @@
f_clean_ns_codec();
}
+testcase TC_sns_bss_change_weight() runs on RAW_Test_CT {
+ f_init_vty();
+ f_init_ns_codec(mp_nsconfig);
+ f_incoming_sns_size();
+ f_incoming_sns_config();
+ f_outgoing_sns_config();
+ activate(as_rx_alive_tx_ack());
+ f_vty_config2(NSVTY, {"ns", "bind udp local"}, "ip-sns signalling-weight 99 data-weight 99");
+ f_incoming_sns_chg_weight();
+ setverdict(pass);
+ f_clean_ns_codec();
+}
+
control {
if (mp_dialect == NS2_DIALECT_STATIC_RESETBLOCK or mp_dialect == NS2_DIALECT_IPACCESS) {
execute( TC_tx_reset() );
@@ -513,6 +526,7 @@
if (mp_dialect == NS2_DIALECT_SNS) {
execute( TC_sns_config_success() );
+ execute( TC_sns_bss_change_weight() );
}
}