vod-rtmp/frontend/app/locust-tests.py

27 lines
560 B
Python
Raw Permalink Normal View History

2021-10-10 18:57:54 -04:00
from locust import HttpLocust, TaskSet, task
import resource
resource.setrlimit(resource.RLIMIT_NOFILE, (15000, 15000))
class ZomstreamTests(TaskSet):
@task
def index(self):
self.client.get("/")
@task
def static_css(self):
self.client.get("/static/style.default.css")
@task
def api_list(self):
self.client.get("/api/streams/")
@task
def videoplayer(self):
self.client.get("/player/bsod")
class WebsiteUser(HttpLocust):
task_set = ZomstreamTests
min_wait = 5000
max_wait = 20000