aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/features/security_scan.py
diff options
context:
space:
mode:
Diffstat (limited to 'functest/opnfv_tests/features/security_scan.py')
-rw-r--r--functest/opnfv_tests/features/security_scan.py19
1 files changed, 9 insertions, 10 deletions
diff --git a/functest/opnfv_tests/features/security_scan.py b/functest/opnfv_tests/features/security_scan.py
index e7256380..8f167259 100644
--- a/functest/opnfv_tests/features/security_scan.py
+++ b/functest/opnfv_tests/features/security_scan.py
@@ -12,13 +12,12 @@ import functest.core.feature as base
from functest.utils.constants import CONST
-class SecurityScan(base.Feature):
- def __init__(self, case_name='security_scan'):
- super(SecurityScan, self).__init__(project='securityscanning',
- case_name=case_name,
- repo='dir_repo_securityscan')
- self.cmd = ('. {0}/stackrc && '
- 'cd {1} && '
- 'python security_scan.py --config config.ini && '
- 'cd -'.format(CONST.dir_functest_conf,
- self.repo))
+class SecurityScan(base.BashFeature):
+ def __init__(self, **kwargs):
+ repo = CONST.__getattribute__('dir_repo_securityscan')
+ conf = CONST.__getattribute__('dir_functest_conf')
+ kwargs["cmd"] = ('. {0}/stackrc && '
+ 'cd {1} && '
+ 'python security_scan.py --config config.ini && '
+ 'cd -'.format(conf, repo))
+ super(SecurityScan, self).__init__(**kwargs)