diff options
author | umry8364 <morgan.richomme@orange.com> | 2019-08-28 12:06:30 +0200 |
---|---|---|
committer | DR695H <dr695h@att.com> | 2019-08-28 15:44:21 -0400 |
commit | d4af56d4c2f67a1285da783764f20a0c1c546592 (patch) | |
tree | 59e9b8921fe341f36f58168b4365cef2185879a0 /robotframework-onap/ONAPLibrary | |
parent | f2b75da8dd38077c60cc2c852f73092980c1f906 (diff) |
Add tox
it would create virtualenv to
- run tests in python2.7 and 3
- perform linting operations (flake8, pylint)
Issue-ID: INT-1228
Change-Id: I451e1108285f6ebffc650bf3de4f175594ec796d
Signed-off-by: umry8364 <morgan.richomme@orange.com>
Signed-off-by: DR695H <dr695h@att.com>
Diffstat (limited to 'robotframework-onap/ONAPLibrary')
-rw-r--r-- | robotframework-onap/ONAPLibrary/BaseAAIKeywords.py | 4 | ||||
-rw-r--r-- | robotframework-onap/ONAPLibrary/CloudConfigSOKeywords.py | 2 | ||||
-rw-r--r-- | robotframework-onap/ONAPLibrary/KafkaKeywords.py | 1 |
3 files changed, 3 insertions, 4 deletions
diff --git a/robotframework-onap/ONAPLibrary/BaseAAIKeywords.py b/robotframework-onap/ONAPLibrary/BaseAAIKeywords.py index 0b312df..762a2ee 100644 --- a/robotframework-onap/ONAPLibrary/BaseAAIKeywords.py +++ b/robotframework-onap/ONAPLibrary/BaseAAIKeywords.py @@ -80,7 +80,7 @@ class BaseAAIKeywords(object): def find_node(self, search_node_type, key, node_uuid, auth=None, client_certs=None): data_path = '/aai/v11/search/nodes-query?search-node-type={0}&filter={1}:EQUALS:{2}'.format( search_node_type, key, node_uuid) - resp = self.reqs.get_request("aai", self.aai_endpoint, data_path, accept="application/json", auth=auth, - client_certs=client_certs) + resp = self.reqs.get_request(alias="aai", endpoint=self.aai_endpoint, data_path=data_path, + accept="application/json", auth=auth, client_certs=client_certs) response = resp.json() return 'result-data' in response diff --git a/robotframework-onap/ONAPLibrary/CloudConfigSOKeywords.py b/robotframework-onap/ONAPLibrary/CloudConfigSOKeywords.py index fb8808d..fe487a2 100644 --- a/robotframework-onap/ONAPLibrary/CloudConfigSOKeywords.py +++ b/robotframework-onap/ONAPLibrary/CloudConfigSOKeywords.py @@ -31,7 +31,7 @@ class CloudConfigSOKeywords(object): @keyword def get_cloud_configuration(self, endpoint, data_path, site_name, auth=None): """Gets cloud configuration in SO""" - return self.reqs.get_request("so", endpoint, data_path + "/" + site_name, auth=auth) + return self.reqs.get_request(alias="so", endpoint=endpoint, data_path=data_path + "/" + site_name, auth=auth) @keyword def create_cloud_configuration(self, endpoint, data_path, templates_folder, template, arguments, auth=None): diff --git a/robotframework-onap/ONAPLibrary/KafkaKeywords.py b/robotframework-onap/ONAPLibrary/KafkaKeywords.py index 44ffb49..329729b 100644 --- a/robotframework-onap/ONAPLibrary/KafkaKeywords.py +++ b/robotframework-onap/ONAPLibrary/KafkaKeywords.py @@ -105,5 +105,4 @@ class KafkaKeywords(object): else: for tp in partitions: consumer.seek(tp, offset - 1) - return consumer |