diff --git a/stress-test/__pycache__/locustfile.cpython-313.pyc b/stress-test/__pycache__/locustfile.cpython-313.pyc new file mode 100644 index 0000000..984310c Binary files /dev/null and b/stress-test/__pycache__/locustfile.cpython-313.pyc differ diff --git a/stress-test/locustfile.py b/stress-test/locustfile.py new file mode 100644 index 0000000..1719176 --- /dev/null +++ b/stress-test/locustfile.py @@ -0,0 +1,16 @@ +from locust import HttpUser, task, between + +class MojServisUser(HttpUser): + wait_time = between(1, 3) + + def on_start(self): + # ignoriraj SSL probleme + self.client.verify = False + + @task(10) + def root(self): + self.client.get("/") + + @task(5) + def health(self): + self.client.get("/health") \ No newline at end of file