From b3c4856c8f21d32593a05386d4f3e626e14ffb52 Mon Sep 17 00:00:00 2001 From: Marcin Migdal Date: Fri, 5 Apr 2019 14:37:51 +0200 Subject: Fix extracting PNF name Change-Id: I372f56adcd8224fc32025d739d5938996b8692ee Issue-ID: INT-989 Signed-off-by: Marcin Migdal --- tests/dcaegen2/prh-testcases/resources/PrhLibrary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/dcaegen2/prh-testcases') diff --git a/tests/dcaegen2/prh-testcases/resources/PrhLibrary.py b/tests/dcaegen2/prh-testcases/resources/PrhLibrary.py index 6667bd78..0dd01dcb 100644 --- a/tests/dcaegen2/prh-testcases/resources/PrhLibrary.py +++ b/tests/dcaegen2/prh-testcases/resources/PrhLibrary.py @@ -91,7 +91,7 @@ class PrhLibrary(object): @staticmethod def create_pnf_name(json_file): json_to_python = json.loads(json_file) - correlation_id = json_to_python.get("sourceName") + correlation_id = json_to_python.get("event").get("commonEventHeader").get("sourceName") + '",' if "sourceName" in json_to_python["event"]["commonEventHeader"] else '",' return correlation_id @staticmethod -- cgit 1.2.3-korg