diff options
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; |