[Asterisk-code-review] externalMedia: Update nominal test for new return object (...testsuite[17])

Friendly Automation asteriskteam at digium.com
Wed Oct 23 05:34:32 CDT 2019


Friendly Automation has submitted this change and it was merged. ( https://gerrit.asterisk.org/c/testsuite/+/13090 )

Change subject: externalMedia: Update nominal test for new return object
......................................................................

externalMedia: Update nominal test for new return object

Change-Id: Iebc972db58de435178924be7226b6e547430aea6
---
M tests/rest_api/channels/external_media/nominal/create_with_vars.py
1 file changed, 4 insertions(+), 4 deletions(-)

Approvals:
  Joshua Colp: Looks good to me, but someone else must approve
  George Joseph: Looks good to me, approved
  Friendly Automation: Approved for Submit



diff --git a/tests/rest_api/channels/external_media/nominal/create_with_vars.py b/tests/rest_api/channels/external_media/nominal/create_with_vars.py
index 9366376..1d5cd77 100644
--- a/tests/rest_api/channels/external_media/nominal/create_with_vars.py
+++ b/tests/rest_api/channels/external_media/nominal/create_with_vars.py
@@ -22,12 +22,12 @@
 
     resp = ari.post('channels', 'externalMedia', **params)
 
-    assert resp.json()['channel']['caller']['name'] == 'foo'
-    assert resp.json()['local_address']
-    assert resp.json()['local_port']
+    assert resp.json()['caller']['name'] == 'foo'
+    assert resp.json()['channelvars']['UNICASTRTP_LOCAL_ADDRESS']
+    assert resp.json()['channelvars']['UNICASTRTP_LOCAL_PORT']
 
     # Delete the channel we just created
-    ari.delete('channels', resp.json()['channel']['id'])
+    ari.delete('channels', resp.json()['id'])
     # Delete the implicit channel created by the test object
     ari.delete('channels', event['channel']['id'])
 

-- 
To view, visit https://gerrit.asterisk.org/c/testsuite/+/13090
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: testsuite
Gerrit-Branch: 17
Gerrit-Change-Id: Iebc972db58de435178924be7226b6e547430aea6
Gerrit-Change-Number: 13090
Gerrit-PatchSet: 1
Gerrit-Owner: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20191023/16a2cda1/attachment.html>


More information about the asterisk-code-review mailing list