Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
it-bott-integrasjoner
ubw-client
Commits
7ee13142
Commit
7ee13142
authored
Jan 20, 2021
by
Petr.Kalashnikov
Browse files
Revert "Add comments"
This reverts commit
f8c09a8d
parent
f8c09a8d
Pipeline
#51070
failed with stage
in 1 minute and 55 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
locust_testing/stresstest.py
View file @
7ee13142
...
...
@@ -5,7 +5,7 @@ import logging
logger
=
logging
.
getLogger
(
__name__
)
ubw_config
=
bios
.
read
(
'config_
exampl
e.yaml'
)
ubw_config
=
bios
.
read
(
'config_
gravite
e.yaml'
)
endpoints_list
=
ubw_config
[
'rest'
][
'endpoints'
]
headers
=
ubw_config
[
'rest'
][
'headers'
]
...
...
@@ -14,7 +14,7 @@ def get_endpoint(endpoint):
class
WebsiteTasks
(
TaskSet
):
@
task
(
10
)
#weights can be adjusted in prod
@
task
(
10
)
def
check_get_arbeidsordre
(
self
):
self
.
client
.
get
(
get_endpoint
(
"arbeidsordre"
)
+
"UB/102454100"
,
headers
=
headers
)
...
...
@@ -109,4 +109,4 @@ class WebsiteTasks(TaskSet):
class
WebsiteUser
(
HttpUser
):
tasks
=
[
WebsiteTasks
]
wait_time
=
between
(
5.100
,
7.500
)
#to adjust in prod
wait_time
=
between
(
5.100
,
7.500
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment