Fix import for oskenbgp
Running the tests in distro build env fails currently with: Failed to import test module: os_ken.tests.integrated.bgp.test_ip6_basic Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 456, in _find_test_path module = self._get_module_from_name(name) File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 395, in _get_module_from_name __import__(name) File "os_ken/tests/integrated/bgp/test_ip6_basic.py", line 22, in <module> from . import base_ip6 as base File "os_ken/tests/integrated/bgp/base_ip6.py", line 24, in <module> from os_ken.tests.integrated.common import os_kenbgp ImportError: cannot import name os_kenbgp The filename is os_ken/tests/integrated/common/oskenbgp.py so import the correct module. Story: 2005392 Task: 30381 Change-Id: Ie10da6df1a13e19d0ba20b4fa2c4c61125152f58
This commit is contained in:
parent
a3b706a774
commit
4429c77bd0
@ -21,7 +21,7 @@ import sys
|
||||
import unittest
|
||||
|
||||
from os_ken.tests.integrated.common import docker_base as ctn_base
|
||||
from os_ken.tests.integrated.common import os_kenbgp
|
||||
from os_ken.tests.integrated.common import oskenbgp
|
||||
from os_ken.tests.integrated.common import quagga
|
||||
|
||||
|
||||
@ -48,7 +48,7 @@ class BgpSpeakerTestBase(unittest.TestCase):
|
||||
cls.q_img = 'osrg/quagga'
|
||||
cls.images.append(cls.q_img)
|
||||
|
||||
cls.r1 = os_kenbgp.OSKenBGPContainer(name='r1', asn=64512,
|
||||
cls.r1 = oskenbgp.OSKenBGPContainer(name='r1', asn=64512,
|
||||
router_id='192.168.0.1',
|
||||
ctn_image_name=cls.r_img)
|
||||
cls.containers.append(cls.r1)
|
||||
|
@ -21,7 +21,7 @@ import sys
|
||||
import unittest
|
||||
|
||||
from os_ken.tests.integrated.common import docker_base as ctn_base
|
||||
from os_ken.tests.integrated.common import os_kenbgp
|
||||
from os_ken.tests.integrated.common import oskenbgp
|
||||
from os_ken.tests.integrated.common import quagga
|
||||
|
||||
|
||||
@ -48,7 +48,7 @@ class BgpSpeakerTestBase(unittest.TestCase):
|
||||
cls.q_img = 'osrg/quagga'
|
||||
cls.images.append(cls.q_img)
|
||||
|
||||
cls.r1 = os_kenbgp.OSKenBGPContainer(name='r1', asn=64512,
|
||||
cls.r1 = oskenbgp.OSKenBGPContainer(name='r1', asn=64512,
|
||||
router_id='192.168.0.1',
|
||||
ctn_image_name=cls.r_img)
|
||||
cls.containers.append(cls.r1)
|
||||
|
Loading…
Reference in New Issue
Block a user