Commit Graph

31 Commits

Author SHA1 Message Date
Pau Espin a8cc0d4db0 cbc: Add expected-results.xml
Change-Id: I9bf2c513a30c943bf87b47154a10147dc49c3d02
2022-08-05 22:31:33 +02:00
Pau Espin e71951343f cbc: Introduce test TC_cell_failure_restart_active_{cbc,mme}
These tests are currently failing since osmo-cbc doesn't support
reloading cells yet.

Related: OS#5641
Change-Id: I7b1c5275eff56888268601b481e8f8c1dd1bb1b0
2022-08-05 22:31:33 +02:00
Pau Espin 45ef775232 cbc: Introduce test TC_cell_failure_restart_idle_mme
Related: OS#4945
Change-Id: Ie0ab3d4fbe1d9a824b1f69ceacbf7dfd4f0d9728
2022-08-05 22:31:33 +02:00
Pau Espin 715d678033 cbc: Introduce test TC_cell_failure_restart_idle_bsc
Change-Id: Ia868bf739c29d5b4548bbd1417c352ee6400f501
2022-08-05 22:31:33 +02:00
Pau Espin 9c979d5397 cbc: BCS_ConnHdlr: avoid handling received RESTART messages
CBSP RESTART messages are only sen BSC->CBS direction, so it makes no
sense to activate the receival of RESTART messages in the BSC emulation.

Change-Id: I40e78ff4d980050a6142226a7eb9589f2d15e5bd
2022-08-05 22:31:33 +02:00
Pau Espin 6b3e8e34c4 cbc: Introduce test TC_create_nack_mme
Related: OS#4945
Change-Id: I4589af1ddfac4c6e5bbd99e68ebc4b8dc2d5eb36
2022-08-05 22:31:26 +02:00
Pau Espin 6dd5a0f829 cbc: Introduce test TC_create_nack_bsc
Related: OS#4945
Change-Id: Iabeb3e9d86eaf59b76504edf3976a947ae29b911
2022-08-05 22:30:37 +02:00
Pau Espin 855c56c446 cbc: remove unneded template local var
Change-Id: I31f751f5c61de545d038d9e63e01188c3ae5f161
2022-08-05 20:29:24 +00:00
Pau Espin e7d3d99293 cbc: Test ETWS msg over SBc-AP
So far only non-emergency CBS messages were tested, which require a
slighlty idfferent encoding on the protocol side.

Related: OS#4945
Change-Id: I506322fc8a664716db8cd79217c2091b0b926836
2022-08-05 20:29:24 +00:00
Pau Espin ad5d2dbd47 cbc: Test ETWS msg over CBSP
So far only non-emergency CBS messages were tested, which require a
slighlty idfferent encoding on the protocol side.

Related: OS#4945
Change-Id: Ie22a00120218a205db11a5622274dcc67435f5de
2022-08-05 20:29:24 +00:00
Pau Espin a5536b697d cbc: test concurrent CBS message
Test having more than one active CBS message being broadcasted to an
MME.

Related: OS#4945
Change-Id: Ie9208c33f3b2586e19b446318b6ae9da07a76506
2022-08-04 13:32:39 +02:00
Pau Espin b1a83fbb6d cbc: Test sending Unknown TAI List to osmo-cbc
Related: OS#4945
Change-Id: I7d8cf5e6498d03ad340b8f843ce93a20171e9fca
2022-08-04 13:32:32 +02:00
Pau Espin db247f8318 cbc: Support mme/bsc sctp/tcp server mode
Related: OS#4945
Change-Id: I9fa4ddfa18ac85644f219874e6b2166e1795e3a9
2022-08-02 11:50:54 +02:00
Pau Espin 7e45128ec0 cbc: Add Tguard
Change-Id: I92b0a2ec931cefed34a33bd90cbc5c97d0aec540
2022-08-02 08:37:16 +00:00
Pau Espin ae2e51557f cbc: Send Write-Replace-Warn-Ind after ACKing the request
This way we can test how does osmo-cbc behave when receiving such
message.

Related: OS#4945
Change-Id: Ifcdcddc7dccb5439126a5fa29bb540669ed25908
2022-08-02 08:37:16 +00:00
Pau Espin e14c2087cf cbc: Change default cbsp/sbcap ports to allow multiple bsc/mme
The BSC/MMEs ports are applied in osmo-cbc.cfg similarly in sequential
order.

Change-Id: Ib443aba9396aebe0a56b1a79719bbcf66302a1aa
2022-08-02 08:37:16 +00:00
Pau Espin 1976346cb7 cbc: Enable MMEs and BSCs selectively
Let's only create BSC handlers (no MM handlers) in tests validating CBSP
specific features.
A new test is added to specifically validate scenarios with both an MME
and BSC attached to the CBC.

Change-Id: I79ee41f183ef49e9fd606d2a3efa2767628bf142
2022-08-02 08:37:16 +00:00
Pau Espin 3dfa807769 cbc: Fix use of incorrect variable in loop
This went unnoticed before because all tests were running with both bsc
and mme set to 1.

