| 1 |
# Test cases for mysql_ssl_rsa_setup binary |
| 2 |
# Setup |
| 3 |
# Case 1 : Generate Files |
| 4 |
# Case 2 : Files are present : Generation should be skipped |
| 5 |
Pattern "Certificate files are present in given dir. Skipping generation." found |
| 6 |
Pattern "RSA key files are present in given dir. Skipping generation." found |
| 7 |
# Case 3 : Certificate files are not present but RSA key files are present. |
| 8 |
# Only SSL certificates and keys should be generated. |
| 9 |
Pattern "Executing : openssl x509" found |
| 10 |
Pattern "Executing : openssl req" found |
| 11 |
Pattern "RSA key files are present in given dir. Skipping generation." found |
| 12 |
# Case 4 : Certificate files are present but RSA key files are not present. |
| 13 |
# Only RSA key files should be generated. |
| 14 |
Pattern "Certificate files are present in given dir. Skipping generation." found |
| 15 |
Pattern "Executing : openssl genrsa" found |
| 16 |
# Case 5 : Remove only client-cert.pem and client-key.pem. |
| 17 |
# Certificate files should not be generated. |
| 18 |
Pattern "Certificate files are present in given dir. Skipping generation." found |
| 19 |
# Case 6 : Remove server-key.pem and public_key.pem. |
| 20 |
# Certificates and RSA keys should not be generated. |
| 21 |
Pattern "Certificate files are present in given dir. Skipping generation." found |
| 22 |
Pattern "RSA key files are present in given dir. Skipping generation." found |
| 23 |
# Case 7 : Provide Invalid directory |
| 24 |
Pattern "Failed to access directory pointed by" found |
| 25 |
# Case 8 : Custom suffix of invalid length |
| 26 |
Pattern "Maximum number of characters allowed as the value for --suffix are 17" found |
| 27 |
# Case 9 : Custom suffix of valid length |
| 28 |
Pattern "MySQL_Server_wl7706_test_Auto_Generated_CA_Certificate" found |
| 29 |
Pattern "MySQL_Server_wl7706_test_Auto_Generated_Server_Certificate" found |
| 30 |
Pattern "MySQL_Server_wl7706_test_Auto_Generated_Server_Certificate" found |
| 31 |
# Case 10 : Custom suffix with invalid characters |
| 32 |
Pattern "Invalid string" found |
| 33 |
# Case 11 : Help and Version information |
| 34 |
Pattern "MySQL SSL Certificate and RSA Key Generation Utility" found |
| 35 |
Pattern "MySQL SSL Certificate and RSA Key Generation Utility" found |
| 36 |
Pattern "Ver " found |
| 37 |
Pattern "Ver " found |
| 38 |
# Case 12 : Very long path |
| 39 |
Pattern "Dir path is too long" found |
| 40 |
# |
| 41 |
# Bug#21087116 : MYSQL_SSL_RSA_SETUP CREATES CLIENT-CERT.PEM WITH INCORRECT CN |
| 42 |
# |
| 43 |
# CN of CA certificate should be MySQL_Server_.*_Auto_Generated_CA_Certificate |
| 44 |
Pattern "MySQL_Server_.*_Auto_Generated_CA_Certificate" found |
| 45 |
# CN of Server certificate should be MySQL_Server_.*_Auto_Generated_Server_Certificate |
| 46 |
Pattern "MySQL_Server_.*_Auto_Generated_Server_Certificate" found |
| 47 |
# CN of Client certificate should be MySQL_Server_.*_Auto_Generated_Client_Certificate |
| 48 |
Pattern "MySQL_Server_.*_Auto_Generated_Client_Certificate" found |
| 49 |
# Global Cleanup |
| 50 |
# |
| 51 |
# Bug#21025377: CAN'T CONNECT TO SSL ENABLED SERVER FIRST 30 SEC AFTER |
| 52 |
# INITIAL STARTUP |
| 53 |
# |
| 54 |
# Restart the server |
| 55 |
# Restart completed. |
| 56 |
No ssl errors found after running mysql server with newely created certs. |
| 57 |
# restart: |
| 58 |
# |
| 59 |
# WL#15668: Deprecate mysql_ssl_rsa_setup |
| 60 |
# |
| 61 |
include/assert_grep.inc [Looking for a deprecation message] |