<p>George Joseph has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/9084">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">sendtext: Update enhanced test to use an application content type<br><br>app_sendtext now allows content types other than text/plain so the<br>test for enagnced messaging has been updated to use<br>application/x-asterisk+json.<br><br>Change-Id: I749c7c7b72b41d46220c9dcd0e3368bd57805ed3<br>---<br>M tests/apps/sendtext/enhanced/configs/ast1/extensions.conf<br>M tests/apps/sendtext/enhanced/sipp/message_recv.xml<br>2 files changed, 2 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/84/9084/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/tests/apps/sendtext/enhanced/configs/ast1/extensions.conf b/tests/apps/sendtext/enhanced/configs/ast1/extensions.conf<br>index e600589..22ba40e 100644<br>--- a/tests/apps/sendtext/enhanced/configs/ast1/extensions.conf<br>+++ b/tests/apps/sendtext/enhanced/configs/ast1/extensions.conf<br>@@ -4,7 +4,7 @@<br> exten = sendtext,1,Answer()<br> same = n,Set(SENDTEXT_FROM_DISPLAYNAME=From Someone Else)<br> same = n,Set(SENDTEXT_TO_DISPLAYNAME=To Someone Else)<br>-same = n,Set(SENDTEXT_CONTENT_TYPE=text/json)<br>+same = n,Set(SENDTEXT_CONTENT_TYPE=application/x-asterisk+json)<br> same = n,Set(SENDTEXT_BODY={"foo":666, "bar":"666"})<br> ; The body supplied in the parameter should be ignored.<br> same = n,SendText({"abc":1, "def":"ghi"})<br>diff --git a/tests/apps/sendtext/enhanced/sipp/message_recv.xml b/tests/apps/sendtext/enhanced/sipp/message_recv.xml<br>index a1e10af..cccc7c0 100644<br>--- a/tests/apps/sendtext/enhanced/sipp/message_recv.xml<br>+++ b/tests/apps/sendtext/enhanced/sipp/message_recv.xml<br>@@ -49,7 +49,7 @@<br> <action><br> <ereg regexp="From Someone Else" search_in="hdr" header="From:" check_it="true" assign_to="dummy"/><br> <ereg regexp="To Someone Else" search_in="hdr" header="To:" check_it="true" assign_to="dummy"/><br>- <ereg regexp="text/json" search_in="hdr" header="Content-Type:" check_it="true" assign_to="dummy"/><br>+ <ereg regexp="application/x-asterisk\+json" search_in="hdr" header="Content-Type:" check_it="true" assign_to="dummy"/><br> <ereg regexp="\{\"foo\":666, \"bar\":\"666\"\}" search_in="body" check_it="true" assign_to="dummy"/><br> </action><br> </recv><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/9084">change 9084</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/9084"/><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: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I749c7c7b72b41d46220c9dcd0e3368bd57805ed3 </div>
<div style="display:none"> Gerrit-Change-Number: 9084 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>