<p>Jenkins2 <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/6008">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Kevin Harwell: Looks good to me, but someone else must approve
  Joshua Colp: Looks good to me, but someone else must approve
  George Joseph: Looks good to me, approved
  Jenkins2: Approved for Submit

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">apps/waitdigit: Add test for filtered DTMF wait.<br><br>Test all results of the WaitDigit dialplan app.<br><br>ASTERISK-27129 #close<br><br>Change-Id: I4c16b6ba02b12be3d62c37afa731f6874f2dc5ed<br>---<br>M tests/apps/tests.yaml<br>A tests/apps/waitdigit/configs/ast1/extensions.conf<br>A tests/apps/waitdigit/test-config.yaml<br>3 files changed, 71 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/tests/apps/tests.yaml b/tests/apps/tests.yaml<br>index 3b94a91..5c79751 100644<br>--- a/tests/apps/tests.yaml<br>+++ b/tests/apps/tests.yaml<br>@@ -23,3 +23,4 @@<br>     - dir: 'disa'<br>     - dir: 'authenticate'<br>     - dir: 'statsd'<br>+    - test: 'waitdigit'<br>diff --git a/tests/apps/waitdigit/configs/ast1/extensions.conf b/tests/apps/waitdigit/configs/ast1/extensions.conf<br>new file mode 100644<br>index 0000000..1ddf420<br>--- /dev/null<br>+++ b/tests/apps/waitdigit/configs/ast1/extensions.conf<br>@@ -0,0 +1,28 @@<br>+[default]<br>+<br>+exten => test,1,NoOp()<br>+same => n,Answer()<br>+<br>+same => n,WaitDigit(5000ms,123)<br>+same => n,Noop(${WAITDIGITSTATUS}${WAITDIGITRESULT})<br>+same => n,ExecIf($[${WAITDIGITSTATUS}${WAITDIGITRESULT}=DTMF2]?UserEvent(Test1,result:pass))<br>+<br>+same => n,WaitDigit(invalid,123)<br>+same => n,ExecIf($[${WAITDIGITSTATUS}=ERROR]?UserEvent(Test2,result:pass))<br>+<br>+same => n,WaitDigit(100ms,123)<br>+same => n,ExecIf($[${WAITDIGITSTATUS}=TIMEOUT]?UserEvent(Test3,result:pass))<br>+<br>+same => n,WaitDigit(5s,123)<br>+exten => h,1,ExecIf($[${WAITDIGITSTATUS}=CANCEL]?UserEvent(Test4,result:pass))<br>+<br>+<br>+[caller]<br>+exten => test,1,NoOp()<br>+same => n,Answer()<br>+same => n,Wait(0.5)<br>+; 5 is not among the accepted digits so it will be ignored.<br>+same => n,SendDTMF(5)<br>+same => n,SendDTMF(2)<br>+same => n,Wait(0.5)<br>+same => n,Hangup()<br>diff --git a/tests/apps/waitdigit/test-config.yaml b/tests/apps/waitdigit/test-config.yaml<br>new file mode 100644<br>index 0000000..160c8b4<br>--- /dev/null<br>+++ b/tests/apps/waitdigit/test-config.yaml<br>@@ -0,0 +1,42 @@<br>+testinfo:<br>+    summary: 'Test WaitDigit'<br>+    description: |<br>+      'Basic testing of WaitDigit.'<br>+<br>+test-modules:<br>+    test-object:<br>+        config-section: test-object-config<br>+        typename: 'test_case.SimpleTestCase'<br>+    modules:<br>+        -<br>+            config-section: ami-config<br>+            typename: 'ami.AMIEventModule'<br>+<br>+test-object-config:<br>+    spawn-after-hangup: True<br>+    expected_events: 4<br>+    test-iterations:<br>+        -<br>+            channel: 'Local/test@default'<br>+            context: 'caller'<br>+            exten: 'test'<br>+            priority: 1<br>+<br>+ami-config:<br>+    -<br>+        type: 'headermatch'<br>+        conditions:<br>+            match:<br>+                Event: 'UserEvent'<br>+        requirements:<br>+            match:<br>+                Result: 'pass'<br>+        count: '4'<br>+<br>+properties:<br>+    minversion: '15.0.0'<br>+    dependencies:<br>+        - python : 'twisted'<br>+        - python : 'starpy'<br>+        - asterisk : 'app_userevent'<br>+        - asterisk : 'app_senddtmf'<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/6008">change 6008</a>. To unsubscribe, 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/6008"/><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-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I4c16b6ba02b12be3d62c37afa731f6874f2dc5ed </div>
<div style="display:none"> Gerrit-Change-Number: 6008 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>