Change in osmo-ttcn3-hacks[master]: MGCP_Test: upgrade expected behavior for TC_dlcx_wildcarded

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

dexter gerrit-no-reply at lists.osmocom.org
Fri Jul 2 13:30:09 UTC 2021


dexter has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/24821 )


Change subject: MGCP_Test: upgrade expected behavior for TC_dlcx_wildcarded
......................................................................

MGCP_Test: upgrade expected behavior for TC_dlcx_wildcarded

The testcase TC_dlcx_wildcarded expect osmo-mgw to reject wildcarded
DLCX requests but osmo-mgw now implements wildcarded DLCX

Depends: osmo-mgw I0770cf46d93ab09efe9cafdd56d2e3f1132db189
Change-Id: I61e23e264bc85eb36d07431c7839fb445c110947
---
M mgw/MGCP_Test.ttcn
1 file changed, 18 insertions(+), 7 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/21/24821/1

diff --git a/mgw/MGCP_Test.ttcn b/mgw/MGCP_Test.ttcn
index d36eb4c..4e2f6a6 100644
--- a/mgw/MGCP_Test.ttcn
+++ b/mgw/MGCP_Test.ttcn
@@ -1049,24 +1049,35 @@
 
 	/* test valid wildcarded DLCX */
 	testcase TC_dlcx_wildcarded() runs on dummy_CT {
-		 /* Note: A wildcarded DLCX is specified, but our MGW does not
-		  * support this feature so we expect the MGW to reject the
-		  * request */
 		var template MgcpCommand cmd;
 		var MgcpResponse resp;
 		var MgcpEndpoint ep := c_mgw_ep_rtpbridge & "*@" & c_mgw_domain;
+		const integer n_endpoints := 10;
+		var integer i;
+		var MgcpCallId call_id := '1234'H;
+		f_init(ep);
+
+		/* Allocate a few endpoints */
+		for (i := 0; i < n_endpoints; i := i+1) {
+			cmd := ts_CRCX(get_next_trans_id(), ep, "recvonly", call_id);
+			resp := mgcp_transceive_mgw(cmd, tr_CRCX_ACK);
+		}
+		f_ctrl_get_exp(IPA_CTRL, "trunk.rtpbridge:.endpoint_usage", "10");
+
+		/* Send wildcarded DLCX */
 		var template MgcpResponse rtmpl := {
 			line := {
-				code := "507",
+				code := "200",
 				string := ?
 			},
 			params:= { },
 			sdp := omit
 		};
+		cmd := ts_DLCX(get_next_trans_id(), ep);
+		mgcp_transceive_mgw(cmd, rtmpl);
+		f_ctrl_get_exp(IPA_CTRL, "trunk.rtpbridge:.endpoint_usage", "0");
 
-		f_init(ep);
-
-		cmd := ts_DLCX(get_next_trans_id(), ep, '41234'H);
+		cmd := ts_DLCX(get_next_trans_id(), ep);
 		resp := mgcp_transceive_mgw(cmd, rtmpl);
 		setverdict(pass);
 	}

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/24821
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: I61e23e264bc85eb36d07431c7839fb445c110947
Gerrit-Change-Number: 24821
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210702/83bfea6f/attachment.htm>


More information about the gerrit-log mailing list