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.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/csit/tests/dcaegen2/prh-testcases/resources/PrhLibrary.py b/test/csit/tests/dcaegen2/prh-testcases/resources/PrhLibrary.py
new file mode 100644
index 000000000..f07f385f5
--- /dev/null
+++ b/test/csit/tests/dcaegen2/prh-testcases/resources/PrhLibrary.py
@@ -0,0 +1,16 @@
+import docker
+
+class PrhLibrary(object):
+
+ def __init__(self):
+ pass
+
+ def check_for_log(self, search_for):
+ client = docker.from_env()
+ container = client.containers.get('prh')
+ for line in container.logs(stream=True):
+ if search_for in line.strip():
+ return True
+ else:
+ return False
+ \ No newline at end of file