ajusted weights
This commit is contained in:
parent
d4a7862a14
commit
31790c5f4a
|
@ -24,15 +24,15 @@ class VikunjaTaskSet(TaskSequence):
|
||||||
data = json.loads(response.text)
|
data = json.loads(response.text)
|
||||||
self.headers["Authorization"] = 'Bearer ' + data["token"]
|
self.headers["Authorization"] = 'Bearer ' + data["token"]
|
||||||
|
|
||||||
@task
|
|
||||||
@seq_task(1)
|
@seq_task(1)
|
||||||
|
@task(800)
|
||||||
def dashboard(self):
|
def dashboard(self):
|
||||||
self.client.get("/tasks/all", headers=self.headers)
|
self.client.get("/tasks/all", headers=self.headers)
|
||||||
response = self.client.get("/namespaces", headers=self.headers)
|
response = self.client.get("/namespaces", headers=self.headers)
|
||||||
self.namespaces = json.loads(response.text)
|
self.namespaces = json.loads(response.text)
|
||||||
|
|
||||||
@seq_task(2)
|
@seq_task(2)
|
||||||
@task(10) # 10 new lists
|
@task(50) # 10 new lists
|
||||||
def new_list(self):
|
def new_list(self):
|
||||||
response = self.client.put("/namespaces/" + str(self.namespaces[0]["id"]) + "/lists",
|
response = self.client.put("/namespaces/" + str(self.namespaces[0]["id"]) + "/lists",
|
||||||
data=json.dumps({"title": "created by locust"}),
|
data=json.dumps({"title": "created by locust"}),
|
||||||
|
@ -54,7 +54,6 @@ class VikunjaTaskSet(TaskSequence):
|
||||||
headers=self.headers)
|
headers=self.headers)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class VikunjaLocust(HttpLocust):
|
class VikunjaLocust(HttpLocust):
|
||||||
task_set = VikunjaTaskSet
|
task_set = VikunjaTaskSet
|
||||||
min_wait = 100
|
min_wait = 100
|
||||||
|
|
Loading…
Reference in New Issue