From dac22d93c804780f2dc20164aeb44fc80a30890d Mon Sep 17 00:00:00 2001 From: "Hansen, Tony (th1395)" Date: Fri, 19 Aug 2022 12:56:56 +0000 Subject: lots of cleanup, no functional code changes Change-Id: I9eefe4d34ae226bbd5a6f80422f89baeeaeb3471 Signed-off-by: Hansen, Tony (th1395) Issue-ID: DCAEGEN2-2837 --- tests/test_binding.py | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'tests/test_binding.py') diff --git a/tests/test_binding.py b/tests/test_binding.py index 5ed6532..ae3221f 100644 --- a/tests/test_binding.py +++ b/tests/test_binding.py @@ -1,5 +1,5 @@ # ============LICENSE_START======================================================= -# Copyright (c) 2017-2021 AT&T Intellectual Property. All rights reserved. +# Copyright (c) 2017-2022 AT&T Intellectual Property. All rights reserved. # Copyright (c) 2019 Pantheon.tech. All rights reserved. # Copyright (c) 2021 Samsung Electronics. All rights reserved. # Copyright (c) 2021 Fujitsu Ltd. @@ -45,7 +45,26 @@ def disable_proxy(monkeypatch): @httpretty.activate def test_resolve_all(disable_proxy): - htbtmsg = '{"event":{"commonEventHeader":{"startEpochMicrosec":1518616063564475,"sourceId":"587c14b3-72c0-4581-b5cb-6567310b9bb7","eventId":"10048640","reportingEntityId":"587c14b3-72c0-4581-b5cb-6567310b9bb7","priority":"Normal","version":3,"reportingEntityName":"TESTVM","sequence":10048640,"domain":"heartbeat","lastEpochMicrosec":1518616063564476,"eventName":"Heartbeat_vVnf","sourceName":"TESTVM","nfNamingCode":"vVNF"}}}' + htbtmsg = ( + "{" + '"event": {' + ' "commonEventHeader":{' + ' "startEpochMicrosec":1518616063564475,' + ' "sourceId":"587c14b3-72c0-4581-b5cb-6567310b9bb7",' + ' "eventId":"10048640",' + ' "reportingEntityId":"587c14b3-72c0-4581-b5cb-6567310b9bb7",' + ' "priority":"Normal",' + ' "version":3,' + ' "reportingEntityName":"TESTVM",' + ' "sequence":10048640,' + ' "domain":"heartbeat",' + ' "lastEpochMicrosec":1518616063564476,' + ' "eventName":"Heartbeat_vVnf",' + ' "sourceName":"TESTVM",' + ' "nfNamingCode":"vVNF"}' + " }" + "}" + ) send_url = mr_url + "/events/" + intopic + "/DefaultGroup/1?timeout=15000" print(send_url) httpretty.register_uri(httpretty.GET, send_url, body=htbtmsg) -- cgit 1.2.3-korg