Commit a84bfaae by zhaihuitao

add install enevt

parent 369b0e02
...@@ -9,9 +9,14 @@ ...@@ -9,9 +9,14 @@
import unittest import unittest
import json import json
import requests import requests
from config.envcfg import prod from config.envcfg import prod, headers
from config.prod.params import params_startup
class startupTestCase(unittest.TestCase): class startupTestCase(unittest.TestCase):
def teststartup(self): def teststartup(self):
r = requests.post(url=prod['events']['url'] + 'startup', data=s, headers=headers, timeout=10) r = requests.post(url=prod['events']['url'] + 'startup', data=json.dumps(params_startup), headers=headers, timeout=10)
\ No newline at end of file print(r.text)
if __name__ == "__main__":
unittest.main()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment