From 6d58832e04cad47380fe71235a6a85f6efd7199f Mon Sep 17 00:00:00 2001 From: Mariusz Wagner Date: Wed, 25 Jul 2018 12:26:49 +0200 Subject: Added TC Added TC when AAI is not responding Issue-ID: INT-600 Change-Id: Ibc2a0608a60a4ae6dff0aac062a2c412c307e659 Signed-off-by: Mariusz Wagner --- test/csit/tests/dcaegen2/prh-testcases/prh_tests.robot | 10 +++++++++- test/csit/tests/dcaegen2/prh-testcases/resources/PrhLibrary.py | 5 +++++ 2 files changed, 14 insertions(+), 1 deletion(-) (limited to 'test/csit/tests') diff --git a/test/csit/tests/dcaegen2/prh-testcases/prh_tests.robot b/test/csit/tests/dcaegen2/prh-testcases/prh_tests.robot index 52fe8557d..1504895af 100644 --- a/test/csit/tests/dcaegen2/prh-testcases/prh_tests.robot +++ b/test/csit/tests/dcaegen2/prh-testcases/prh_tests.robot @@ -48,4 +48,12 @@ Get valid event from DMaaP and record in AAI does not exist [Timeout] 30s Set pnf name in AAI wrong_aai_record Set event in DMAAP ${EVENT_WITH_ALL_VALID_REQUIRED_FIELDS} - Wait Until Keyword Succeeds 100x 100ms Check PRH log WARN 1 --- [pool-2-thread-1] o.o.d.s.prh.service.AAIProducerClient \ \ \ : Exception while executing http client: + Wait Until Keyword Succeeds 100x 300ms Check PRH log org.onap.dcaegen2.services.prh.exceptions.AAINotFoundException: Incorrect response code for continuation of tasks workflow + +Get valid event from DMaaP and AAI is not responding + [Documentation] PRH get valid event from DMaaP with all required fields and AAI is not responding - PRH does not produce PNF_READY notification + [Tags] PRH AAI + [Timeout] 180s + Stop AAI + Set event in DMAAP ${EVENT_WITH_ALL_VALID_REQUIRED_FIELDS} + Wait Until Keyword Succeeds 100x 300ms Check PRH log java.net.NoRouteToHostException: Host is unreachable (Host unreachable) diff --git a/test/csit/tests/dcaegen2/prh-testcases/resources/PrhLibrary.py b/test/csit/tests/dcaegen2/prh-testcases/resources/PrhLibrary.py index 7ecfb8b1c..2e52d0825 100644 --- a/test/csit/tests/dcaegen2/prh-testcases/resources/PrhLibrary.py +++ b/test/csit/tests/dcaegen2/prh-testcases/resources/PrhLibrary.py @@ -32,6 +32,11 @@ class PrhLibrary(object): def create_pnf_name(json_file): return _create_pnf_name(json_file) + @staticmethod + def stop_aai(): + client = docker.from_env() + container = client.containers.get('aai_simulator') + container.stop() def _create_pnf_name(json_file): json_to_python = json.loads(json_file) -- cgit 1.2.3-korg