[asterisk-commits] mjordan: testsuite/asterisk/trunk r4364 - in /asterisk/trunk/tests/apps/voice...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Nov 24 22:31:38 CST 2013


Author: mjordan
Date: Sun Nov 24 22:31:32 2013
New Revision: 4364

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=4364
Log:
Allow for both vm-msgforwarded and vm-msgsaved

Different Asterisk versions will use different sound files to indicate that the
message was successfully forwarded. Accounting for both is necessary in this
test.

(issue ASTERISK-21413)

Modified:
    asterisk/trunk/tests/apps/voicemail/check_voicemail_forward/run-test
    asterisk/trunk/tests/apps/voicemail/check_voicemail_forward_hangup/run-test
    asterisk/trunk/tests/apps/voicemail/check_voicemail_forward_with_prepend/run-test

Modified: asterisk/trunk/tests/apps/voicemail/check_voicemail_forward/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/voicemail/check_voicemail_forward/run-test?view=diff&rev=4364&r1=4363&r2=4364
==============================================================================
--- asterisk/trunk/tests/apps/voicemail/check_voicemail_forward/run-test (original)
+++ asterisk/trunk/tests/apps/voicemail/check_voicemail_forward/run-test Sun Nov 24 22:31:32 2013
@@ -195,7 +195,7 @@
             elif message == 'vm-forwardoptions':
                 """ Press 2 to not prepend anything """
                 self.voiceMailTest.sendDTMF("2")
-            elif message == 'vm-msgforwarded':
+            elif message == 'vm-msgforwarded' or message == 'vm-msgsaved':
                 self.voiceMailTest.setTestCondition("msgForwarded", True)
             elif message == 'pbx-invalid':
                 """ If this occurs, our extension didn't match - fail the test """

Modified: asterisk/trunk/tests/apps/voicemail/check_voicemail_forward_hangup/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/voicemail/check_voicemail_forward_hangup/run-test?view=diff&rev=4364&r1=4363&r2=4364
==============================================================================
--- asterisk/trunk/tests/apps/voicemail/check_voicemail_forward_hangup/run-test (original)
+++ asterisk/trunk/tests/apps/voicemail/check_voicemail_forward_hangup/run-test Sun Nov 24 22:31:32 2013
@@ -197,7 +197,7 @@
             elif message == 'beep':
                 """ Do not record anything - Hangup! """
                 self.voiceMailTest.hangup()
-            elif message == 'vm-msgforwarded':
+            elif message == 'vm-msgforwarded' or message == 'vm-msgsaved':
                 self.voiceMailTest.setTestCondition("msgForwarded", True)
             elif message == 'pbx-invalid':
                 """ If this occurs, our extension didn't match - fail the test """

Modified: asterisk/trunk/tests/apps/voicemail/check_voicemail_forward_with_prepend/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/voicemail/check_voicemail_forward_with_prepend/run-test?view=diff&rev=4364&r1=4363&r2=4364
==============================================================================
--- asterisk/trunk/tests/apps/voicemail/check_voicemail_forward_with_prepend/run-test (original)
+++ asterisk/trunk/tests/apps/voicemail/check_voicemail_forward_with_prepend/run-test Sun Nov 24 22:31:32 2013
@@ -206,7 +206,7 @@
                 audioFile = os.path.join(os.getcwd(), "%s/sounds/talking" % (self.voiceMailTest.testParentDir))
                 df = self.voiceMailTest.astSender.cli_exec("dialplan set global TALK_AUDIO " + audioFile)
                 df.addCallback(__send_redirect)
-            elif message == 'vm-msgforwarded':
+            elif message == 'vm-msgforwarded' or message == 'vm-msgsaved':
                 self.voiceMailTest.setTestCondition("msgForwarded", True)
             elif message == 'pbx-invalid':
                 """ If this occurs, our extension didn't match - fail the test """




More information about the asterisk-commits mailing list