diff options
author | selias <samelias@cisco.com> | 2017-05-18 11:56:52 +0200 |
---|---|---|
committer | Samuel Eliáš <samelias@cisco.com> | 2017-05-23 10:44:46 +0000 |
commit | 52acfc5f0d7fa35676125270f6730d1c46aa33b7 (patch) | |
tree | 611daa9b588c2901d4914f2648b1d247779b038e /resources/libraries/python/HTTPRequest.py | |
parent | 00ccec50bf75f17de88e7e37af8aa62a4966e628 (diff) |
CSIT-577 HC Test: Scripts for test jobs using ODL client
ODL client can be used to translate Restconf requests into Netconf. This
way Honeycomb's Netconf interface can be tested using existing test cases.
- add bootstrap scripts for verify and integration job
- update __init__.robot to handle new {HC_ODL} variable
Change-Id: I410d3e56b8d4f18e672b4886f4f025456bf00655
Signed-off-by: selias <samelias@cisco.com>
Diffstat (limited to 'resources/libraries/python/HTTPRequest.py')
-rw-r--r-- | resources/libraries/python/HTTPRequest.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/resources/libraries/python/HTTPRequest.py b/resources/libraries/python/HTTPRequest.py index d553c6641f..69774ff52f 100644 --- a/resources/libraries/python/HTTPRequest.py +++ b/resources/libraries/python/HTTPRequest.py @@ -1,4 +1,4 @@ -# Copyright (c) 2016 Cisco and/or its affiliates. +# Copyright (c) 2017 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -179,9 +179,12 @@ class HTTPRequest(object): """ timeout = kwargs["timeout"] - if BuiltIn().get_variable_value("${use_odl_client}"): - # TODO: node["honeycomb"]["odl_port"] + use_odl = BuiltIn().get_variable_value("${use_odl_client}") + + if use_odl: port = 8181 + # Using default ODL Restconf port + # TODO: add node["honeycomb"]["odl_port"] to topology, use it here odl_url_part = "/network-topology:network-topology/topology/" \ "topology-netconf/node/vpp/yang-ext:mount" else: |