Skip to content
Steven Sokol edited this page Oct 29, 2015 · 1 revision

Tests

At this point there are no tests for Aira. This is bad. It proves that I'm not really a developer. If I was, I would surely have written all of the tests for all of the functions in Aria before I wrote so much as a line of core code. This page is my wishlist or notepad for all the tests that should be here but aren't.

Failure Tests

  1. Gracefully handles a call made to a number not found in Redis.
  2. Gracefully handles a malformed URL returned for a number.
  3. Gracefully handles an invalid URL returned for a number.
  4. Gracefully handles invalid XML returned from the remote server.
  5. Gracefully handles a hangup that occurs prior to the beginning of Twiml execution.
  6. Gracefully handles a hangup by the calling party when an outbound Dial is underway but not bridged.

Function Tests

  1. Automatically answers an unanswered call prior to allowing any media functions to occur.
  2. Honors the "Reject" verb and does not answer the call.
Clone this wiki locally