aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcin Migdal <marcin.migdal@nokia.com>2019-04-05 14:37:51 +0200
committerMarcin Migdal <marcin.migdal@nokia.com>2019-04-05 14:37:51 +0200
commitb3c4856c8f21d32593a05386d4f3e626e14ffb52 (patch)
tree8ad6570ab70bd6471aac1064d3d56e1cd147e72f
parent725c070fc65047300a7f529e65197fdb8ab8f331 (diff)
Fix extracting PNF name
Change-Id: I372f56adcd8224fc32025d739d5938996b8692ee Issue-ID: INT-989 Signed-off-by: Marcin Migdal <marcin.migdal@nokia.com>
-rw-r--r--tests/dcaegen2/prh-testcases/resources/PrhLibrary.py2
1 files changed, 1 insertions, 1 deletions
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