aboutsummaryrefslogtreecommitdiff
path: root/tests/server/backend-t.in
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2007-10-11 00:49:38 +0000
committerRuss Allbery <rra@stanford.edu>2007-10-11 00:49:38 +0000
commit16890a8c0ee6af63b6a54a8209bae4f2a095e644 (patch)
tree3c2c45c480cc804d5b50936e791459555b9b71e7 /tests/server/backend-t.in
parent32ec05c61136ceff5c6013f304e309c7abdd2fb0 (diff)
Add an acl history function to the server backend and the client
documentation and test it. Update NEWS and TODO for the completion of the history code.
Diffstat (limited to 'tests/server/backend-t.in')
-rw-r--r--tests/server/backend-t.in12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/server/backend-t.in b/tests/server/backend-t.in
index 85fb0ce..761b1ef 100644
--- a/tests/server/backend-t.in
+++ b/tests/server/backend-t.in
@@ -9,7 +9,7 @@
use strict;
use IO::String;
-use Test::More tests => 802;
+use Test::More tests => 812;
# Create a dummy class for Wallet::Server that prints what method was called
# with its arguments and returns data for testing.
@@ -45,6 +45,13 @@ sub acl_remove
sub acl_rename
{ shift; print "acl_rename @_\n"; ($_[0] eq 'error') ? undef : 1 }
+sub acl_history {
+ shift;
+ print "acl_history @_\n";
+ return if $_[0] eq 'error';
+ return 'acl_history';
+}
+
sub acl_show {
shift;
print "acl_show @_\n";
@@ -190,6 +197,7 @@ my %commands = (create => [2, 2],
my %acl_commands = (add => [3, 3],
create => [1, 1],
destroy => [1, 1],
+ history => [1, 1],
remove => [3, 3],
rename => [2, 2],
show => [1, 1]);
@@ -331,6 +339,8 @@ for my $command (sort keys %acl_commands) {
my $expected;
if ($command eq 'show') {
$expected = "$new\nacl_$command name$extra\nacl_show";
+ } elsif ($command eq 'history') {
+ $expected = "$new\nacl_$command name$extra\nacl_history";
} else {
$expected = "$new\nacl_$command name$extra\n";
}