mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-24 21:35:00 +00:00
PT-191 - add ssl options to DSN
- Updated ssl tests, so they test option --mysql_ssl and DSN
This commit is contained in:
@@ -81,6 +81,30 @@ unlike(
|
||||
"No innodb_max_dirty_pages_pct warning (bug 1168106)"
|
||||
);
|
||||
|
||||
($output, $exit_code) = full_output(
|
||||
sub { pt_variable_advisor::main("${dsn}",
|
||||
qw(--user sha256_user --password sha256_user%password --mysql_ssl 1)) },
|
||||
stderr => 1,
|
||||
);
|
||||
|
||||
is(
|
||||
$exit_code,
|
||||
0,
|
||||
"No error for user, identified with caching_sha2_password with option --mysql_ssl"
|
||||
) or diag($output);
|
||||
|
||||
unlike(
|
||||
$output,
|
||||
qr/Authentication plugin 'caching_sha2_password' reported error: Authentication requires secure connection./,
|
||||
'No secure connection error with option --mysql_ssl'
|
||||
) or diag($output);
|
||||
|
||||
unlike(
|
||||
$output,
|
||||
qr/innodb_max_dirty_pages_pct/,
|
||||
"No innodb_max_dirty_pages_pct warning (bug 1168106) with option --mysql_ssl"
|
||||
);
|
||||
|
||||
($output, $exit_code) = full_output(
|
||||
sub { pt_variable_advisor::main("F=t/pt-archiver/samples/pt-191.cnf,${dsn},u=sha256_user,p=sha256_user%password,s=1") },
|
||||
stderr => 1,
|
||||
|
Reference in New Issue
Block a user