ns: TC_sns_bss_change_weight_timeout: fix expected SNS_SIZE PDU

Allow to work with IPv4 and IPv6 endpoints and only expected known required
fields (e.g. NSEI and rst_flag).

Related: OS#5036
Change-Id: I60f669d7c8838d460a14c6604c4375a8d47f5149
This commit is contained in:
Alexander Couzens 2021-04-14 19:39:18 +02:00
parent 7dad608cdc
commit a93cc364a8
1 changed files with 10 additions and 2 deletions

View File

@ -517,8 +517,16 @@ testcase TC_sns_bss_change_weight_timeout() runs on RAW_Test_CT {
[] as_rx_alive_tx_ack();
}
f_ns_exp(tr_SNS_SIZE(g_nsconfig.nsei, rst_flag := true, max_nsvcs := 8,
num_v4 := 4, num_v6 := omit), 0);
if (nsvc_cfg.provider.ip.address_family == AF_INET) {
/* expect one single SNS-SIZE with RESET flag; 4x v4 EP; no v6 EP */
rx := f_ns_exp(tr_SNS_SIZE(g_nsconfig.nsei, rst_flag := true, max_nsvcs := ?,
num_v4 := ?, num_v6 := omit), 0);
} else {
/* expect one single SNS-SIZE with RESET flag; no v4 EP; 4x v6 EP */
rx := f_ns_exp(tr_SNS_SIZE(g_nsconfig.nsei, rst_flag := true, max_nsvcs := ?,
num_v4 := omit, num_v6 := ?), 0);
}
setverdict(pass);
f_clean_ns_codec();
}