Commit 67a5c17f authored by litaolemo's avatar litaolemo

update

parent 45073c09
...@@ -462,8 +462,9 @@ class QuickstartUser(FastHttpUser): ...@@ -462,8 +462,9 @@ 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, catch_response=True) as response: auth=tuple(auth.split(':', 1)),timeout=1, catch_response=True) as response:
# if response.status_code != 200: if response.status_code != 200:
# raise RescheduleTask() response.failure("Got wrong response")
raise RescheduleTask()
if "Failed" in response.text: if "Failed" in response.text:
response.failure("Got wrong response") 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!@#"))
......
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