[asterisk-dev] [Code Review] 3769: testsuite: Add tests for copying a stored recording
Matt Jordan
reviewboard at asterisk.org
Sun Jul 13 15:58:04 CDT 2014
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3769/
-----------------------------------------------------------
Review request for Asterisk Developers.
Bugs: ASTERISK-24036
https://issues.asterisk.org/jira/browse/ASTERISK-24036
Repository: testsuite
Description
-------
This patch adds tests to the Asterisk Test Suite for copying a stored recording. Two tests are added for the operation, nominal and off-nominal.
* nominal - makes a live recording and finishes it. When finished, it takes the resulting stored recording and copies it. The resulting stored recording object is checked to see if it has the expected name and format.
* off nominal - makes a live recording and finishes it. When finished, it makes a copy in the same fashion as nominal. Two off nominal checks are then made:
- an attempt to copy the recording again to the same location. This verifies that we get a 409.
- an attempt to copy an unknown stored recording. This verifies that we get a 404.
Diffs
-----
/asterisk/trunk/tests/rest_api/recording/tests.yaml 5242
/asterisk/trunk/tests/rest_api/recording/stored/tests.yaml PRE-CREATION
/asterisk/trunk/tests/rest_api/recording/stored/copy/tests.yaml PRE-CREATION
/asterisk/trunk/tests/rest_api/recording/stored/copy/off-nominal/test-config.yaml PRE-CREATION
/asterisk/trunk/tests/rest_api/recording/stored/copy/off-nominal/recording.py PRE-CREATION
/asterisk/trunk/tests/rest_api/recording/stored/copy/off-nominal/configs/ast1/extensions.conf PRE-CREATION
/asterisk/trunk/tests/rest_api/recording/stored/copy/nominal/test-config.yaml PRE-CREATION
/asterisk/trunk/tests/rest_api/recording/stored/copy/nominal/recording.py PRE-CREATION
/asterisk/trunk/tests/rest_api/recording/stored/copy/nominal/configs/ast1/extensions.conf PRE-CREATION
Diff: https://reviewboard.asterisk.org/r/3769/diff/
Testing
-------
Thanks,
Matt Jordan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140713/a3af280d/attachment-0001.html>
More information about the asterisk-dev
mailing list