.
This commit is contained in:
@@ -6,7 +6,7 @@ metadata:
|
|||||||
app: zadaca-deployment
|
app: zadaca-deployment
|
||||||
namespace: student-blazp04
|
namespace: student-blazp04
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 3
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: zadaca
|
app: zadaca
|
||||||
|
|||||||
19
test/locustfile.py
Normal file
19
test/locustfile.py
Normal 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")
|
||||||
Reference in New Issue
Block a user