Skip to content

Commit

Permalink
ovn-tester: Move tests into CMS plugin.
Browse files Browse the repository at this point in the history
The test cases in `ovn-tester/tests` are all CMS specific.  Now
that we have CMS plugins, relocate the test code along with them.

Signed-off-by: Frode Nordahl <[email protected]>
  • Loading branch information
fnordahl committed Sep 21, 2023
1 parent b67096a commit bc24b19
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tests.netpol import NetPol
from cms.ovn_kubernetes.tests.netpol import NetPol


class NetpolLarge(NetPol):
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tests.netpol import NetPol
from cms.ovn_kubernetes.tests.netpol import NetPol


class NetpolSmall(NetPol):
Expand Down
File renamed without changes.
4 changes: 3 additions & 1 deletion ovn-tester/ovn_tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ def configure_tests(yaml, central_node, worker_nodes, global_cfg):
if section in RESERVED:
continue

mod = importlib.import_module(f'tests.{section}')
mod = importlib.import_module(
f'cms.{global_cfg.cms_name}.tests.{section}'
)
class_name = ''.join(s.title() for s in section.split('_'))
cls = getattr(mod, class_name)
tests.append(cls(yaml, central_node, worker_nodes, global_cfg))
Expand Down

0 comments on commit bc24b19

Please sign in to comment.