Merge "More Unit Tests for ci directory"
[functest.git] / functest / opnfv_tests / features / security_scan.py
old mode 100755 (executable)
new mode 100644 (file)
index 2db4417..2374b39
@@ -8,17 +8,17 @@
 # http://www.apache.org/licenses/LICENSE-2.0
 #
 
-import functest.core.feature_base as base
+import functest.core.feature as base
 from functest.utils.constants import CONST
 
 
-class SecurityScan(base.FeatureBase):
+class SecurityScan(base.Feature):
     def __init__(self):
         super(SecurityScan, self).__init__(project='securityscanning',
                                            case='security_scan',
                                            repo='dir_repo_securityscan')
-        self.cmd = ('bash {0} && '
+        self.cmd = ('. {0}/stackrc && '
                     'cd {1} && '
                     'python security_scan.py --config config.ini && '
-                    'cd -'.format(CONST.openstack_creds,
+                    'cd -'.format(CONST.dir_functest_conf,
                                   self.repo))