diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-12-15 12:09:32 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-12-15 14:19:10 +0100 |
commit | cfe2c962a7a03220099bbe965b444226587da2be (patch) | |
tree | 94bc8856c6f083cd044bbd598b291318c058a291 /bsc | |
parent | cc7e4dc40e688b0e51035727030e20522b71d597 (diff) |
BSC_Tests: Add TC_outbound_connect to test if BSC rejects inbound SCCP connections
Change-Id: Ie9087df9ff9b48c8be242b1ae66cbca936b07121
Diffstat (limited to 'bsc')
-rw-r--r-- | bsc/BSC_Tests.ttcn | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn index 090ed0c3..41e3a84a 100644 --- a/bsc/BSC_Tests.ttcn +++ b/bsc/BSC_Tests.ttcn @@ -381,6 +381,20 @@ testcase TC_chan_exhaustion() runs on test_CT { } } +/*********************************************************************** + * Assignment Testing + ***********************************************************************/ + +/* Verify that the BSC refuses any BSSAP connection from the MSC (They are all BSC->MSC direction) */ +testcase TC_outbound_connect() runs on test_CT { + f_init(); + f_bssap_reset(); + + BSSAP.send(ts_BSSAP_CONNECT_req(g_sccp_addr_peer, g_sccp_addr_own, 2342, ts_BSSMAP_AssignmentReq)); + BSSAP.receive(tr_BSSAP_DISC_ind(2342, ?, ?)); + setverdict(pass); +} + /* Test behavior if MSC answers with CREF to CR */ testcase TC_assignment_cic_only() runs on test_CT { var BSSAP_N_CONNECT_ind rx_c_ind; @@ -1110,6 +1124,7 @@ control { execute( TC_chan_rel_hard_rlsd() ); execute( TC_chan_rel_a_reset() ); + execute( TC_outbound_connect() ); execute( TC_assignment_cic_only() ); execute( TC_rll_est_ind_inact_lchan() ); |