mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-27 16:12:04 +00:00
Test for bug 821709.
This commit is contained in:
@@ -23,7 +23,7 @@ if ( !$dbh ) {
|
|||||||
plan skip_all => 'Cannot connect to sandbox master';
|
plan skip_all => 'Cannot connect to sandbox master';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
plan tests => 9;
|
plan tests => 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
$sb->wipe_clean($dbh);
|
$sb->wipe_clean($dbh);
|
||||||
@@ -65,7 +65,11 @@ like(
|
|||||||
qr/at \d{4}/,
|
qr/at \d{4}/,
|
||||||
'It has a timestamp',
|
'It has a timestamp',
|
||||||
);
|
);
|
||||||
|
like(
|
||||||
|
$output,
|
||||||
|
qr/^REVOKE ALL PRIVILEGES/m,
|
||||||
|
"Revoke statement is correct (bug 821709)"
|
||||||
|
);
|
||||||
|
|
||||||
$output = output(
|
$output = output(
|
||||||
sub { pt_show_grants::main('-F', $cnf, qw(--no-timestamp --drop --flush --revoke --separate)); }
|
sub { pt_show_grants::main('-F', $cnf, qw(--no-timestamp --drop --flush --revoke --separate)); }
|
||||||
|
Reference in New Issue
Block a user