[asterisk-dev] [Code Review] 3220: testsuite: Add basic tests for the DB function

Matt Jordan reviewboard at asterisk.org
Thu Feb 13 14:52:45 CST 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3220/
-----------------------------------------------------------

Review request for Asterisk Developers.


Bugs: ASTERISK-23187
    https://issues.asterisk.org/jira/browse/ASTERISK-23187


Repository: testsuite


Description
-------

This test was written by Ben Ford.

This test verifies that the following AstDB functions and variables work as intended - DB, DB_RESULT, DB_EXISTS, DB_KEYS, DB_DELETE.

The first iteration tests input and output using DB(family/key) as well as the DB_RESULT variable.

The second iteration tests DB_EXISTS(family/key) with a non-existant and existant database, and also tests DB_KEYS(family) with a non-existant database, a family with one key, and a family with multiple keys.

The last iteration tests DB_DELETE(family/key) on a non-existant database and an existant database. If it is called when there is nothing to delete, it will return an empty string.


Diffs
-----

  /asterisk/trunk/tests/pbx/tests.yaml 4701 
  /asterisk/trunk/tests/pbx/ast_db/test-config.yaml PRE-CREATION 
  /asterisk/trunk/tests/pbx/ast_db/configs/ast1/extensions.conf PRE-CREATION 

Diff: https://reviewboard.asterisk.org/r/3220/diff/


Testing
-------


Thanks,

Matt Jordan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140213/a7a60ea3/attachment-0001.html>


More information about the asterisk-dev mailing list