aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit/tests/dcaegen2/prh_testcases/resources/PrhLibrary.py
diff options
context:
space:
mode:
authorMariusz Wagner <mariusz.wagner@nokia.com>2018-06-13 14:30:27 +0200
committerMariusz Wagner <mariusz.wagner@nokia.com>2018-06-13 14:30:27 +0200
commitcfd26b9b18e5a6dbe023f983b233ce94c68bdd46 (patch)
treef9e4b7441f3b97053b7b601df2431fe7b320088c /test/csit/tests/dcaegen2/prh_testcases/resources/PrhLibrary.py
parenta0fe61ca9277cda8f84dfdd0c060a29b0827295a (diff)
Added TC with missing IP
Issue-ID: INT-530 Change-Id: Ie3d7062ce72b275d3268403114b79c042a1ac77c Signed-off-by: Mariusz Wagner <mariusz.wagner@nokia.com>
Diffstat (limited to 'test/csit/tests/dcaegen2/prh_testcases/resources/PrhLibrary.py')
-rw-r--r--test/csit/tests/dcaegen2/prh_testcases/resources/PrhLibrary.py15
1 files changed, 15 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..72f491efe
--- /dev/null
+++ b/test/csit/tests/dcaegen2/prh_testcases/resources/PrhLibrary.py
@@ -0,0 +1,15 @@
+import docker
+
+class PrhLibrary(object):
+
+ def __init__(self):
+ pass
+
+ def check_log_for_missing_IP(self):
+ 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():
+ return True
+ else:
+ return False \ No newline at end of file