X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=tests%2Fdcaegen2%2Ftestcases%2Fresources%2FDMaaP.py;h=500afd5da6ec47c8813ef54398cbda125d8b256f;hb=72ae9c392dd2c8493b3fbe50c491b4e0870caecf;hp=779397e4bf742ae112d9e580b9bfae7149ba7289;hpb=fd6c8fafba3be7a137787a01d6661d943c19c2c0;p=integration%2Fcsit.git 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)