<p>Friendly Automation <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/testsuite/+/14426">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Benjamin Keith Ford: Looks good to me, but someone else must approve
George Joseph: Looks good to me, approved
Friendly Automation: Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">rest_api: Extend create test to cover setting variables.<br><br>The channel create call now accepts variables to be set<br>during channel creation. This change extends the create<br>nominal test to also ensure that variables get set.<br><br>ASTERISK-28896<br><br>Change-Id: Ia29031ff43925ddb3f40e1ce1e7243a4723b8f5c<br>---<br>M tests/rest_api/channels/create_dial_bridge/create/nominal/test-config.yaml<br>1 file changed, 8 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/tests/rest_api/channels/create_dial_bridge/create/nominal/test-config.yaml b/tests/rest_api/channels/create_dial_bridge/create/nominal/test-config.yaml</span><br><span>index 22ceecb..bd17c00 100644</span><br><span>--- a/tests/rest_api/channels/create_dial_bridge/create/nominal/test-config.yaml</span><br><span>+++ b/tests/rest_api/channels/create_dial_bridge/create/nominal/test-config.yaml</span><br><span>@@ -1,8 +1,9 @@</span><br><span> testinfo:</span><br><span> summary: 'Test channels/create.'</span><br><span> description: |</span><br><span style="color: hsl(0, 100%, 40%);">- * Create channel 1 using channels/create with endpoint = Local/s@default</span><br><span style="color: hsl(120, 100%, 40%);">+ * Create channel 1 using channels/create with endpoint = Local/s@default and ALICE variable</span><br><span> * Do a get to make sure it's actually there</span><br><span style="color: hsl(120, 100%, 40%);">+ * Do a variable get to make sure the ALICE variable is set on the channel</span><br><span> * Delete the channel</span><br><span> * Wait for ChannelHangupRequest</span><br><span> * Do another get and test for 404</span><br><span>@@ -31,6 +32,7 @@</span><br><span> endpoint: 'Local/s@default'</span><br><span> app: 'testsuite'</span><br><span> channelId: 'channel1'</span><br><span style="color: hsl(120, 100%, 40%);">+ body: {'variables': {'ALICE': 'bob'}}</span><br><span> expect: 200</span><br><span> </span><br><span> - ari-events:</span><br><span>@@ -44,6 +46,11 @@</span><br><span> - method: 'get'</span><br><span> uri: 'channels/channel1'</span><br><span> expect: 200</span><br><span style="color: hsl(120, 100%, 40%);">+ - method: 'get'</span><br><span style="color: hsl(120, 100%, 40%);">+ uri: 'channels/channel1/variable'</span><br><span style="color: hsl(120, 100%, 40%);">+ params:</span><br><span style="color: hsl(120, 100%, 40%);">+ variable: 'ALICE'</span><br><span style="color: hsl(120, 100%, 40%);">+ expect: 200</span><br><span> - method: 'delete'</span><br><span> uri: 'channels/channel1'</span><br><span> expect: 204</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/testsuite/+/14426">change 14426</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/+/14426"/><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: Ia29031ff43925ddb3f40e1ce1e7243a4723b8f5c </div>
<div style="display:none"> Gerrit-Change-Number: 14426 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-Reviewer: Benjamin Keith Ford <bford@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>