diff options
Diffstat (limited to 'test/csit/tests/dcaegen2/prh_testcases/resources')
-rw-r--r-- | test/csit/tests/dcaegen2/prh_testcases/resources/PrhLibrary.py | 15 | ||||
-rw-r--r-- | test/csit/tests/dcaegen2/prh_testcases/resources/docker-compose.yml | 2 |
2 files changed, 16 insertions, 1 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 diff --git a/test/csit/tests/dcaegen2/prh_testcases/resources/docker-compose.yml b/test/csit/tests/dcaegen2/prh_testcases/resources/docker-compose.yml index e27d84516..e773b76a9 100644 --- a/test/csit/tests/dcaegen2/prh_testcases/resources/docker-compose.yml +++ b/test/csit/tests/dcaegen2/prh_testcases/resources/docker-compose.yml @@ -41,4 +41,4 @@ services: container_name: aai_simulator depends_on: - prh -
\ No newline at end of file + |