summaryrefslogtreecommitdiff
path: root/perl/t
diff options
context:
space:
mode:
authorRuss Allbery <eagle@eyrie.org>2014-07-15 20:33:18 -0700
committerRuss Allbery <rra@stanford.edu>2014-07-15 21:10:47 -0700
commit443c2c7ac38672f18a14a84e7a220d1a3b1cd545 (patch)
treee8144e552121846c9d7f555ba225a069fdbf104d /perl/t
parentb1bd88daea1dde6de9e6a8688c6190cdc0b5c617 (diff)
Record ACL names in the ACL history
Change-Id: I0d7a088bb34dda2fc554b9f104c2a33e5faf879e Reviewed-on: https://gerrit.stanford.edu/1554 Reviewed-by: Russ Allbery <rra@stanford.edu> Tested-by: Russ Allbery <rra@stanford.edu>
Diffstat (limited to 'perl/t')
-rwxr-xr-xperl/t/general/acl.t7
1 files changed, 5 insertions, 2 deletions
diff --git a/perl/t/general/acl.t b/perl/t/general/acl.t
index 01b4801..1dd5c53 100755
--- a/perl/t/general/acl.t
+++ b/perl/t/general/acl.t
@@ -63,7 +63,7 @@ ok ($acl->isa ('Wallet::ACL'), ' and the right class');
is ($acl->name, 'test', ' and the right name');
# Test rename.
-if ($acl->rename ('example')) {
+if ($acl->rename ('example', @trace)) {
ok (1, 'Renaming the ACL');
} else {
is ($acl->error, '', 'Renaming the ACL');
@@ -83,7 +83,8 @@ ok (defined ($acl), ' and it can still found by ID');
is ($@, '', ' with no exceptions');
is ($acl->name, 'example', ' and the right name');
is ($acl->id, 2, ' and the right ID');
-ok (! $acl->rename ('ADMIN'), ' but renaming to an existing name fails');
+ok (! $acl->rename ('ADMIN', @trace),
+ ' but renaming to an existing name fails');
like ($acl->error, qr/^cannot rename ACL 2 to ADMIN: /,
' with the right error');
@@ -195,6 +196,8 @@ my $date = strftime ('%Y-%m-%d %H:%M:%S', localtime $trace[2]);
my $history = <<"EOO";
$date create
by $admin from $host
+$date rename from test
+ by $admin from $host
$date add krb5 $user1
by $admin from $host
$date add krb5 $user2