Commit 91d50180 by Karsa Zoltán István

load testing

parent d8264cd8
import json
from locust import HttpUser, task, between
class PerformanceTests(HttpUser):
wait_time = between(1, 3)
def on_start(self):
self.client.post("/user/login", {
"username": "karsa",
"password": "12345678"
})
@task(1)
def testFastApi(self):
self.client.get("/lb/dashboard/acpi/vm/1/")
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
[tool.poetry]
name = "stresstest"
version = "0.1.0"
description = ""
authors = ["Karsa Zoltán István <karsazoltan@gmail.com>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.7"
locust = "^2.15.0"
poethepoet = "^0.18.1"
[tool.poe.tasks.locust]
shell = "poetry run locust -f main.py"
help = "Start testing framework"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment