From cfd26b9b18e5a6dbe023f983b233ce94c68bdd46 Mon Sep 17 00:00:00 2001 From: Mariusz Wagner Date: Wed, 13 Jun 2018 14:30:27 +0200 Subject: Added TC with missing IP Issue-ID: INT-530 Change-Id: Ie3d7062ce72b275d3268403114b79c042a1ac77c Signed-off-by: Mariusz Wagner --- .../tests/dcaegen2/prh_testcases/resources/PrhLibrary.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/csit/tests/dcaegen2/prh_testcases/resources/PrhLibrary.py (limited to 'test/csit/tests/dcaegen2/prh_testcases/resources/PrhLibrary.py') 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 -- cgit 1.2.3-korg