[Asterisk-code-review] ARI: Add coverage for mailbox 404 errors. (testsuite[master])

Corey Farrell asteriskteam at digium.com
Wed Jul 25 09:22:57 CDT 2018


Corey Farrell has uploaded this change for review. ( https://gerrit.asterisk.org/9677


Change subject: ARI: Add coverage for mailbox 404 errors.
......................................................................

ARI: Add coverage for mailbox 404 errors.

Change-Id: I258197b14de9e8087ef5796ab1f6b641678978ef
---
M tests/rest_api/mailbox/baseline/mailbox_baseline.py
1 file changed, 8 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/77/9677/1

diff --git a/tests/rest_api/mailbox/baseline/mailbox_baseline.py b/tests/rest_api/mailbox/baseline/mailbox_baseline.py
index 4e45462..de2c504 100644
--- a/tests/rest_api/mailbox/baseline/mailbox_baseline.py
+++ b/tests/rest_api/mailbox/baseline/mailbox_baseline.py
@@ -67,6 +67,14 @@
     LOGGER.info("Changed alice_mailbox. Confirmed new values.")
     LOGGER.info("Deleted bob_mailbox. Confirmed removal from list.")
 
+    ari.set_allow_errors(True)
+    resp = ari.get('mailboxes', 'bob_mailbox')
+    assert resp.status_code == 404
+
+    resp = ari.delete('mailboxes', 'bob_mailbox')
+    assert resp.status_code == 404
+    ari.set_allow_errors(False)
+
     # While this test doesn't actually use the channel for any of the ARI
     # operations that it does, its presence is necessary for triggering
     # the test and removing it is necessary for completing the test.

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

Gerrit-Project: testsuite
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I258197b14de9e8087ef5796ab1f6b641678978ef
Gerrit-Change-Number: 9677
Gerrit-PatchSet: 1
Gerrit-Owner: Corey Farrell <git at cfware.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180725/b5a0fb32/attachment.html>


More information about the asterisk-code-review mailing list