aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dcaegen2/testcases/resources/DMaaP.py
diff options
context:
space:
mode:
authorAleksandra Maciaga <aleksandra.maciaga@nokia.com>2020-04-01 13:14:14 +0200
committerPawel <pawel.kasperkiewicz@nokia.com>2020-04-02 15:16:54 +0200
commit72ae9c392dd2c8493b3fbe50c491b4e0870caecf (patch)
treeb914e00a7d6eee2f8bae0e7e9337af89d4c994e7 /tests/dcaegen2/testcases/resources/DMaaP.py
parent58cad3b81d9dd5c1e49e005bc2741e57802ea1a4 (diff)
Update VES Collector CSIT
Signed-off-by: Aleksandra Maciaga <aleksandra.maciaga@nokia.com> Change-Id: I6dd9d36a7bddbbc3d0d99b72d990907e3fe87b1b Issue-ID: DCAEGEN2-2182
Diffstat (limited to 'tests/dcaegen2/testcases/resources/DMaaP.py')
-rw-r--r--tests/dcaegen2/testcases/resources/DMaaP.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/dcaegen2/testcases/resources/DMaaP.py b/tests/dcaegen2/testcases/resources/DMaaP.py
index 779397e4..500afd5d 100644
--- a/tests/dcaegen2/testcases/resources/DMaaP.py
+++ b/tests/dcaegen2/testcases/resources/DMaaP.py
@@ -119,7 +119,7 @@ class DMaaPHandler(BaseHTTPServer.BaseHTTPRequestHandler):
global EvtSchema
try:
if EvtSchema is None:
- with open(DcaeVariables.CommonEventSchemaV5) as opened_file:
+ with open(DcaeVariables.CommonEventSchema) as opened_file:
EvtSchema = json.load(opened_file)
decoded_body = json.loads(post_body)
jsonschema.validate(decoded_body, EvtSchema)
@@ -368,8 +368,8 @@ class DMaaPHandler(BaseHTTPServer.BaseHTTPRequestHandler):
def test(handler_class=DMaaPHandler, server_class=BaseHTTPServer.HTTPServer, protocol="HTTP/1.0", port=3904):
- print "Load event schema file: " + DcaeVariables.CommonEventSchemaV5
- with open(DcaeVariables.CommonEventSchemaV5) as opened_file:
+ print "Load event schema file: " + DcaeVariables.CommonEventSchema
+ with open(DcaeVariables.CommonEventSchema) as opened_file:
global EvtSchema
EvtSchema = json.load(opened_file)
@@ -394,8 +394,8 @@ def _main_(handler_class=DMaaPHandler, server_class=BaseHTTPServer.HTTPServer, p
else:
port = 3904
- print "Load event schema file: " + DcaeVariables.CommonEventSchemaV5
- with open(DcaeVariables.CommonEventSchemaV5) as opened_file:
+ print "Load event schema file: " + DcaeVariables.CommonEventSchema
+ with open(DcaeVariables.CommonEventSchema) as opened_file:
global EvtSchema
EvtSchema = json.load(opened_file)