Feature #5757
openfunctional test suite for osmo_dia2gsup
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.
Updated by pespin 12 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?
Updated by pespin 12 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
Updated by pespin 12 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]
Updated by pespin 12 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
Updated by pespin 12 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.