Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Updating FTC 100 series tests to support a1pms V3 image
[nonrtric.git]
/
test
/
mrstub
/
app
/
main.py
diff --git
a/test/mrstub/app/main.py
b/test/mrstub/app/main.py
index
9ad75e6
..
c0df8c1
100644
(file)
--- a/
test/mrstub/app/main.py
+++ b/
test/mrstub/app/main.py
@@
-244,7
+244,7
@@
def sendrequest():
print(APP_WRITE_URL+" operation="+oper+" url="+url)
correlation_id=str(time.time_ns())
payload=None
print(APP_WRITE_URL+" operation="+oper+" url="+url)
correlation_id=str(time.time_ns())
payload=None
- if (oper == "PUT") and
(request.json is not None)
:
+ if (oper == "PUT") and
len(request.data) > 0
:
payload=json.dumps(request.json)
msg=create_message(oper, correlation_id, payload, url)
payload=json.dumps(request.json)
msg=create_message(oper, correlation_id, payload, url)
@@
-544,7
+544,7
@@
def current_responses():
### Admin ###
### Admin ###
-# Reset all mess
s
ages and counters
+# Reset all messages and counters
@app.route('/reset',
methods=['GET', 'POST', 'PUT'])
def reset():
@app.route('/reset',
methods=['GET', 'POST', 'PUT'])
def reset():