Skip to content
Unstable

Changes

Summary

  1. SIP_Emulation: Allow forwarding ASP_SIP_close (details)
  2. asterisk: Introduce test TC_ims_call_mo_after_tcp_conn_closed (details)
  3. deps/Makefile: Update titan.TestPorts.SIPmsg to current master (details)
  4. testenv: support obtaining talloc reports (details)
  5. */testenv.cfg: add vty_port, vty_host (details)
  6. HTTP_Adapter: Rename s/g_pars/g_http_pars/ (details)
  7. Misc_Helpers: Introduce API helper f_str_startswith (details)
  8. Introduce Prometheus_Checker module (details)
  9. hss: Initial validation of Prometheus metrics (details)
  10. Introduce PCRF_Tests testsuite (details)
  11. pcrf: Validate Gx metrics (details)
  12. cosmetic: Fix same typo in comment in several files (details)
  13. lapdm: remove (details)
  14. upf: remove unused port PFCP from test_CT (details)
  15. hnbgw: move vc_PFCP from ConnHdlr to test_CT (details)
  16. library/PFCP_Emulation: look up by SeqNr and SEID separately (details)
  17. library/PFCP_Emulation: fix routing of incoming PDUs (details)
  18. library/PFCP_Emulation: allow retrieving the Recovery Time Stamp (details)
Commit 1d1b809a956bdb474afba8c0e8e2339d4cba1011 by Pau Espin Pedrol
SIP_Emulation: Allow forwarding ASP_SIP_close

This allows closing SIP connections at will from within the test.

Change-Id: If5c6bb0c0d773e0ba18ec28062663bdec751c8c4
The file was modifiedlibrary/SIP_Emulation.ttcn
Commit 4c4fccdf0dfac1ba763c745a7f109ab23a512906 by Pau Espin Pedrol
asterisk: Introduce test TC_ims_call_mo_after_tcp_conn_closed

Related: SYS#7067
Change-Id: I90df69b2418557d7001dddee4b6930ebbc58066d
The file was modifiedasterisk/expected-results.xml
The file was modifiedasterisk/IMS_ConnectionHandler.ttcn
The file was modifiedasterisk/Asterisk_Tests.ttcn
Commit cbed7a7f4130fe158e184f1ba318e10b0236ecee by Pau Espin Pedrol
deps/Makefile: Update titan.TestPorts.SIPmsg to current master

New HEAD contains 1 more commit which fixes a regression introduced in
previous version, which is needed in order to get
Asterisk_Tests.TC_ims_call_mo_after_tcp_conn_closed working fine.

Change-Id: I9962076666706bdb4f6319ddade53d5622236995
The file was modifieddeps/Makefile
Commit bcee2e6ff23e13699cf01fe0eeb8cae97b09a3ae by Oliver Smith
testenv: support obtaining talloc reports

Allow setting vty_port= and vty_host= (default: 127.0.0.1) for SUT
components in testenv.cfg. Pass the values as OSMO_SUT_PORT and
OSMO_SUT_HOST to the testsuite, so ttcn3-tcpdump-stop.sh generates
talloc reports after running test cases.

The next patch will add vty_port/vty_host to existing testenv.cfg files.

I have considered enabling the talloc report only conditionally (e.g.
with a --talloc-report parameter). But previous behavior in
docker-playground was also that we created them unconditionally where
OSMO_SUT_PORT/HOST was set, and they are generated almost instantly so
it did not seem necessary to make this conditionally.

Related: OS#6552
Change-Id: I50a7035f072668ca2ab65de1bc1f194da8b18610
The file was modified_testenv/testenv/testenv_cfg.py
The file was modified_testenv/README.md
The file was modified_testenv/testenv/testsuite.py
Commit aa4d036af481a5277acd1c298d2750bb01852f41 by Oliver Smith
*/testenv.cfg: add vty_port, vty_host

Add these variables, so a talloc report can be obtained after running
test cases.

