summaryrefslogtreecommitdiffstats
path: root/testcases/security_scan
diff options
context:
space:
mode:
Diffstat (limited to 'testcases/security_scan')
-rw-r--r--testcases/security_scan/security_scan.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/testcases/security_scan/security_scan.py b/testcases/security_scan/security_scan.py
index 5910331a0..d39c29052 100644
--- a/testcases/security_scan/security_scan.py
+++ b/testcases/security_scan/security_scan.py
@@ -30,6 +30,7 @@ __url__ = 'https://wiki.opnfv.org/display/functest/Functest+Security'
# Global vars
INSTALLER_IP = os.getenv('INSTALLER_IP')
oscapbin = 'sudo /bin/oscap'
+functest_dir = '/home/opnfv/repos/functest/testcases/security_scan/'
# Apex Spefic var needed to query Undercloud
if os.getenv('OS_AUTH_URL') is None:
@@ -56,7 +57,7 @@ setup.getockey()
# Configure Nova Credentials
-com = 'sudo hiera admin_password'
+com = 'sudo /usr/bin/hiera admin_password'
setup = connect.SetUp(com)
keypass = setup.keystonepass()
auth = v2.Password(auth_url=OS_AUTH_URL,
@@ -108,7 +109,7 @@ def nova_iterate():
def createfiles(host, port, user, localkey):
import connect
global tmpdir
- localpath = os.getcwd() + '/scripts/createfiles.py'
+ localpath = functest_dir + 'scripts/createfiles.py'
remotepath = '/tmp/createfiles.py'
com = 'python /tmp/createfiles.py'
connect = connect.ConnectionManager(host, port, user, localkey,