Skip to content

Commit

Permalink
Remove change of emails
Browse files Browse the repository at this point in the history
  • Loading branch information
MarekSuchanek committed Apr 2, 2023
1 parent df3243d commit 4fb5239
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 20 deletions.
2 changes: 1 addition & 1 deletion tests/questionnaire-detail/expectations.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"averageContentSize": null,
"requestsPerSecond": {
"type": "range",
"min": 4,
"min": 3,
"max": null
},
"failuresPerSecond": {
Expand Down
2 changes: 1 addition & 1 deletion tests/user-update/expectations.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"aggregated": {
"requestsCount": {
"type": "range",
"min": 1000,
"min": 700,
"max": null
},
"failureCount": {
Expand Down
19 changes: 1 addition & 18 deletions tests/user-update/locustfile.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import faker
import json
import random
import uuid

from locust import HttpUser, task, between

Expand Down Expand Up @@ -122,21 +123,3 @@ def update_user_active(self):
},
headers=self.headers,
)

@task(3)
def update_user_all(self):
user = random.choice(self.users)
first_name = fake.first_name()
last_name = fake.last_name()
self.client.put(
url=f'/users/{user["uuid"]}',
json={
'email': f'{first_name}.{last_name}@{fake.domain_name()}',
'firstName': first_name,
'lastName': last_name,
'affiliation': fake.company(),
'role': random.choice(ROLES),
'active': random.choice([True, False]),
},
headers=self.headers,
)

0 comments on commit 4fb5239

Please sign in to comment.