aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2016-06-13 11:04:28 +0200
committerMorgan Richomme <morgan.richomme@orange.com>2016-06-13 11:04:28 +0200
commitc1f3735e32c61ffedb04bdc542a142ac04f6dbd7 (patch)
treed047cf846726cc97986804c3fdafeac7220b9902
parent9b8807120318bceb14fb7c1012652e04fe06b40a (diff)
Fix flake8 violations
Change-Id: I911eab6d4c0cdcfcf4d75f03e91c528d3388876c Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
-rw-r--r--testcases/Controllers/ODL/odlreport2db.py7
-rw-r--r--testcases/security_scan/connect.py1
-rw-r--r--testcases/security_scan/security_scan.py3
3 files changed, 3 insertions, 8 deletions
diff --git a/testcases/Controllers/ODL/odlreport2db.py b/testcases/Controllers/ODL/odlreport2db.py
index 028808411..3eff40060 100644
--- a/testcases/Controllers/ODL/odlreport2db.py
+++ b/testcases/Controllers/ODL/odlreport2db.py
@@ -24,11 +24,9 @@
import getopt
import json
-import os
import sys
import time
import xmltodict
-import yaml
import functest.utils.functest_utils as functest_utils
@@ -122,11 +120,6 @@ def main(argv):
json.dumps(data, indent=4, separators=(',', ': '))
- # Only used from container, we can set up absolute path
- with open(os.environ["CONFIG_FUNCTEST_YAML"]) as f:
- functest_yaml = yaml.safe_load(f)
- f.close()
-
try:
# example:
# python odlreport2db.py -x ~/Pictures/Perso/odl/output3.xml
diff --git a/testcases/security_scan/connect.py b/testcases/security_scan/connect.py
index d0ef02d56..cee83ddc5 100644
--- a/testcases/security_scan/connect.py
+++ b/testcases/security_scan/connect.py
@@ -23,6 +23,7 @@ INSTALLER_IP = os.getenv('INSTALLER_IP')
logger = ft_logger.Logger("security_scan").getLogger()
paramiko.util.log_to_file("/var/log/paramiko.log")
+
class setup:
def __init__(self, *args):
self.args = args
diff --git a/testcases/security_scan/security_scan.py b/testcases/security_scan/security_scan.py
index 9803dd3c1..797b564d4 100644
--- a/testcases/security_scan/security_scan.py
+++ b/testcases/security_scan/security_scan.py
@@ -62,7 +62,8 @@ nova = client.Client(2, session=sess)
def run_tests(host, nodetype):
user = cfgparse.get(nodetype, 'user')
port = cfgparse.get(nodetype, 'port')
- connect.logger.info("Host: {0} Selected Profile: {1}".format(host, nodetype))
+ connect.logger.info("Host: {0} Selected Profile: {1}".format(host,
+ nodetype))
connect.logger.info("Creating temp file structure..")
createfiles(host, port, user, localkey)
connect.logger.info("Installing OpenSCAP...")