Commit 67a5c17f authored by litaolemo's avatar litaolemo

update

parent 45073c09
......@@ -462,8 +462,9 @@ class QuickstartUser(FastHttpUser):
# }
with self.client.post('/gm-dbmw-answer-read/_search', json=data,verify=False,
auth=tuple(auth.split(':', 1)),timeout=1, catch_response=True) as response:
# if response.status_code != 200:
# raise RescheduleTask()
if response.status_code != 200:
response.failure("Got wrong response")
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!@#"))
......
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