[Home]

Summary:ASTERISK-29874: testsuite notify_after_register/realtime sipp invalid sipp scenarios
Reporter:Michael Bradeen (mbradeen)Labels:
Date Opened:2022-01-21 17:48:04.000-0600Date Closed:
Priority:MinorRegression?
Status:Open/NewComponents:Tests/testsuite
Versions:18.9.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:Attachments:
Description:both notify_after_register and notify_after_register_realtime on line 22 of their respective sipp scenario xml files have an un-terminated recv which is caught by current versions of sipp:
<recv response="200">

Additionally, the scenario itself is not valid.  sipp will not recognize the notify as part of the same scenario and so will exit without passing.  Test needs to be re-worked to give accurate pass/fail.

Comments:By: Michael Bradeen (mbradeen) 2022-01-21 17:48:34.141-0600

{noformat}
$ sudo ./runtests.py -t tests/channels/pjsip/subscriptions/mwi/unsolicited/notify_after_register
[sudo] password for mbradeen:
Running tests for Asterisk (run 1 of 1)...

Tests to run: 1 * 1 time(s) = 1  Maximum test inactivity time: -1 sec.
--> Running test 'tests/channels/pjsip/subscriptions/mwi/unsolicited/notify_after_register' ...
Making sure Asterisk isn't running ...
Making sure SIPp isn't running...
Running tests/channels/pjsip/subscriptions/mwi/unsolicited/notify_after_register ...
[Jan 21 16:47:26] WARNING[1268553]: asterisk.sipp:527 processEnded: Unexpected </scenario> (expected </recv>)
2022-01-21 16:47:26.810384 1642808846.810384: Invalid XML in scenario
Test tests/channels/pjsip/subscriptions/mwi/unsolicited/notify_after_register failed



<?xml version="1.0" encoding="utf-8"?>
<testsuites>
 <testsuite errors="0" failures="1" name="AsteriskTestSuite" tests="1" time="2.85" timestamp="2022-01-21T16:47:24 MST">
   <testcase classname="channels.pjsip.subscriptions.mwi.unsolicited" name="notify_after_register" time="2.85">
     <failure>Running tests/channels/pjsip/subscriptions/mwi/unsolicited/notify_after_register ...
[Jan 21 16:47:26] WARNING[1268553]: asterisk.sipp:527 processEnded: Unexpected &lt;/scenario&gt; (expected &lt;/recv&gt;)
2022-01-21 16:47:26.810384 1642808846.810384: Invalid XML in scenario
</failure>
   </testcase>
 </testsuite>
</testsuites>
{noformat}