-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add locust support * add requirements dev file * update readme
- Loading branch information
Showing
4 changed files
with
57 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from locust import HttpUser, task, between | ||
|
||
|
||
class WebsiteUser(HttpUser): | ||
# wait_time can be overridden for individual TaskSets | ||
wait_time = between(10, 300) | ||
|
||
# Host for locust interface: https://metrics-dev.rciam.grnet.gr | ||
@task | ||
def metrics_egi_devel_tenenv(self): | ||
headers = { | ||
'accept': 'application/json', | ||
'x-tenant': 'egi', | ||
'x-environment': 'devel' | ||
} | ||
|
||
self.client.get("/api/v1/tenenv/egi/devel", headers=headers) |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
alembic==1.10.2 | ||
asgiref==3.5.2 | ||
asyncpg==0.28.0 | ||
click==8.1.3 | ||
fastapi==0.100.0 | ||
geoip2 | ||
h11==0.13.0 | ||
importlib-resources==5.7.1 | ||
Mako==1.2.0 | ||
MarkupSafe==2.1.1 | ||
psycopg2-binary==2.9.7 | ||
pydantic==1.10.7 | ||
PyGreSQL==5.2.5 | ||
SQLAlchemy==1.4.41 | ||
sqlalchemy2-stubs==0.0.2a32 | ||
sqlmodel==0.0.8 | ||
typer==0.4.1 | ||
typing_extensions==4.5.0 | ||
uvicorn==0.21.1 | ||
zipp==3.8.0 | ||
cachetools==5.3.0 | ||
Authlib==1.2.0 | ||
itsdangerous==2.1.2 | ||
httpx==0.23.3 | ||
pyjwt==2.7.0 | ||
geoip2==4.7.0 | ||
gunicorn==21.2.0 | ||
locust==2.17.0 |