diff --git a/mistral_tempest_tests/tests/api/v2/test_action_executions.py b/mistral_tempest_tests/tests/api/v2/test_action_executions.py index 4d5ff9a..edb7b3a 100644 --- a/mistral_tempest_tests/tests/api/v2/test_action_executions.py +++ b/mistral_tempest_tests/tests/api/v2/test_action_executions.py @@ -46,9 +46,11 @@ class ActionExecutionTestsV2(base.TestCase): try: cls.client.delete_obj('action_executions', action_ex) except Exception as e: - LOG.exception('Exception raised when deleting ' - 'action_executions %s, error message: %s.' - % (action_ex, six.text_type(e))) + LOG.exception( + 'Exception raised when deleting ' + 'action_executions %s, error message: %s.', + action_ex, six.text_type(e) + ) cls.client.action_executions = [] diff --git a/mistral_tempest_tests/tests/scenario/engine/actions/v2/test_ssh_actions.py b/mistral_tempest_tests/tests/scenario/engine/actions/v2/test_ssh_actions.py index 4b998f8..38e3231 100644 --- a/mistral_tempest_tests/tests/scenario/engine/actions/v2/test_ssh_actions.py +++ b/mistral_tempest_tests/tests/scenario/engine/actions/v2/test_ssh_actions.py @@ -100,7 +100,7 @@ class SSHActionsTestsV2(base.TestCaseAdvanced): def _wait_until_server_up(cls, server_ip, timeout=120, delay=2): seconds_remain = timeout - LOG.info("Waiting server SSH [IP=%s]..." % server_ip) + LOG.info("Waiting server SSH [IP=%s]...", server_ip) while seconds_remain > 0: try: @@ -123,7 +123,7 @@ class SSHActionsTestsV2(base.TestCaseAdvanced): def _wait_until_server_active(cls, server_id, timeout=60, delay=2): seconds_remain = timeout - LOG.info("Waiting server [id=%s]..." % server_id) + LOG.info("Waiting server [id=%s]...", server_id) while seconds_remain > 0: server_info = cls.mgr.servers_client.show_server(server_id) @@ -141,7 +141,7 @@ class SSHActionsTestsV2(base.TestCaseAdvanced): def _wait_until_server_delete(cls, server_id, timeout=60, delay=2): seconds_remain = timeout - LOG.info("Deleting server [id=%s]..." % server_id) + LOG.info("Deleting server [id=%s]...", server_id) while seconds_remain > 0: try: @@ -181,9 +181,7 @@ class SSHActionsTestsV2(base.TestCaseAdvanced): overwrite=True ) - LOG.info( - "Private key saved to %s" % cls.key_dir + cls.key_name - ) + LOG.info("Private key saved to %s", cls.key_dir + cls.key_name) # Create keypair in nova. cls.mgr.keypairs_client.create_keypair(