diff options
author | Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com> | 2018-06-21 13:28:03 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-06-21 13:28:03 +0000 |
commit | 8cfd8dc7cba5719046f60139fca97b32841b902a (patch) | |
tree | f8710120594133ea351a6362c1d1cc36ad2186bb /tests/unit/network_services | |
parent | 980ff9b7b35bbb021c7d4cd2b9bc6a2a0b7eaa09 (diff) | |
parent | d19daf93623d07d50977f1dc0e126c91383b3bd1 (diff) |
Merge "Convert SSH custom exceptions to Yardstick exceptions" into stable/fraser
Diffstat (limited to 'tests/unit/network_services')
-rw-r--r-- | tests/unit/network_services/helpers/test_dpdkbindnic_helper.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/unit/network_services/helpers/test_dpdkbindnic_helper.py b/tests/unit/network_services/helpers/test_dpdkbindnic_helper.py index 367072e84..0278c20dc 100644 --- a/tests/unit/network_services/helpers/test_dpdkbindnic_helper.py +++ b/tests/unit/network_services/helpers/test_dpdkbindnic_helper.py @@ -17,7 +17,8 @@ import unittest import os -from yardstick.error import IncorrectConfig, SSHError +from yardstick.common import exceptions +from yardstick.error import IncorrectConfig from yardstick.error import IncorrectNodeSetup from yardstick.error import IncorrectSetup from yardstick.network_services.helpers.dpdkbindnic_helper import DpdkInterface @@ -244,7 +245,7 @@ class TestDpdkNode(unittest.TestCase): mock_ssh_helper = mock.Mock() mock_ssh_helper.execute.return_value = 0, '', '' - mock_intf_type().check.side_effect = SSHError + mock_intf_type().check.side_effect = exceptions.SSHError dpdk_node = DpdkNode(NAME, self.INTERFACES, mock_ssh_helper) |