aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit/tests/dcaegen2/prh_testcases/resources/PrhLibrary.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/csit/tests/dcaegen2/prh_testcases/resources/PrhLibrary.py')
-rw-r--r--test/csit/tests/dcaegen2/prh_testcases/resources/PrhLibrary.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/csit/tests/dcaegen2/prh_testcases/resources/PrhLibrary.py b/test/csit/tests/dcaegen2/prh_testcases/resources/PrhLibrary.py
index 72f491efe..f07f385f5 100644
--- a/test/csit/tests/dcaegen2/prh_testcases/resources/PrhLibrary.py
+++ b/test/csit/tests/dcaegen2/prh_testcases/resources/PrhLibrary.py
@@ -5,11 +5,12 @@ class PrhLibrary(object):
def __init__(self):
pass
- def check_log_for_missing_IP(self):
+ def check_for_log(self, search_for):
client = docker.from_env()
container = client.containers.get('prh')
for line in container.logs(stream=True):
- if "org.onap.dcaegen2.services.prh.exceptions.DmaapNotFoundException: IPV4 and IPV6 are empty" in line.strip():
+ if search_for in line.strip():
return True
else:
- return False \ No newline at end of file
+ return False
+ \ No newline at end of file