mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-19 10:34:01 +00:00
PT-1448 Updated test for pt-show-grant MySQL 8 support
This commit is contained in:
@@ -82,8 +82,9 @@ unlike(
|
||||
'It has no timestamp',
|
||||
);
|
||||
|
||||
# 'mysql.infoschema'@'localhost' user only exists on MySQL 8.0+
|
||||
$output = output(
|
||||
sub { pt_show_grants::main('-F', $cnf, '--ignore', 'baron,msandbox,root,root@localhost,user,mysql.session@localhost,mysql.sys@localhost,sys'); }
|
||||
sub { pt_show_grants::main('-F', $cnf, '--ignore', 'baron,msandbox,root,root@localhost,user,mysql.session@localhost,mysql.sys@localhost,sys,mysql.infoschema@localhost'); }
|
||||
);
|
||||
unlike(
|
||||
$output,
|
||||
@@ -94,7 +95,7 @@ like(
|
||||
$output,
|
||||
qr/\d\d:\d\d:\d\d\n\z/,
|
||||
'No output when all users skipped'
|
||||
);
|
||||
) or diag($output);
|
||||
# #############################################################################
|
||||
# pt-show-grant doesn't support column-level grants
|
||||
# https://bugs.launchpad.net/percona-toolkit/+bug/866075
|
||||
|
Reference in New Issue
Block a user