aboutsummaryrefslogtreecommitdiffstats
path: root/sccp/SCCP_Tests_RAW.ttcn
AgeCommit message (Collapse)AuthorFilesLines
2023-11-03sccp: Introduce test TC_cr_timeout_cc_too_latePau Espin Pedrol1-0/+44
Related: SYS#6602 Change-Id: If4b53565f1fa19894ca24fa71e02ae7b1941411e
2023-09-20sccp: Introduce test TC_process_rx_ludtPau Espin Pedrol1-0/+26
Related: SYS#6566 Change-Id: I0880ccce872e79f057e17e29e09a566645365e96
2022-11-22sccp: add debug output when the expected PDU doesn't matchAlexander Couzens1-2/+11
Change-Id: I0fab79fd333f4fdbd5b249d6ede26a5aad214ef1
2022-11-22sccp: fix duplicated beginning of the commentAlexander Couzens1-1/+1
Change-Id: Iecc615dc3fa7ef17d7e58e49c780d054df0b53af
2022-04-12Avoid generating zero-length packetsHarald Welte1-3/+3
I used the construct like f_rnd_octstring(f_rnd_int(100)) in a number of places to generate random-length packets with randomized length. The problem I didn't realize is that f_rnd_int() of course can also return '0', which would generate zero-length packets. This may be permitted in some protocols, but it leads to problems e.g. when trying to send a UDP packet of zero length (which the kernel will not do). So let's introduce * f_rnd_int_nonzero() for returning non-zero randomized integers * f_rnd_octstring_rnd_len() for returning a random-length random payload octet string * replace all f_rnd_octstring(f_rnd_int()) call sites with the new function. Change-Id: I818a113ff8d2a2f7cab2ec7d9c8661607c6331d6 Closes: OS#5528
2021-10-26sccp: Add TC_process_rx_xudt, verifying reception of SCCP XUDTHarald Welte1-0/+26
Test if a XUDT SCCP message is processed by libosmo-sigtran. We assume any XUDT is received (and echoed back) just like normal UDT. Related: OS#5281, SYS#5674 Change-Id: Idbf6db7a684e51858129618b2fcffcbe55b1b70f
2021-05-13sccp: Add TC_callingparty_ssn_only()Harald Welte1-1/+23
This test verifies that libosmo-sccp will properly respond to SCCP traffic that only has a SSN in the CallingPartyAddress. That situation poses the unique challenge of how to route a response, as we lack a GT and a PC to do the routing. In order to support this, libosm-sccp now adds the PC into the CallingPartyAddr when passing such messages from M3UA to SCCP. This way the recipient can simply respond back to that address and it will be routed on PC. Change-Id: Ided599a922fb7f6dbbfe90f817c5419ab793f293 Related: OS#5146
2021-02-11sccp: Add Tests for SCMG SST procedureHarald Welte1-0/+98
The SST procedure can be used by any SCCP node to test the availability of a remote SSN. If the specified remote SSN is available at the specified PC, a SCMG SSA is returned. If not, there's a timeout. Test for SSN=1 (SCMG), another non-SCMG SSN that exists, and for one SSN that doesn't exist. Change-Id: If3f5f3144c0ed83d0bda5953522a9d73287c8ba2
2020-01-21sccp: Introduce test TC_it_avoids_tiarPau Espin Pedrol1-3/+77
Related: OS#4343 Change-Id: I3a970a9b7ed7fb178095760025dd83c570dcff5e
2020-01-21sccp: verify inactivity timers are not started in TC_udt_without_cr_ccPau Espin Pedrol1-1/+18
Related: OS#4343 Change-Id: I2cc5e41e33aac300d33887caed1cc3fbdffcbb17
2020-01-21sccp: Don't use hardcoded SCCP local referencesPau Espin Pedrol1-10/+23
as tests are added or order is changed, local references used by the system under test may change, so let's take and use the one notified instead of harcoding values. Change-Id: I2b52cc637c20d5644f413030edd9040a6e6bfe2f
2020-01-20sccp: Introduce TC_udt_without_cr_ccPau Espin Pedrol1-0/+17
Change-Id: I752af1ae4a34d8d72472e716fe721198f1ba46b1
2020-01-20sccp: Introduce test TC_tiar_timeoutPau Espin Pedrol1-50/+74
Existing templates are moved to SCPP_Templates.ttcn and new ones required for the test are added there. Related: OS#4343 Change-Id: I7b56fe77ac3b350d722c74b043e6ecabc48dcf31
2020-01-20sccp: Stop test on rx unexpected sccp msgPau Espin Pedrol1-0/+2
Change-Id: I3889d7f275d3461fb51209d28c101a5570aca9b3
2020-01-17sccp: Rename module param sccp_cfg to mp_sccp_cfgPau Espin Pedrol1-5/+5
Change-Id: Ied9fbfb9bd35a99205ca13db033dd9ea03d51238
2020-01-17Add SCCP_Tests_RAW for testing the actual SCCP implementationHarald Welte1-0/+174
Using SCCP_Tests_RAW.ttcn we can trasnceive decoded MTP3 primitives containing decoded SCCP messages against a remote SCCP implementation. Related: OS#4343 Change-Id: I07c43cfac9cdbdeccf102cd08309ca9ec64968cc