Commit 872c1446 authored by litaolemo's avatar litaolemo

update

parent a10a5a40
...@@ -462,8 +462,10 @@ class QuickstartUser(FastHttpUser): ...@@ -462,8 +462,10 @@ class QuickstartUser(FastHttpUser):
# } # }
with self.client.post('/gm-dbmw-answer-read/_search', json=data,verify=False, with self.client.post('/gm-dbmw-answer-read/_search', json=data,verify=False,
auth=tuple(auth.split(':', 1)),timeout=1) as response: auth=tuple(auth.split(':', 1)),timeout=1) as response:
if response.status_code != 200: # if response.status_code != 200:
raise RescheduleTask() # raise RescheduleTask()
if "Failed" in response.text:
response.failure("Got wrong response")
# response = requests.post('http://172.16.52.25/gm-dbmw-service-read/_search', json=query, verify=False,auth=("elastic","elastic:gengmei!@#")) # response = requests.post('http://172.16.52.25/gm-dbmw-service-read/_search', json=query, verify=False,auth=("elastic","elastic:gengmei!@#"))
# print(response.text) # print(response.text)
......
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