Add mysql test
This commit is contained in:
parent
07d8db7621
commit
8d2b8389cd
|
@ -242,6 +242,11 @@ class NovajoinScenarioTest(manager.ScenarioTest):
|
|||
# TODO(alee) Get from hiera nova::migration::libvirt::listen_address
|
||||
return "16514"
|
||||
|
||||
def verify_mysql_tls_connection(self, user, host_ip):
|
||||
cmd = "sudo mysql --ssl -e \"SHOW SESSION STATUS LIKE 'Ssl_version';\""
|
||||
result = self.execute_on_controller(user, host_ip, cmd)
|
||||
self.assertTrue('TLS' in result)
|
||||
|
||||
def execute_on_controller(self, user, hostip, target_cmd):
|
||||
keypair = '/home/stack/.ssh/id_rsa'
|
||||
cmd = ['ssh', '-i', keypair,
|
||||
|
|
|
@ -129,3 +129,8 @@ class TripleOTLSTest(novajoin_manager.NovajoinScenarioTest):
|
|||
hostport="{host}:{port}".format(host=compute_ip,
|
||||
port=libvirt_port)
|
||||
)
|
||||
|
||||
def test_mysql_tls_setup(self):
|
||||
for controller in CONF.novajoin.tripleo_controllers:
|
||||
controller_ip = self.get_overcloud_server_ip(controller)
|
||||
self.verify_mysql_tls_connection('heat-admin', controller_ip)
|
||||
|
|
Loading…
Reference in New Issue