<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18425">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">PCU: introduce TC_egprs_pkt_chan_req_reject_exhaustion<br><br>Send 7 RACH indications to the IUT with EGPRS Packet Channel Request.<br>Since we have only one timeslot (and USF value '111'B is reserved),<br>the 8-th indication should be properly rejected by the IUT.<br><br>Change-Id: Ie6e5fc68e1591c57e21541ba16fbdcd3fe477ac7<br>Related: OS#1548<br>---<br>M pcu/PCU_Tests.ttcn<br>1 file changed, 34 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/25/18425/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/pcu/PCU_Tests.ttcn b/pcu/PCU_Tests.ttcn</span><br><span>index 999ece0..8a1a425 100644</span><br><span>--- a/pcu/PCU_Tests.ttcn</span><br><span>+++ b/pcu/PCU_Tests.ttcn</span><br><span>@@ -1861,6 +1861,39 @@</span><br><span>    f_shutdown(__BFILE__, __LINE__, final := true);</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+/* Make sure that IUT responds with RR Immediate Assignment Reject due to exhaustion. */</span><br><span style="color: hsl(120, 100%, 40%);">+testcase TC_egprs_pkt_chan_req_reject_exhaustion() runs on RAW_PCU_Test_CT {</span><br><span style="color: hsl(120, 100%, 40%);">+      var template IARRestOctets rest;</span><br><span style="color: hsl(120, 100%, 40%);">+      var BIT11 ra11;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+     /* Initialize the PCU interface abstraction */</span><br><span style="color: hsl(120, 100%, 40%);">+        f_init_raw(testcasename());</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ var EGPRSPktChRequest req := {</span><br><span style="color: hsl(120, 100%, 40%);">+                one_phase := {</span><br><span style="color: hsl(120, 100%, 40%);">+                        tag := '0'B,</span><br><span style="color: hsl(120, 100%, 40%);">+                  multislot_class := '10101'B,</span><br><span style="color: hsl(120, 100%, 40%);">+                  priority := '01'B,</span><br><span style="color: hsl(120, 100%, 40%);">+                    random_bits := '101'B</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 style="color: hsl(120, 100%, 40%);">+  /* We send 7 requests, the IUT gives us all available USFs (0..6).</span><br><span style="color: hsl(120, 100%, 40%);">+     * TODO: make it configurable: usf_max := mp_pdch_ts_num * 7. */</span><br><span style="color: hsl(120, 100%, 40%);">+      for (var integer i := 0; i < 7; i := i + 1) {</span><br><span style="color: hsl(120, 100%, 40%);">+              req.one_phase.random_bits := int2bit(f_rnd_int(8), 3);</span><br><span style="color: hsl(120, 100%, 40%);">+                f_TC_egprs_pkt_chan_req(req, tr_IMM_TBF_ASS);</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%);">+   ra11 := enc_EGPRSPktChRequest2bits(req);</span><br><span style="color: hsl(120, 100%, 40%);">+      rest := tr_IARRestOctets({ *, tr_ExtRAOpt(substr(ra11, 6, 5)), * });</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+        /* At this point, the IUT should run out of free USFs */</span><br><span style="color: hsl(120, 100%, 40%);">+      f_TC_egprs_pkt_chan_req_reject(ra11, 1870, rest);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+   f_shutdown(__BFILE__, __LINE__, final := true);</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> control {</span><br><span>    execute( TC_pcuif_suspend() );</span><br><span>       execute( TC_ta_ptcch_idle() );</span><br><span>@@ -1895,6 +1928,7 @@</span><br><span>       execute( TC_egprs_pkt_chan_req_two_phase() );</span><br><span>        execute( TC_egprs_pkt_chan_req_reject_content() );</span><br><span>   execute( TC_egprs_pkt_chan_req_reject_emergency() );</span><br><span style="color: hsl(120, 100%, 40%);">+  execute( TC_egprs_pkt_chan_req_reject_exhaustion() );</span><br><span> </span><br><span>    execute( TC_mo_ping_pong_with_ul_racap_egprs_only() );</span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18425">change 18425</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/+/18425"/><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: Ie6e5fc68e1591c57e21541ba16fbdcd3fe477ac7 </div>
<div style="display:none"> Gerrit-Change-Number: 18425 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>