osmo-ttcn3-hacks/bsc
Pau Espin af0c61e06d bsc: Fix TC_rsl_drop_counter due to IPA_Emulation component being alive-type
IPA_Emulation component was marked with the "alive" type recently, in
order to avoid race conditions leading to errors during tear down of the
test.

It turns out, the way "alive" keeps the component alive is by means of
not closing the sockets when the component is stopped. As a result,
TC_rsl_drop_counter test stopped working properly because it was
specting a TCP FIN to be sent to osmo-bsc when the component was
stopped.

In order to fix it, add a new CFG port to the IPA_Emulation component on
which one can operate. Add a a new method to tell the component to close
the socket.

Then, put that in BSC_Tests into a function which was actually unsued
until now, and use it in the test in order to have the specific logic
enclosed in a function helper.

Fixes: 7138913d66
Change-Id: I68163b053313d9907ba8e40954a5933d14cb7db6
2022-01-12 11:15:24 +01:00
..
BSC_Tests.cfg BSC_Tests.cfg: also execute LCLS test cases 2021-12-13 16:17:45 +00:00
BSC_Tests.default StatsD_Checker: Enable by default 2021-02-26 12:42:35 +01:00
BSC_Tests.ttcn bsc: Fix TC_rsl_drop_counter due to IPA_Emulation component being alive-type 2022-01-12 11:15:24 +01:00
BSC_Tests_CBSP.ttcn BSC_Tests_CBSP: use proper default values for mp_cbc_ip / mp_cbc_ip6 2021-12-13 16:17:45 +00:00
BSC_Tests_LCLS.ttcn library/RSL_Types: use OCT4 for local/remote address fields 2021-07-05 12:09:07 +00:00
BSC_Tests_VAMOS.cfg bsc-VAMOS: add cfg files to run BSC_Tests_VAMOS locally 2021-06-05 20:24:35 +00:00
BSC_Tests_VAMOS.ttcn library/RSL_Types: use OCT4 for local/remote address fields 2021-07-05 12:09:07 +00:00
MSC_ConnectionHandler.ttcn bsc: f_create_chan_and_exp(): ensure that SCCP connection is up 2021-12-07 07:38:33 +00:00
README.md bsc: Add statsd checker and use it in TC_assignment_sign 2020-08-13 15:02:15 +00:00
README.txt bsc: add TC_stats_conn_fail 2021-08-27 08:24:23 +00:00
expected-results.xml bsc: Test tch allocation if sdcch exhausted 2021-07-23 16:45:27 +02:00
gen_links.sh bsc: Add Lb interface support 2020-10-13 08:43:10 +00:00
osmo-bsc-vamos.cfg bsc/osmo-bsc-vamos.cfg: sync logging config with osmo-bsc.cfg 2021-12-14 12:59:04 +00:00
osmo-bsc.cfg bsc/osmo-{bsc,stp}.cfg: enable extended timestamp in logging 2021-12-14 12:59:04 +00:00
osmo-stp.cfg bsc/osmo-{bsc,stp}.cfg: enable extended timestamp in logging 2021-12-14 12:59:04 +00:00
regen_makefile.sh regen_makefile.sh: set executable name explicitly 2021-10-13 11:12:22 +02:00

README.md

BSC_Tests.ttcn

  • external interfaces
    • A-bis side: RSL (emulates BTS-side client) (OML handled by osmo-bts-omldummy)
    • A-side (emulates MSC-side)
      • BSSAP/SCCP/M3UA (AoIP)
      • BSSAP/SCCP/IPA (SCCPLite)
    • MGW side: MGCP (emulates MGW side)
    • VTY
    • CTRL
    • StatsD

{% dot bsc_tests.svg digraph G { graph [label="AoIP", labelloc=t, fontsize=30]; rankdir=LR; { rank=same; BTS; STP; }; BSC [label="IUT\nosmo-bsc",shape="box"]; ATS [label="ATS\nBSC_Tests.ttcn"]; BTS [label="osmo-bts-omldummy\nOML only"];

BTS -> BSC [label="A-bis OML"]; ATS -> BSC [label="A-bis RSL"]; ATS -> BSC [label="CTRL"]; ATS -> BSC [label="VTY"]; BSC -> ATS [label="StatsD"]; ATS -> STP [label="A BSSAP\nSCCP/M3UA"]; BSC -> STP [label="A BSSAP\nSCCP/M3UA"]; } %}

{% dot bsc_tests_sccplite.svg digraph G { graph [label="SCCPLite", labelloc=t, fontsize=30]; rankdir=LR; BSC [label="IUT\nosmo-bsc",shape="box"]; ATS [label="ATS\nBSC_Tests.ttcn"]; BTS [label="osmo-bts-omldummy\nOML only"];

BTS -> BSC [label="A-bis OML"]; ATS -> BSC [label="A-bis RSL"]; ATS -> BSC [label="CTRL"]; ATS -> BSC [label="VTY"]; BSC -> ATS [label="StatsD"]; ATS -> BSC [label="A BSSAP\nSCCP/IPA"]; } %}