summaryrefslogtreecommitdiffstats
path: root/vnftest/core/testsuite.py
diff options
context:
space:
mode:
authorMoshe <moshehoa@amdocs.com>2018-08-15 12:19:07 +0300
committerMoshe <moshehoa@amdocs.com>2018-08-15 17:00:11 +0300
commit5e5e493a5ec5048c0a340e2acd72f52869779fdf (patch)
treeb4f787f6df2a4414660d7f235dfc128cc86fdc2e /vnftest/core/testsuite.py
parent1a54248ad5b5f836ae915413ffefaa487d1f73f5 (diff)
versionize tests due to API changes in ONAP
Issue-ID: VNFSDK-301 Change-Id: I1fdf1b42fc2cd44021c2f33695c86bbbdc8bb62b Signed-off-by: Moshe <moshehoa@amdocs.com> fix tests Issue-ID: VNFSDK-301 Change-Id: I87abc962b13956af07ad8bf7355ea681343664dc Signed-off-by: Moshe <moshehoa@amdocs.com>
Diffstat (limited to 'vnftest/core/testsuite.py')
-rw-r--r--vnftest/core/testsuite.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/vnftest/core/testsuite.py b/vnftest/core/testsuite.py
index 986982a..9c58886 100644
--- a/vnftest/core/testsuite.py
+++ b/vnftest/core/testsuite.py
@@ -18,6 +18,8 @@
from __future__ import absolute_import
from __future__ import print_function
+import fnmatch
+
import os
import logging
@@ -41,7 +43,7 @@ class Testsuite(object):
def _get_testsuite_file_list(self):
try:
- testsuite_files = sorted(os.listdir(consts.TESTSUITE_DIR))
+ testsuite_files = sorted(fnmatch.filter(os.listdir(consts.TESTSUITE_DIR), '*.yaml'))
except OSError:
LOG.exception('Failed to list dir:\n%s\n', consts.TESTSUITE_DIR)
raise