aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/features/security_scan.py
diff options
context:
space:
mode:
authorLinda Wang <wangwulin@huawei.com>2017-03-03 07:19:08 +0000
committerLinda Wang <wangwulin@huawei.com>2017-03-03 08:02:09 +0000
commitf73bb0c60abc32d67dc6bc0a41ad923fb89aeb3d (patch)
tree2632cfafeff2ecfeb2d1aa9ab26c707542f48de1 /functest/opnfv_tests/features/security_scan.py
parenta5cb507c061738a50ca358147a135a1c4498ff22 (diff)
Bugfix: make security_scan authorized
JIRA: FUNCTEST-732 "OS_AUTH_URL" in the file "stackrc" in undercloud is needed when trying to obtain controller and compute nodes of openstack. Thus, when running the security_scan.py, source stackrc is needed. This patch will make security_scan work in CI until the patch in securityscanning repo is merged: https://gerrit.opnfv.org/gerrit/#/c/29705/ Change-Id: I379c3a71522973887d1ea698ab1df761354e6c36 Signed-off-by: Linda Wang <wangwulin@huawei.com>
Diffstat (limited to 'functest/opnfv_tests/features/security_scan.py')
-rwxr-xr-xfunctest/opnfv_tests/features/security_scan.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/functest/opnfv_tests/features/security_scan.py b/functest/opnfv_tests/features/security_scan.py
index 2db44175..58f0ec74 100755
--- a/functest/opnfv_tests/features/security_scan.py
+++ b/functest/opnfv_tests/features/security_scan.py
@@ -17,8 +17,8 @@ class SecurityScan(base.FeatureBase):
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))