ajusted weights

This commit is contained in:
kolaente 2018-12-10 00:38:46 +01:00
parent d4a7862a14
commit 31790c5f4a
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 3 deletions

View File

@ -24,15 +24,15 @@ class VikunjaTaskSet(TaskSequence):
data = json.loads(response.text)
self.headers["Authorization"] = 'Bearer ' + data["token"]
@task
@seq_task(1)
@task(800)
def dashboard(self):
self.client.get("/tasks/all", headers=self.headers)
response = self.client.get("/namespaces", headers=self.headers)
self.namespaces = json.loads(response.text)
@seq_task(2)
@task(10) # 10 new lists
@task(50) # 10 new lists
def new_list(self):
response = self.client.put("/namespaces/" + str(self.namespaces[0]["id"]) + "/lists",
data=json.dumps({"title": "created by locust"}),
@ -54,7 +54,6 @@ class VikunjaTaskSet(TaskSequence):
headers=self.headers)
class VikunjaLocust(HttpLocust):
task_set = VikunjaTaskSet
min_wait = 100