aboutsummaryrefslogtreecommitdiffstats
path: root/stp/STP_Tests_M3UA.ttcn
diff options
context:
space:
mode:
Diffstat (limited to 'stp/STP_Tests_M3UA.ttcn')
-rw-r--r--stp/STP_Tests_M3UA.ttcn16
1 files changed, 14 insertions, 2 deletions
diff --git a/stp/STP_Tests_M3UA.ttcn b/stp/STP_Tests_M3UA.ttcn
index dfa82a22..0bc398d5 100644
--- a/stp/STP_Tests_M3UA.ttcn
+++ b/stp/STP_Tests_M3UA.ttcn
@@ -615,11 +615,23 @@ testcase TC_rkm_unreg_invalid() runs on RAW_M3UA_CT {
f_clear_m3ua();
}
-/* try to de-register a routing key that was registered -> OK*/
+/* try to de-register a routing key that was registered -> OK */
testcase TC_rkm_unreg_registered() runs on RAW_M3UA_CT {
+ var OCT3 dpc := int2oct(123, 3);
+ var OCT4 rctx := int2oct(1234, 4);
+
+ f_init_common();
+ f_vty_config2(VTY, {"cs7 instance 0"}, "xua rkm routing-key-allocation dynamic-permitted");
f_init_m3ua();
- f_M3UA_send(0, ts_M3UA_DEREG_REQ(ts_M3UA_routing_ctx(int2oct(mp_m3ua_configs[0].routing_ctx,4))));
+
+ /* first register the routing key */
+ f_M3UA_rkm_register(id:='30000099'O, dpc:=dpc, rctx:=rctx);
+
+ /* then try to de-register */
+ f_M3UA_send(0, ts_M3UA_DEREG_REQ(ts_M3UA_routing_ctx(rctx)));
f_M3UA_exp(0, tr_M3UA_DEREG_RSP({tr_M3UA_dereg_res(?,c_m3UA_DEREGSTS_SUCCESS)}));
+
+ f_vty_config2(VTY, {"cs7 instance 0"}, "xua rkm routing-key-allocation static-only");
f_clear_m3ua();
}