<p>laforge <strong>merged</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/14401">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  laforge: Looks good to me, approved
  fixeria: Looks good to me, but someone else must approve
  Jenkins Builder: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">hlr: add f_vty_subscr_show_nomatch()<br><br>Allow to check if a certain pattern does not match the "show subscriber"<br>output. This will be used by upcoming tests for the check IMEI GSUP<br>message type, to check if the IMEI was not stored, depending on the<br>OsmoHLR configuration.<br><br>Change-Id: I176d8fd2ee74e1eb7ac797f931cd6005d398740f<br>---<br>M hlr/HLR_Tests.ttcn<br>1 file changed, 13 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/hlr/HLR_Tests.ttcn b/hlr/HLR_Tests.ttcn</span><br><span>index b6bd1ad..e58515b 100644</span><br><span>--- a/hlr/HLR_Tests.ttcn</span><br><span>+++ b/hlr/HLR_Tests.ttcn</span><br><span>@@ -302,6 +302,14 @@</span><br><span>       }</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+function f_vty_transceive_nomatch(TELNETasp_PT pt, charstring cmd, template charstring exp_ret) {</span><br><span style="color: hsl(120, 100%, 40%);">+ var charstring ret := f_vty_transceive_ret(pt, cmd);</span><br><span style="color: hsl(120, 100%, 40%);">+  if (match(ret, exp_ret)) {</span><br><span style="color: hsl(120, 100%, 40%);">+            setverdict(fail, "Matching VTY response: ", ret, ", should *not* have matched: ", exp_ret);</span><br><span style="color: hsl(120, 100%, 40%);">+               mtc.stop;</span><br><span style="color: hsl(120, 100%, 40%);">+     }</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> private template (value) charstring t_subscr_prefix(hexstring imsi) :=</span><br><span>     "subscriber imsi " & hex2str(imsi) & " ";</span><br><span> </span><br><span>@@ -351,6 +359,11 @@</span><br><span>     f_vty_transceive_match(VTY, prefix & "show", exp);</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+/* perform 'show' on subscriber; result must not match with pattern 'exp' */</span><br><span style="color: hsl(120, 100%, 40%);">+function f_vty_subscr_show_nomatch(TELNETasp_PT VTY, HlrSubscriber sub, template charstring exp) {</span><br><span style="color: hsl(120, 100%, 40%);">+   var charstring prefix := valueof(t_subscr_prefix(sub.imsi));</span><br><span style="color: hsl(120, 100%, 40%);">+  f_vty_transceive_nomatch(VTY, prefix & "show", exp);</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span> </span><br><span> /***********************************************************************</span><br><span>  * Helper functions for ConnHdlr</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/14401">change 14401</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/14401"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ttcn3-hacks </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I176d8fd2ee74e1eb7ac797f931cd6005d398740f </div>
<div style="display:none"> Gerrit-Change-Number: 14401 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>