Commit 7e35999f authored by litaolemo's avatar litaolemo

update

parent e40a28b1
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# @File : es_locust.py # @File : es_locust.py
# @email : litao@igengmei.com # @email : litao@igengmei.com
# @author : litao # @author : litao
import json
import time import time
from locust import HttpUser, task from locust import HttpUser, task
...@@ -854,7 +854,7 @@ class QuickstartUser(HttpUser): ...@@ -854,7 +854,7 @@ class QuickstartUser(HttpUser):
"require_field_match": false "require_field_match": false
},"size":10 },"size":10
} }
""".replace("{query}",random.choice(query_Str_list)) """.replace("{query}",random.choice(json.dumps(query_Str_list)))
response = self.client.post('/gm-dbmw-service-read/_search', data=data, verify=False, auth=tuple(auth.split(':',1))) response = self.client.post('/gm-dbmw-service-read/_search', data=data, verify=False, auth=tuple(auth.split(':',1)))
# self.client.get("/hello") # self.client.get("/hello")
......
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