Commit Graph

10 Commits

Author SHA1 Message Date
Harald Welte 7c083af2d2 remsim: server: TC_connect_{client,bankd}_duplicate
Add two new tests for the remsim-server, which simulate what happens
if a client or bankd with identical ID connects twice.  We expect
the second connection to get rejected at RSPRO level, and to be closed.

Change-Id: I29023f6b5ba430338c77bf01508c81bd6d8c99fa
Ralated: OS#5527
2022-05-04 10:08:44 +00:00
Vadim Yanitskiy 0df27dc669 remsim: add the guard timeout to all test cases
As can be seen [1], it happens quite often that a test case gets
stuck and runs forever.  Most of the existing test suites have
the guard timeout to prevent this.  Let's make use of it here too.

[1] https://jenkins.osmocom.org/jenkins/view/TTCN3/job/ttcn3-remsim-test-latest/190/
	Build has been executing for 1 day 23 hr!

Change-Id: I3897efd2a97c3e0d487057aa7bdc2967f3424dd8
2021-02-28 17:12:32 +01:00
Vadim Yanitskiy 7d30c57305 remsim: TC_connect_and_nothing() runs on test_CT
Change-Id: Ie94bf52e57a964b9f280c7626f354c5feee5c165
2021-02-28 16:46:13 +01:00
Harald Welte 55e879c647 remsim: factor-out HTTP_Adapter.ttcn
There are other test suites (like osmo-cbc) which can reuse some of
the HTTP utility code that was developed within the remsim test suite

Change-Id: I87a728272d47649e4faa628fad44d6f8673c8169
2021-02-22 10:41:29 +00:00
Vadim Yanitskiy 61564be045 library/IPA: split t_ASP_IPA_EVT_UD into send / receive templates
Change-Id: Ib5494bff3f9aa0ac396b729c326e7b4a64c5a5dd
2020-05-18 20:47:14 +07:00
Harald Welte b12a0ffc03 remsim: Add RemsimServer_Tests.TC_slotmap_add_out_of_range()
Validate if osmo-remsim-server permits out-of-range integers in REST.

Change-Id: I449541420a15826ed0d2f1460e3ca4b3468662c3
2020-02-20 18:48:22 +01:00
Harald Welte 3993c81b79 remsim: Add TC_slotmap_del_nonexistant()
Let's test that deleting a non-existant slotmap from server renders
HTTP status 404.

Change-Id: Ib74fea146017ffc68b75ec175472842b689891c3
2020-02-20 10:12:28 +01:00
Harald Welte b79bc601da remsim: Update TODO list
Change-Id: I1c6b1c7c1ced88db56940d2cef78193a13a15af6
2020-02-20 10:06:15 +01:00
Harald Welte 77cde21fb5 remsim: New TC_slotmap_del_active_client() test
This test verifies that a slotmap delete via REST will not only
delete it from the bankd, but also from the client.

Change-Id: I8c4e53231b5386b00fe2938cde2091aa8b2e2027
Related: OS#4399
2020-02-16 15:35:59 +01:00
Harald Welte faa4292444 Initial TTCN-3 test suite for osmo-remsim
This adds shared infrastructure and initial test suites for
osmo-remsim-{server,client,bankd}.

Change-Id: I00034d3a991f0f881cfd8ff0bfc4557113daf830
2019-09-13 11:45:45 +00:00