X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Flibraries%2FAuthStandalone.py;h=1ba99c1f176b004aa2e47072881c547a2e8ab339;hb=b2cd74063cbcdfadcbe20746116ec276e27ea0cb;hp=5e0c0eae4b180acc5a04a992224306d20b299a1b;hpb=5ae5def4713f994db87431017625d4a7dce7087c;p=integration%2Ftest.git diff --git a/csit/libraries/AuthStandalone.py b/csit/libraries/AuthStandalone.py index 5e0c0eae4b..1ba99c1f17 100644 --- a/csit/libraries/AuthStandalone.py +++ b/csit/libraries/AuthStandalone.py @@ -32,16 +32,16 @@ as URIs not starting with /restconf/ are not supported yet. # terms of the Eclipse Public License v1.0 which accompanies this distribution, # and is available at http://www.eclipse.org/legal/epl-v10.html +import json +import requests + + __author__ = "Vratko Polak" __copyright__ = "Copyright(c) 2015, Cisco Systems, Inc." __license__ = "Eclipse Public License v1.0" __email__ = "vrpolak@cisco.com" -import json -import requests - - # # Karaf Keyword definitions. # @@ -152,7 +152,6 @@ class _TokenReusingSession(object): raise RuntimeError("Parse failed: " + resp.text) self.token = token # TODO: Use logging so that callers could see token refreshes. - # print "DEBUG: token:", token # We keep self.session to use for the following restconf requests. def oneshot_method(self, method, uri, **kwargs): @@ -200,7 +199,6 @@ class _TokenClosingSession(object): raise RuntimeError("Parse failed: " + resp.text) self.token = token # TODO: Use logging so that callers could see token refreshes. - # print "DEBUG: token:", token # We keep self.session to use for the following restconf requests. def oneshot_method(self, method, uri, **kwargs):