debug bug 710: increased verbosity of ns.get_field, increased sleep for wait_for_value 28/7628/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Thu, 6 Jun 2019 15:55:09 +0000 (17:55 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Thu, 6 Jun 2019 15:55:18 +0000 (17:55 +0200)
Change-Id: I526b92892500ed989c8d0de2d0d8dfc1d78b9eee
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
osmclient/common/utils.py
osmclient/sol005/ns.py

index 6b6c6f9..937e121 100644 (file)
@@ -30,7 +30,7 @@ def wait_for_value(func, result=True, wait_time=10, catch_exception=None):
                 return True
         except catch_exception:
             pass
-        time.sleep(1)
+        time.sleep(5)
     try:
         return func() == result
     except catch_exception:
index 0e178c2..1c45f01 100644 (file)
@@ -453,6 +453,7 @@ class Ns(object):
 
     def get_field(self, ns_name, field):
         nsr = self.get(ns_name)
+        print(yaml.safe_dump(nsr))
         if nsr is None:
             raise NotFound("failed to retrieve ns {}".format(ns_name))