Change in osmo-ttcn3-hacks[master]: MGCP_Test: test DLCX request to non existant endpoint

laforge gerrit-no-reply at lists.osmocom.org
Fri Aug 6 13:59:01 UTC 2021


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/24976 )

Change subject: MGCP_Test: test DLCX request to non existant endpoint
......................................................................

MGCP_Test: test DLCX request to non existant endpoint

Since we now support wildcarded DLCX request, which so not necessarly
require a specific endpoint (the trunk is enough). We should also check
what happens when we send a DLCX request to a non existent endpoint. The
situation would be very similar. osmo-mgw will be unable to resolve the
endpoint, but the trunk will be resolved. However eventually the request
is not wildcarded and we expect that osmo-mgw is rejecting it.

Change-Id: I3d8c6f84404c1c95f97f113813528175523d36b8
Related: SYS#5535
---
M mgw/MGCP_Test.ttcn
1 file changed, 22 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved
  pespin: Looks good to me, but someone else must approve



diff --git a/mgw/MGCP_Test.ttcn b/mgw/MGCP_Test.ttcn
index 6990679..3aa7926 100644
--- a/mgw/MGCP_Test.ttcn
+++ b/mgw/MGCP_Test.ttcn
@@ -1026,6 +1026,27 @@
 		setverdict(pass);
 	}
 
+	/* DLCX to non existing endpoint */
+	testcase TC_dlcx_non_existant_ep() runs on dummy_CT {
+		var template MgcpCommand cmd;
+		var MgcpResponse resp;
+		var MgcpEndpoint ep := c_mgw_ep_rtpbridge & "AA@" & c_mgw_domain;
+		var template MgcpResponse rtmpl := {
+			line := {
+				code := ("500"),
+				string := ?
+			},
+			params:= { },
+			sdp := omit
+		};
+
+		f_init(ep);
+
+		cmd := ts_DLCX(get_next_trans_id(), ep, '41234'H);
+		resp := mgcp_transceive_mgw(cmd, rtmpl);
+		setverdict(pass);
+	}
+
 	/* test valid wildcarded MDCX */
 	testcase TC_mdcx_wildcarded() runs on dummy_CT {
 		 /* Note: A wildcarded MDCX is not allowed, so we expect the
@@ -2459,6 +2480,7 @@
 		execute(TC_crcx_wildcarded_exhaust());
 		execute(TC_mdcx_without_crcx());
 		execute(TC_dlcx_without_crcx());
+		execute(TC_dlcx_non_existant_ep());
 		execute(TC_mdcx_wildcarded());
 		execute(TC_dlcx_wildcarded());
 		execute(TC_crcx_and_dlcx_ep_callid_connid());

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/24976
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I3d8c6f84404c1c95f97f113813528175523d36b8
Gerrit-Change-Number: 24976
Gerrit-PatchSet: 4
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210806/7872c7ce/attachment.htm>


More information about the gerrit-log mailing list