3cde9d31228c7d5b439ef100cd1023cd32870c2a
[functest.git] / functest / opnfv_tests / features / security_scan.py
1 #!/usr/bin/python
2 #
3 # Copyright (c) 2015 All rights reserved
4 # This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10
11 import functest.core.feature as base
12 from functest.utils.constants import CONST
13
14
15 class SecurityScan(base.Feature):
16     def __init__(self):
17         super(SecurityScan, self).__init__(project='securityscanning',
18                                            case_name='security_scan',
19                                            repo='dir_repo_securityscan')
20         self.cmd = ('. {0}/stackrc && '
21                     'cd {1} && '
22                     'python security_scan.py --config config.ini && '
23                     'cd -'.format(CONST.dir_functest_conf,
24                                   self.repo))