summaryrefslogtreecommitdiff
path: root/tests/data/wallet.conf
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2008-02-12 01:55:09 +0000
committerRuss Allbery <rra@stanford.edu>2008-02-12 01:55:09 +0000
commit54ccb6083d69da03c71d01a271a09554e4d63e4f (patch)
treeedfacb2be7a6737ffe1421bde013ab101adadd44 /tests/data/wallet.conf
parent8981930051a7876586de885183bb0997e9800b3c (diff)
Correctly handle get of an empty object in the wallet client. The
empty string is valid object content. Add a full end-to-end test suite to catch protocol mismatches between the client and server, such as the one fixed in this release.
Diffstat (limited to 'tests/data/wallet.conf')
-rw-r--r--tests/data/wallet.conf13
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/data/wallet.conf b/tests/data/wallet.conf
index 7900d03..b864e5e 100644
--- a/tests/data/wallet.conf
+++ b/tests/data/wallet.conf
@@ -1,4 +1,4 @@
-# wallet.conf -- Test wallet server configuration.
+# wallet.conf -- Test wallet server configuration. -*- perl -*-
# $Id$
# Always test with SQLite.
@@ -8,4 +8,15 @@ $DB_INFO = 'wallet-db';
# Set up a file bucket.
$FILE_BUCKET = 'test-files';
+# Simple auto-creation rules.
+sub default_owner {
+ my ($type, $name) = @_;
+ my $principal = $ENV{REMOTE_USER};
+ if ($type eq 'file' and $name eq 'auto') {
+ return ('auto', [ 'krb5', $principal ]);
+ } else {
+ return;
+ }
+}
+
1;