This commit is contained in:
ITO Mac
2026-05-04 19:48:02 +02:00
parent 1cb7f1a2d9
commit 305b4d562f
2 changed files with 20 additions and 1 deletions

View File

@@ -6,7 +6,7 @@ metadata:
app: zadaca-deployment
namespace: student-blazp04
spec:
replicas: 1
replicas: 3
selector:
matchLabels:
app: zadaca

19
test/locustfile.py Normal file
View File

@@ -0,0 +1,19 @@
from locust import HttpUser, task, between
import random
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
class MojServisUser(HttpUser):
"""
Simulira korisnika koji koristi moj-servis API.
"""
wait_time = between(1, 3)
@task(5)
def health(self):
self.client.get("/health", name="GET /health", verify=False)
def on_start(self):
print(f"Novi virtualni korisnik startan")