osmo-ttcn3-hacks/ggsn_tests
Stefan Sperling 23b45974ce detect VTY TELNET port connection failures (attempt #2)
Pass the CTRL_DETECT_CONNECTION_ESTABLISHMENT_RESULT parameter to
the TELNET port by default. This allows tests to make progress
into an error handling path if they are started while the osmo-*
program they want to connect on VTY is not running.

Observed with osmo-ggsn tests, where if the one test runs
into a VTY connection failure the subsequent test would get
stuck forever in a map() call on the VTY TELNET port.

Teach the function f_vty_wait_for_prompt() about connection
reports by the TELNET module. We may now receive an integer which
represents the socket file descriptor for the telnet connection.
This case was not handled by the previous change made in
commit cb111b21ab. As a result,
BSC tests started failing with "VTY Timeout for prompt" because
the alt-statement in f_vty_wait_for_prompt() would not progress
past the integer sitting on the VTY port's receive queue.

Change-Id: I56925f93af6c55e93f3f417099db135744da6a40
Related: OS#3149
2018-07-27 17:20:38 +02:00
..
GGSN_Tests.cfg remove *.default from [EXECUTE] in *.default files 2018-03-13 14:30:55 +01:00
GGSN_Tests.default detect VTY TELNET port connection failures (attempt #2) 2018-07-27 17:20:38 +02:00
GGSN_Tests.ttcn fix TC_pdp4_act_deact_with_separate_dns 2018-07-19 19:58:06 +02:00
README.md Add README.md file for several suites 2018-06-14 18:55:36 +02:00
expected-results.xml ggsn: Apply GPDU seqnum option to all APNs 2018-07-06 14:43:59 +00:00
gen_links.sh test GGSN support for optional GTP-U sequence numbers 2018-04-06 12:43:25 +00:00
regen_makefile.sh test GGSN support for optional GTP-U sequence numbers 2018-04-06 12:43:25 +00:00

README.md

GGSN_Tests.ttcn

  • external interfaces
    • Gp: GTP (emulates SGSN)
    • Gi: IP (emulates Internet)

{% dot ggsn_tests.svg digraph G { rankdir=LR; GGSN [label="GGSN\nosmo-ggsn",shape="box"]; ATS [label="ATS\nGGSN_Tests.ttcn"];

ATS -> GGSN [label="Gp (GTP)"]; GGSN -> ATS [label="Gi (IP)"]; ATS -> GGSN [label="VTY"]; } %}