Support SSL parameters in security group tests
Tests from StatelessSecurityGroupTest class were failing on OVN environments with TLS. This patch fixes this by specifying SSL parameters to ovn_nb_db command. Change-Id: Ia7b219ae41591ebcf58f52bc7cf40177b43e5908
This commit is contained in:
parent
5fcc695a12
commit
62339a4174
|
@ -58,7 +58,13 @@ class BaseSecurityGroupTest(testtools.TestCase):
|
|||
"sed -e 's/\"//g' | sed 's/6642/6641/g'",
|
||||
ssh_client=self.host_ssh_client,
|
||||
sudo=True)
|
||||
self._ovn_nb_db = command_result.stdout
|
||||
ssl_params = ''
|
||||
if 'ssl' in command_result.stdout:
|
||||
ssl_params = ' -p {} -c {} -C {} '.format(
|
||||
'/etc/pki/tls/private/ovn_controller.key',
|
||||
'/etc/pki/tls/certs/ovn_controller.crt',
|
||||
'/etc/ipa/ca.crt')
|
||||
self._ovn_nb_db = command_result.stdout + ssl_params
|
||||
return self._ovn_nb_db
|
||||
|
||||
@property
|
||||
|
|
Loading…
Reference in New Issue