aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit/tests/dcaegen2
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-09-17 16:58:43 +0000
committerGerrit Code Review <gerrit@onap.org>2018-09-17 16:58:43 +0000
commitdf038682c6245bc050b6a1f6ada76a07af72e178 (patch)
treed641984516959b9ade29d1c8d34101cf2d23d776 /test/csit/tests/dcaegen2
parent86f78a1e9b9082361cf3a72b70f6d37e7448a1e7 (diff)
parent8a1a43fb7426e5a0e96f0e53f14a283a5ff44416 (diff)
Merge "Fix failed tests"
Diffstat (limited to 'test/csit/tests/dcaegen2')
-rw-r--r--test/csit/tests/dcaegen2/prh-testcases/resources/PrhLibrary.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/csit/tests/dcaegen2/prh-testcases/resources/PrhLibrary.py b/test/csit/tests/dcaegen2/prh-testcases/resources/PrhLibrary.py
index 7c52f5430..6a95c71e5 100644
--- a/test/csit/tests/dcaegen2/prh-testcases/resources/PrhLibrary.py
+++ b/test/csit/tests/dcaegen2/prh-testcases/resources/PrhLibrary.py
@@ -23,16 +23,16 @@ class PrhLibrary(object):
json_to_python = json.loads(json_file)
ipv4 = json_to_python["event"]["pnfRegistrationFields"]["oamV4IpAddress"]
ipv6 = json_to_python["event"]["pnfRegistrationFields"]["oamV6IpAddress"]
- header = json_to_python["event"]["commonEventHeader"]["sourceName"]
- str_json = '{"sourceName":"' + header + '","ipaddress-v4-oam":"' + ipv4 + '","ipaddress-v6-oam":"' + ipv6 + '"}'
+ correlationId = json_to_python["event"]["commonEventHeader"]["sourceName"]
+ str_json = '{"correlationId":"' + correlationId + '","ipaddress-v4-oam":"' + ipv4 + '","ipaddress-v6-oam":"' + ipv6 + '"}'
python_to_json = json.dumps(str_json)
return python_to_json.replace("\\", "")[1:-1]
@staticmethod
def create_pnf_name(json_file):
json_to_python = json.loads(json_file)
- header = json_to_python["event"]["commonEventHeader"]["sourceName"]
- return header
+ correlationId = json_to_python["event"]["commonEventHeader"]["sourceName"]
+ return correlationId
@staticmethod
def stop_aai():