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

George Joseph asteriskteam at digium.com
Tue Oct 22 03:41:16 CDT 2019


George Joseph has uploaded this change for review. ( https://gerrit.asterisk.org/c/testsuite/+/13089


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(-)



  git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/89/13089/1

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/+/13089
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: testsuite
Gerrit-Branch: 16
Gerrit-Change-Id: Iebc972db58de435178924be7226b6e547430aea6
Gerrit-Change-Number: 13089
Gerrit-PatchSet: 1
Gerrit-Owner: George Joseph <gjoseph at digium.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20191022/a154667a/attachment.html>


More information about the asterisk-code-review mailing list