From: Jon Langseth Date: Sun, 22 Jan 2012 22:04:19 +0000 (+0100) Subject: Trivial documentation update. Removing Dumper from tests X-Git-Url: https://git.defcon.no/?a=commitdiff_plain;h=48430664a49aee26cfbf8bd6be1a1817457fb802;p=hermes Trivial documentation update. Removing Dumper from tests --- diff --git a/api/t/alias.t b/api/t/alias.t index ac47b1c..94ce09d 100644 --- a/api/t/alias.t +++ b/api/t/alias.t @@ -3,7 +3,6 @@ use strict; use Test::More 'no_plan'; use tests_common; -use Data::Dumper; # Configuration variables defined in tests_common # Make sure those are updated/set correctly.. diff --git a/api/t/numbers.t b/api/t/numbers.t index ac41b81..b16c01c 100644 --- a/api/t/numbers.t +++ b/api/t/numbers.t @@ -3,7 +3,6 @@ use strict; use Test::More 'no_plan'; use tests_common; -use Data::Dumper; # Configuration variables defined in tests_common # Make sure those are updated/set correctly.. diff --git a/api/t/phone.t b/api/t/phone.t index 695610b..baccaf5 100644 --- a/api/t/phone.t +++ b/api/t/phone.t @@ -3,7 +3,6 @@ use strict; use Test::More 'no_plan'; use tests_common; -use Data::Dumper; # Configuration variables defined in tests_common # Make sure those are updated/set correctly.. @@ -67,8 +66,6 @@ undef $data; $data = exec_apinode("phone/list", { 'search' => $test_macaddress }); is( $data->{'response'}, 'ok', 'phone/list search result'); ok($data->{'list'}, 'phone/list search array'); -print Dumper($data->{'list'}); - undef $data; $data = exec_apinode("phone/get", { 'mac' => $test_macaddress }); diff --git a/doc/api-nodes.txt b/doc/api-nodes.txt index cb6ea9a..a9f500e 100644 --- a/doc/api-nodes.txt +++ b/doc/api-nodes.txt @@ -593,8 +593,8 @@ alias/list (naturally). Return: - Returns 'ok' on success, with an array of 'destination' and 'alias' - pairs. + Returns 'ok' on success, with an array 'aliases' containing + 'destination' and 'alias' pairs. Returns 'ok' with an empty array if the search gave no results. Returns 'ok' with an empty array if the database search fails. Returns 'failed' with 'cause' = 'invalid' on invalid SIP addresses.