diff options
author | Russ Allbery <rra@stanford.edu> | 2008-02-12 01:55:09 +0000 |
---|---|---|
committer | Russ Allbery <rra@stanford.edu> | 2008-02-12 01:55:09 +0000 |
commit | 54ccb6083d69da03c71d01a271a09554e4d63e4f (patch) | |
tree | edfacb2be7a6737ffe1421bde013ab101adadd44 /tests/data | |
parent | 8981930051a7876586de885183bb0997e9800b3c (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')
-rw-r--r-- | tests/data/cmd-wrapper.in | 3 | ||||
-rw-r--r-- | tests/data/wallet.conf | 13 |
2 files changed, 14 insertions, 2 deletions
diff --git a/tests/data/cmd-wrapper.in b/tests/data/cmd-wrapper.in index d50816c..a45edc8 100644 --- a/tests/data/cmd-wrapper.in +++ b/tests/data/cmd-wrapper.in @@ -6,4 +6,5 @@ WALLET_CONFIG='@abs_top_srcdir@/tests/data/wallet.conf' export WALLET_CONFIG -exec perl -I'@abs_top_srcdir@/perl' '@abs_top_srcdir@/server/wallet-backend' +exec perl -I'@abs_top_srcdir@/perl' '@abs_top_srcdir@/server/wallet-backend' \ + "$@" 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; |