Closes: OS#6552
Change-Id: I5c0305c5d2ac6ac79dcf01bed8fb9d5beeeb99a6
The file was modifiedcbc/testenv.cfg
The file was modifiedhnodeb/testenv.cfg
The file was modifiedsmlc/testenv.cfg
The file was modifiedmgw/testenv.cfg
The file was modifiedhlr/testenv.cfg
The file was modifiedsgsn/testenv_sns.cfg
The file was modifiedsgsn/testenv_generic.cfg
The file was modifiedsip/testenv.cfg
The file was modifiedupf/testenv.cfg
Commit 7324d47706d4c564acfd2e5ce2b702608791d81d by Pau Espin Pedrol
HTTP_Adapter: Rename s/g_pars/g_http_pars/

The HTTP_Adapter component is a probable candidate to end up as part of
another component extending it, like the Prometheus_Checker coming up
soon.
Since the fields in HTTP_Adapter are available to subclass components,
that means they cannot use the usual "g_pars".
Rename the self-enclosed "g_pars" in HTTP_Adapter to let subclasses use
it.

Change-Id: Ia07cf8717593073a71632e247d7fe0775e66eb13
The file was modifiedlibrary/HTTP_Adapter.ttcn
Commit c5c4961ea578692d07df43e3e8174e7d369bbe04 by Pau Espin Pedrol
Misc_Helpers: Introduce API helper f_str_startswith

Counterpart of f_str_endswith(), this API is usually available in
several programming languages like python, and it's handy to have since
it's usually used and hence dev doesn't need to think on how to
implement it using regexp, etc.

This API will be used in a follow-up patch implementing Prometheus
metrics checker module.

Change-Id: Iad392ac652714a54a25954ea697f082d55772aa8
The file was modifiedlibrary/Misc_Helpers.ttcn
Commit 6d8b8b6c27a926d466cdcc620366892ca74c4784 by Pau Espin Pedrol
Introduce Prometheus_Checker module

This module serves the same purpose as the existing StatsD_Checker.
It will be used in open5gs, which so far exports its metrics using
Prometheus.

Change-Id: Iec5544ba74978918f1bddba12971f69a1824683e
The file was addedlibrary/Prometheus_Checker.ttcn
Commit 5771875ca76ce65f0074cffdad3b872b6bafee53 by Pau Espin Pedrol
hss: Initial validation of Prometheus metrics

Requires open5gs b2f56b964133bbe2f6ab07ead4cb62524528fcf7 for HSS
diameter metrics.

Change-Id: I507537c66a031b67518294daa8338f3836a90d6b
The file was modifiedhss/open5gs-hss.yaml
The file was modifiedhss/HSS_Tests.default
The file was modifiedhss/gen_links.sh
The file was modifiedhss/regen_makefile.sh
The file was modifiedhss/HSS_Tests.ttcn
Commit e7d3cbac2329fa551daf1315eef0eb0039e63678 by Pau Espin Pedrol
Introduce PCRF_Tests testsuite

Change-Id: I381577111ccadaefe42f6abe3cd9bb30cc8ceb56
The file was addedpcrf/create_test_subscribers.sh
The file was addedpcrf/expected-results.xml
The file was addedpcrf/freediameter.conf
The file was addedpcrf/PCRF_Tests.default
The file was addedpcrf/gen_links.sh
The file was modifiedlibrary/DIAMETER_Templates.ttcn
The file was addedpcrf/PCRF_Tests.cfg
The file was modifiedMakefile
The file was modifiedlibrary/DIAMETER_ts29_212_Templates.ttcn
The file was addedpcrf/open5gs-pcrf.yaml
The file was addedpcrf/testenv.cfg
The file was addedpcrf/mongod.conf
The file was addedpcrf/regen_makefile.sh
The file was addedpcrf/PCRF_Tests.ttcn
Commit 04c681f3916f821cc6e2a9c9d143ca3b50dae545 by Pau Espin Pedrol
pcrf: Validate Gx metrics

