X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fmrstub%2Fmr.py;h=9c5a2c8d602c59e5709591d4aa168a8a428e705a;hb=9c5cb8dff7e04d10141ce2b2d1c7fab2cf8ef508;hp=1094e7c3cd2c932bbc8e3ca1c470a956ea49234c;hpb=c488e37b5803ca41d7b8feb4434cb570aae2cd43;p=nonrtric.git diff --git a/test/mrstub/mr.py b/test/mrstub/mr.py index 1094e7c3..9c5a2c8d 100644 --- a/test/mrstub/mr.py +++ b/test/mrstub/mr.py @@ -212,9 +212,9 @@ def events_write(): print(AGENT_WRITE_URL+ " msg+status (correlationid="+id+") :" + str(msg_str)) except Exception as e: print(AGENT_WRITE_URL+"-"+CAUGHT_EXCEPTION+" "+str(e) + " "+traceback.format_exc()) - return Response(SERVER_ERROR+" "+str(e), status=500, mimetype=MIME_TEXT) + return Response('{"message": "' + SERVER_ERROR + ' ' + str(e) + '","status":"500"}', status=200, mimetype=MIME_JSON) - return Response('OK', status=200, mimetype=MIME_TEXT) + return Response('{}', status=200, mimetype=MIME_JSON) ### Functions for metrics read out ###