Project

General

Profile

Actions

Feature #5757

open

functional test suite for osmo_dia2gsup

Added by laforge over 1 year ago. Updated 6 months ago.

Status:
Feedback
Priority:
Normal
Assignee:
Target version:
-
Start date:
11/09/2022
Due date:
% Done:

50%


Description

The developed test coverage shall at least cover the successful (normal) and one failure (abnormal) case of each supported DIAMETER procedure. The converter shall pass all tests.

Actions #1

Updated by pespin 6 months ago

  • Assignee set to pespin

Hi lynxis , did you start any work on this? I may take over adding a TTCN3 testsuite for it.

I see there's some initial work done by laforge in osmo-ttcn3-hacks.git branch "origin/laforge/dia2gsup".

Actions #2

Updated by pespin 6 months ago

I'm doing progress with this. osmo-ttcn3-hacks.git and docker-playground.git branch "pespin/dia2gsup".

I have the GSUP side already connecting dia2gsup -> TTCN3 in the docker playground. Now I'm fighting against the Diameter side, where dia2gsup it seems to create the listening socket just fine on my Archlinux system, but fails to do so under the docker debian-bookworm-erland container:

16:33:31.345 [info] Diameter HSS Application started on IP 172.18.188.20, sctp port 3868
16:33:31.352 [error] CRASH REPORT Process <0.155.0> with 0 neighbours crashed with reason: no match of right hand value {error,{shutdown,{open,eprotonosupport}
}} in diameter_sctp:s/4 line 169
16:33:31.352 [error] Supervisor diameter_peer_fsm_sup had child diameter_peer_fsm started with {diameter_peer_fsm,start_link,undefined} at <0.155.0> exit with
reason no match of right hand value {error,{shutdown,{open,eprotonosupport}}} in diameter_sctp:s/4 line 169 in context child_terminated

According to [1] may it be that the erlang version for debian bookworm is not compiled with sctp support enabled?

[1] https://github.com/ernw/ss7MAPer/issues/10

Actions #3

Updated by pespin 6 months ago

The above issue is fixed by this patch:
https://gerrit.osmocom.org/c/docker-playground/+/34200 debian-*-erlang: Install on libsctp-dev to enable sctp support in erlang apps

Actions #4

Updated by pespin 6 months ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 50

Initial TTCN3 test with 1 passing test submitted here:
remote: https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/34211 diameter: Fix order of AVPs in tr_DIA_AIA [NEW]
remote: https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/34212 DIAMETER_Emulation: Support forwarding messages identified by ete_id to a ... [NEW]
remote: https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/34213 dia2gsup: Introduce initial testsuite [NEW]

Actions #5

Updated by pespin 6 months ago

remote: https://gerrit.osmocom.org/c/osmo-ci/+/34214 jobs: Add nightly job for ttcn3-dia2gsup-test
https://gerrit.osmocom.org/c/docker-playground/+/34215 Introduce osmo-dia2gsup-master, ttcn3-dia2gsup-test

Actions #6

Updated by pespin 6 months ago

  • Assignee changed from pespin to lynxis

The TTCN3 test consist now of several tests. It's not coverying all the cases we'd want, but it's a good start.

Right now the major problem is that osmo_dia2gsup seems unable to properly pass TTCN3 tests after the 1st test in the suite is run.

Assigning this ticket to lynxis for him to fix that problem so that all the existing test in the testsuite pass. After that, we can see who works on adding more tests.

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)