diff options
author | jose.lausuch <jose.lausuch@ericsson.com> | 2016-07-20 13:37:41 +0200 |
---|---|---|
committer | jose.lausuch <jose.lausuch@ericsson.com> | 2016-07-20 13:58:18 +0200 |
commit | 4cd8b20676cf12bbbf6ab281700220fd61174e7a (patch) | |
tree | 6f64f7d72e5eecfc1daa8581c379db275ad8eca6 /testcases/features | |
parent | 76a691ab6bba6bf0eca9e04ebb5632647ccf8ba6 (diff) |
Remove logger as input parameter of functions in openstack_utils
JIRA: FUNCTEST-376
Also some fixes to get rid of flake8 violations in onos-sfc
Change-Id: I52c2fd30a6b81af20ea779db2d73b9386524f7ce
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'testcases/features')
-rwxr-xr-x | testcases/features/promise.py | 15 | ||||
-rwxr-xr-x | testcases/features/sfc/sfc.py | 8 |
2 files changed, 10 insertions, 13 deletions
diff --git a/testcases/features/promise.py b/testcases/features/promise.py index fe1547af9..564f94709 100755 --- a/testcases/features/promise.py +++ b/testcases/features/promise.py @@ -14,16 +14,16 @@ import json import os import subprocess import time -import yaml - -import keystoneclient.v2_0.client as ksclient -import glanceclient.client as glclient -import novaclient.client as nvclient -from neutronclient.v2_0 import client as ntclient import functest.utils.functest_logger as ft_logger import functest.utils.functest_utils as functest_utils import functest.utils.openstack_utils as openstack_utils +import glanceclient.client as glclient +import keystoneclient.v2_0.client as ksclient +from neutronclient.v2_0 import client as ntclient +import novaclient.client as nvclient +import yaml + parser = argparse.ArgumentParser() @@ -168,8 +168,7 @@ def main(): neutron = ntclient.Client(**nt_creds) - network_dic = openstack_utils.create_network_full(logger, - neutron, + network_dic = openstack_utils.create_network_full(neutron, NET_NAME, SUBNET_NAME, ROUTER_NAME, diff --git a/testcases/features/sfc/sfc.py b/testcases/features/sfc/sfc.py index dedf6e448..99aac66b1 100755 --- a/testcases/features/sfc/sfc.py +++ b/testcases/features/sfc/sfc.py @@ -93,11 +93,9 @@ def main(): IMAGE_PATH, disk=IMAGE_FORMAT, container="bare", - public=True, - logger=logger) + public=True) - network_dic = os_utils.create_network_full(logger, - neutron_client, + network_dic = os_utils.create_network_full(neutron_client, NET_NAME, SUBNET_NAME, ROUTER_NAME, @@ -109,7 +107,7 @@ def main(): network_id = network_dic["net_id"] - sg_id = os_utils.create_security_group_full(logger, neutron_client, + sg_id = os_utils.create_security_group_full(neutron_client, SECGROUP_NAME, SECGROUP_DESCR) # boot INTANCE |