diff options
| author | Paul Tiplady <paultiplady@users.noreply.github.com> | 2017-06-19 15:11:25 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-06-19 18:11:25 -0400 |
| commit | 335a8d7895a0d73df3d41fac750ff8f412a989b2 (patch) | |
| tree | 84cecf2b803605ff756194b457ce112165d8a2d0 /tests/dbshell | |
| parent | a469e158a983e7c358dddb9e0e43f5f4423031c9 (diff) | |
Fixed #28322 -- Added dbshell support for MySQL client TLS certs.
Diffstat (limited to 'tests/dbshell')
| -rw-r--r-- | tests/dbshell/test_mysql.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/dbshell/test_mysql.py b/tests/dbshell/test_mysql.py index 7efb97d9cb..6b60e2722e 100644 --- a/tests/dbshell/test_mysql.py +++ b/tests/dbshell/test_mysql.py @@ -59,14 +59,21 @@ class MySqlDbshellCommandTestCase(SimpleTestCase): def test_ssl_certificate_is_added(self): self.assertEqual( ['mysql', '--user=someuser', '--password=somepassword', - '--host=somehost', '--port=444', '--ssl-ca=sslca', 'somedbname'], + '--host=somehost', '--port=444', '--ssl-ca=sslca', + '--ssl-cert=sslcert', '--ssl-key=sslkey', 'somedbname'], self.get_command_line_arguments({ 'NAME': 'somedbname', 'USER': 'someuser', 'PASSWORD': 'somepassword', 'HOST': 'somehost', 'PORT': 444, - 'OPTIONS': {'ssl': {'ca': 'sslca'}}, + 'OPTIONS': { + 'ssl': { + 'ca': 'sslca', + 'cert': 'sslcert', + 'key': 'sslkey', + }, + }, })) def get_command_line_arguments(self, connection_settings): |
