From d262b55a1e29b1202cd584f859d2d221d9addb8c Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Mon, 26 Feb 2018 11:31:48 +0100 Subject: Stop raising keystoneauth1 exceptions in odl unit tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It simply raises Exceptions to avoid depending on keystoneauth1. Snaps may also reraise another exception. Change-Id: Ib3041b2d8ff51ee098f2bf0b9918079b7945abf3 Signed-off-by: Cédric Ollivier --- functest/tests/unit/odl/test_odl.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'functest/tests') diff --git a/functest/tests/unit/odl/test_odl.py b/functest/tests/unit/odl/test_odl.py index c11948bb..aa31703b 100644 --- a/functest/tests/unit/odl/test_odl.py +++ b/functest/tests/unit/odl/test_odl.py @@ -13,7 +13,6 @@ import logging import os import unittest -from keystoneauth1.exceptions import auth_plugins import mock from robot.errors import RobotError import six @@ -331,7 +330,7 @@ class ODLRunTesting(ODLTesting): def test_exc(self): with mock.patch('snaps.openstack.utils.keystone_utils.get_endpoint', - side_effect=auth_plugins.MissingAuthPlugin()): + side_effect=Exception()): self.assertEqual(self.test.run(), testcase.TestCase.EX_RUN_ERROR) -- cgit 1.2.3-korg