-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgraded Locusat and small fixes to some tests (#14)
* Upgraded Locust to version 2.31.8 for local development. Upgraded Python to 3.12. Added instructions for using pyenv. * Fixed some load tests that were missing trailing slashes or using the incorrect http verb. Namely create project and logout tasks. * Upgraded linting and other tools in the pre-commit action. Also fixed some formatting errors in a test file. * Upgraded the checkout task in the CI action. * Upgraded Locust and locust-plugins also in the custom docker image.
- Loading branch information
Showing
19 changed files
with
139 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
# Use the Locust image as the base image | ||
FROM locustio/locust:2.25.0 | ||
FROM locustio/locust:2.31.8 | ||
|
||
WORKDIR /home/locust | ||
|
||
# Install the locust-plugins dashboards plugin | ||
RUN pip3 install --no-cache-dir locust-plugins[dashboards]==4.4.2 | ||
RUN pip3 install --no-cache-dir locust-plugins[dashboards]==4.5.3 | ||
|
||
# Copy the Locust files into the container | ||
COPY --chown=locust:locust locust-ui.conf locust.conf | ||
COPY --chown=locust:locust tests/ tests | ||
COPY --chown=locust:locust tests-dev/ tests-dev | ||
COPY --chown=locust:locust start-script.sh start-script.sh | ||
COPY --chown=locust:locust run_test_plan.sh run_test_plan.sh | ||
|
||
RUN chmod ug+x start-script.sh | ||
RUN chmod ug+x run_test_plan.sh | ||
|
||
EXPOSE 8089 5557 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
# locust-ui.conf | ||
locustfile = tests/test_plan_normal.py | ||
headless = false | ||
class-picker = true | ||
#master = true | ||
#expect-workers = 5 | ||
only-summary = true | ||
csv = stats/locust | ||
loglevel = INFO | ||
# Can be overridden in UI: | ||
host = https://staging.serve-dev.scilifelab.se | ||
host = https://serve-staging.serve-dev.scilifelab.se | ||
users = 1 | ||
spawn-rate = 1 | ||
run-time = 10s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
locust>=2.20.0 | ||
locust>=2.31.8 | ||
requests-html>=0.10.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.