Change-Id: I978c92819cb4e218c95bc719ade71787dc474b23
2022-07-29 16:29:55 +02:00
Pau Espin 4ff118a230 cbc: Handle each CBSP and SBc-AP on a separate component
* Each BSC_ConnectionHandler emulates a BSC and handles one TCP/CBSP
  conn.
* Each MME_ConectionHandler emulates an MME and handles one SCTP/SBc-AP
  conn.
* ECBE related functionalities are moved to its own file
  ECBE_Components.ttcn.
* CBS_Message is moved to its own file since it is used by all modules.

Related: OS#4945
Change-Id: Ia0300a2ae69bdf604373dbc484537958413c79a2
2022-07-29 13:04:36 +00:00
Pau Espin e736981121 cbc: Fix f_sbcap_tx_write_replace_warn_resp()
The line was wrongly removed when pushing a new version of the patch for
review submission.

Fixes: 7c13cb7e0f
Change-Id: If99ff5b83e8f0c577e60e0406b001a3753213deb
2022-07-20 18:17:05 +02:00
Pau Espin 7c13cb7e0f Support for SBc-AP protocol as used on the MME-CBC interface
This requires a recent libfftranscode (>=0.5) with SBC-AP support.

The asn files are obtained from 3GPP TS 29.168.

Related: osmo-cbc.git Ib278bc1d1a74459814016fef7a8fe21cc29d46c9
Related: docker-playground.git 5f3c78105836d1f2c229655df3f537a73ab6e12a
Change-Id: Ia6743e0a3e7974a5f2dd3ecf74ec331f646f6bc2
Related: OS#4945
2022-07-18 11:20:14 +02:00
Pau Espin ac71dbb1e5 cbc: Refactor and split f_cbsp_write()
Change-Id: I827fad869c6ca5ce80dd39d30c2e3393b2394217
2022-07-08 17:14:45 +02:00
Pau Espin 9d8b6bf717 cbc: Introduce f_shutdown_helper() and call it in every test
Change-Id: I95e6f8a5a5c35d35662950e1105bdb17d2ca00de
2022-06-23 18:34:27 +07:00
Pau Espin 07746ad99e cbc: Improve CBSP port configuration
Previous -1 was taken by TTCN3 as default port (9999). Let's keep it
excplictly as 9999 by default to avoid changing docker-playground.git.

Change-Id: Ia7c599faa2101180089085c6cf5d483d2325ecac
2022-06-17 20:28:22 +00:00
Pau Espin f2c701df80 cbc: Fix trailing whitespace
Change-Id: Ie54a6f6b9aea84ae1ec67ca34a34dd171f2e0177
2022-06-16 19:00:47 +02:00
Pau Espin 3cfb6c35c2 Move SABP_Selftest.ttcn under library/sabp
Same as we already have for RANAP.

Change-Id: If04d973a393153a7cd15429d036f60adeea4b5f9
2022-06-15 16:20:11 +02:00
Pau Espin 3caeebc95e Move all SABP files to library/sabp/
Let's have all SABP related stuff together in one subdir, not some under
the subdir and some directly under library/.

Change-Id: Ibfd0287194c87dcc240590e0835d6205ead194f9
2022-06-15 16:20:11 +02:00
Harald Welte c81236c08f cbc: Expect CBC to include Channel Indicator IE in CBSP KILL
This should be present for all KILL relating to CBS.

Change-Id: Id9f280158a0370134ec4a4ca9a977d884670b27e
Related: SYS#5906, OS#5540, OS#5541
2022-05-01 15:58:04 +00:00
Oliver Smith f8fe1329e2 regen_makefile.sh: set executable name explicitly
Set the executable name in each regen_makefile.sh explicitly with -e,
instead of having it set indirectly from the first .ttcn file. Make it
consistent by placing the name on top of each of these files.

Fix for warning:
ttcn3_makefilegen: warning: File `BSC_Tests.ttcn' was given more than once for the Makefile.

Related: OS#5252
Change-Id: I5ed03f8f3ed905483620dc7bae33b617bbb8507f
2021-10-13 11:12:22 +02:00
Oliver Smith 2e0e624060 regen_makefile.sh: files/flags in separate lines
Make all regen_makefile.sh more readable and diff friendly by moving
each entry in FILES and CPPFLAGS_TTCN3 into separate lines. Order
entries alphabetically.

Related: OS#5252
Change-Id: I6b6866eb9f6ec6232e4ae434517457a4c8c1c050
2021-10-12 16:35:01 +02:00
Harald Welte 08332307ea cbc: Initial set of CBC tess for osmo-cbc
osmo-cbc is the Osmocom cell broadcast centre.  So far, there was no
TTCN-3 test suite.  Let's change that.

Change-Id: I38286e8a3dd0f39bd25f631dcbb3ff4f8d4c221f
2021-02-22 10:41:29 +00:00