From 5ef7d2a4e75fbfd62d2e3df0f0781fa6b1b33671 Mon Sep 17 00:00:00 2001
From: alaskowski <alaskowski@ethz.ch>
Date: Mon, 17 Jul 2023 18:24:48 +0200
Subject: [PATCH] SSDM-13735: configuring code for running pybis tests against
 openbis

---
 api-openbis-python3-pybis/src/python/pybis/pybis.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/api-openbis-python3-pybis/src/python/pybis/pybis.py b/api-openbis-python3-pybis/src/python/pybis/pybis.py
index 00e8a884e43..783ff82fc6e 100644
--- a/api-openbis-python3-pybis/src/python/pybis/pybis.py
+++ b/api-openbis-python3-pybis/src/python/pybis/pybis.py
@@ -1267,6 +1267,7 @@ class Openbis:
         """internal method, used to handle all post requests and serializing / deserializing
         data
         """
+
         if "id" not in request:
             request["id"] = "2"
         if "jsonrpc" not in request:
@@ -1276,7 +1277,7 @@ class Openbis:
 
         if DEBUG_LEVEL >= LOG_DEBUG:
             print(json.dumps(request))
-
+        print(f"Full url:{full_url}")
         try:
             resp = requests.post(
                 full_url, json.dumps(request), verify=self.verify_certificates
@@ -1335,10 +1336,10 @@ class Openbis:
             "params": [username, password],
         }
         token = self._post_request(self.as_v3, login_request)
-        print(self.as_v3)
-        print(login_request)
-        print(token)
         if token is None or (is_different_login() and token == self.token):
+            print(self.as_v3)
+            print(login_request)
+            print(token)
             raise ValueError("login to openBIS failed")
         self.token = token
         if save_token:
-- 
GitLab