mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-25 13:46:22 +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:
@@ -93,6 +93,33 @@ if ($sandbox_version ge '8.0') {
|
||||
);
|
||||
}
|
||||
|
||||
$output = `$cmd -d mysql -t columns_priv -v --host 127.1 --port 12345 --user sha256_user --password=sha256_user%password --mysql_ssl=1`;
|
||||
|
||||
is(
|
||||
$?,
|
||||
0,
|
||||
"No error for user, identified with caching_sha2_password with option --mysql_ssl=1"
|
||||
) 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=1'
|
||||
) or diag($output);
|
||||
|
||||
# In version 8.0 order of columns in the index changed
|
||||
if ($sandbox_version ge '8.0') {
|
||||
like($output,
|
||||
qr/PRIMARY \(`Host`,`User`,`Db`,`Table_name`,`Column_name`\)/,
|
||||
'Finds mysql.columns_priv PK with option --mysql_ssl=1'
|
||||
);
|
||||
} else {
|
||||
like($output,
|
||||
qr/PRIMARY \(`Host`,`Db`,`User`,`Table_name`,`Column_name`\)/,
|
||||
'Finds mysql.columns_priv PKi with option --mysql_ssl=1'
|
||||
);
|
||||
}
|
||||
|
||||
$output = `$cmd -d mysql -t columns_priv -v F=t/pt-archiver/samples/pt-191.cnf,P=12345,u=sha256_user,p=sha256_user%password,s=1 2>&1`;
|
||||
|
||||
is(
|
||||
|
Reference in New Issue
Block a user