X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fmrstub%2Fmr.py;h=9c5a2c8d602c59e5709591d4aa168a8a428e705a;hb=0b10c7fa768f05ae5146ce2f3a69998bb8f97a9f;hp=1094e7c3cd2c932bbc8e3ca1c470a956ea49234c;hpb=72667f1d4b9e534b38b206f64f2ac67df01a2ed9;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 ###