<p>Michael Bradeen has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/testsuite/+/19912">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">app_read: add tests for terminator only digit string.<br><br>Add tests to ensure that the 'e' option includes the terminator digit<br>on terminator digit only strings, and that no 'e' option does not.<br><br>ASTERISK-30411<br><br>Change-Id: Idd6d25cf83fa5d0a3e035f7a47ce2628486ea9e8<br>---<br>M tests/apps/read/configs/ast1/extensions.conf<br>M tests/apps/read/test-config.yaml<br>2 files changed, 24 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/12/19912/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/tests/apps/read/configs/ast1/extensions.conf b/tests/apps/read/configs/ast1/extensions.conf</span><br><span>index 7fd4b53..11bf876 100644</span><br><span>--- a/tests/apps/read/configs/ast1/extensions.conf</span><br><span>+++ b/tests/apps/read/configs/ast1/extensions.conf</span><br><span>@@ -10,8 +10,10 @@</span><br><span> same => n,Set(GLOBAL(senddtmf7)=1234#56)</span><br><span> same => n,Set(GLOBAL(senddtmf8)=1234#56)</span><br><span> same => n,Set(GLOBAL(senddtmf9)=9876#56)</span><br><span style="color: hsl(120, 100%, 40%);">+ same => n,Set(GLOBAL(senddtmf10)=#)</span><br><span style="color: hsl(120, 100%, 40%);">+ same => n,Set(GLOBAL(senddtmf11)=#)</span><br><span> same => n,Set(i=0)</span><br><span style="color: hsl(0, 100%, 40%);">- same => n,While($[${INC(i)}<=9])</span><br><span style="color: hsl(120, 100%, 40%);">+ same => n,While($[${INC(i)}<=11])</span><br><span> same => n,Originate(Local/${i}@send-dtmf,exten,read-dtmf,${i},1,,a)</span><br><span> same => n,EndWhile()</span><br><span> same => n,Hangup()</span><br><span>@@ -51,6 +53,12 @@</span><br><span> exten => 9,1,Answer()</span><br><span> same => n,Read(digits,dial,,i)</span><br><span> same => n,GotoIf($["${digits}"="${senddtmf${EXTEN}:0:4}"]?success,1:fail,1)</span><br><span style="color: hsl(120, 100%, 40%);">+exten => 10,1,Answer()</span><br><span style="color: hsl(120, 100%, 40%);">+ same => n,Read(digits)</span><br><span style="color: hsl(120, 100%, 40%);">+ same => n,GotoIf($["${digits}"=""]?success,1:fail,1)</span><br><span style="color: hsl(120, 100%, 40%);">+exten => 11,1,Answer()</span><br><span style="color: hsl(120, 100%, 40%);">+ same => n,Read(digits,,,e)</span><br><span style="color: hsl(120, 100%, 40%);">+ same => n,GotoIf($["${digits}"="#"]?success,1:fail,1)</span><br><span> exten => success,1,Answer(1)</span><br><span> same => n,UserEvent(ReadSuccess,Result: Pass)</span><br><span> same => n,Hangup()</span><br><span>diff --git a/tests/apps/read/test-config.yaml b/tests/apps/read/test-config.yaml</span><br><span>index 6dba4ee..722d53a 100644</span><br><span>--- a/tests/apps/read/test-config.yaml</span><br><span>+++ b/tests/apps/read/test-config.yaml</span><br><span>@@ -42,7 +42,7 @@</span><br><span> requirements:</span><br><span> match:</span><br><span> Result: 'Pass'</span><br><span style="color: hsl(0, 100%, 40%);">- count: 9</span><br><span style="color: hsl(120, 100%, 40%);">+ count: 11</span><br><span> stop_test:</span><br><span> </span><br><span> properties:</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/testsuite/+/19912">change 19912</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.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.asterisk.org/c/testsuite/+/19912"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: testsuite </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Idd6d25cf83fa5d0a3e035f7a47ce2628486ea9e8 </div>
<div style="display:none"> Gerrit-Change-Number: 19912 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Michael Bradeen <mbradeen@sangoma.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>