Change-Id: I4eab93f14d45f291c391d9519dc1462508f8a1eb
The file was modifiedpcrf/PCRF_Tests.ttcn
Commit 7795249ef78eda7b6d15ce3a19e44c4f8a66bbfa by Pau Espin Pedrol
cosmetic: Fix same typo in comment in several files

Change-Id: Id59e09b0ac89251175ecee23e7f9d1a058644aa8
The file was modifiedpgw/PGW_Tests.ttcn
The file was modifiedhss/HSS_Tests.ttcn
The file was modifiedggsn_tests/GGSN_Tests.ttcn
Commit 48d4a3510b787753dea547ef2a246582e5fa4f3e by laforge
lapdm: remove

In the related patch, lapdm/L1CTL_Test.ttcn has been moved to
bts/BTS_Tests_LAPDm.ttcn. The remaining files in this directory are
unused. Remove them to unclutter the repository a bit.

Related: Ibbc967f0bd9a19ab4bbd17f612654d72cb32d571
Change-Id: I6aae060a5b252d3ab36378da8c721154b3186466
The file was removedlapdm/gen_links.sh
The file was removedlapdm/regen_makefile.sh
Commit 180cfb4f6f9e78d6da534af0df519ab192f69478 by laforge
upf: remove unused port PFCP from test_CT

Change-Id: Iba31a6aaa9a9ec854ba36956d1b853dcf66a804d
The file was modifiedupf/UPF_Tests.ttcn
Commit d13980f024e692222105a173930fb53559182b85 by laforge
hnbgw: move vc_PFCP from ConnHdlr to test_CT

A logical relation between the PFCP emulation component (acting as
the UP function) and its ConnHdlr components is one-to-many.  It's
unusual for the ConnHdlr components to have their own emulation
component, especially when a testcase spawns many of them.  This
renders the dispatch function of the PFCP emulation component useless.

The HNBGW testsuite, which is using the PFCP emulation, does not
spawn more than one ConnHdlr component, so there was no problem
with that so far.  Let's move the PFCP emulation to test_CT, in
order to allow spawning more than one ConnHdlr and to make the
component hierarchy less confusing.

Change-Id: Iaf7a54c674f2dc549572d918beb6f355f48ee700
The file was modifiedlibrary/PFCP_Emulation.ttcn
The file was modifiedhnbgw/HNBGW_Tests.ttcn
Commit 4512e7db1c59a1e605b8de97f17d8b2c2e6e5829 by laforge
library/PFCP_Emulation: look up by SeqNr and SEID separately

This allows routing of PFCP PDUs without SEID by SeqNr.
An example of such a PDU is the Heartbeat Request.

Change-Id: Ic7912d944e94852a587993708d51439ec90f08cd
The file was modifiedlibrary/PFCP_Emulation.ttcn
Commit 2962d17079f26e2d874e82fe019adab34088d270 by laforge
library/PFCP_Emulation: fix routing of incoming PDUs

Before this patch, the PFCP_Emulation component was unable to route
incoming PDUs properly.  The problem is that the SeqNr and SEID were
neither stored nor updated whem sending outgoing PDUs, and thus
remained unbound all the time.

Change-Id: I8e62471915ab9a917ac960d3078e89669b5ac0ea
The file was modifiedlibrary/PFCP_Emulation.ttcn
Commit fbb13fa0db9db46bd15192f83e4268783a04472f by laforge
library/PFCP_Emulation: allow retrieving the Recovery Time Stamp

The Recovery Time Stamp is a mandatory IE for some PDUs, such as:

* Heartbeat Request/Response
* PFCP Association Setup Request/Response

Allow the PFCP_ConnHdlr components to retrieve its value, so that
they can include it in outgoing (and expect in incoming) PDUs.

Change-Id: I23eb2b4e309460f93183df83cdd35e46a93fbb94
The file was modifiedlibrary/PFCP_Emulation.ttcn