3 # Copyright (c) 2017 Orange and others.
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # pylint: disable=missing-docstring
15 from functest.opnfv_tests.features import security_scan
16 from functest.utils import constants
19 class SecurityScanTesting(unittest.TestCase):
21 logging.disable(logging.CRITICAL)
24 self.sscan = security_scan.SecurityScan(case_name="security_scan")
27 self.assertEqual(self.sscan.project_name, "securityscanning")
28 self.assertEqual(self.sscan.case_name, "security_scan")
31 constants.CONST.__getattribute__("dir_repo_securityscan"))
34 '. {0}/stackrc && cd {1} && '
35 'python security_scan.py --config config.ini && '
37 constants.CONST.__getattribute__("dir_functest_conf"),
41 if __name__ == "__main__":
42 unittest.main(verbosity=2)