mirror of
https://github.com/datahub-project/datahub.git
synced 2025-06-27 05:03:31 +00:00
22 lines
447 B
Python
22 lines
447 B
Python
![]() |
import json
|
||
|
|
||
|
from locust import HttpUser, between, task
|
||
|
|
||
|
|
||
|
class BrowseUser(HttpUser):
|
||
|
wait_time = between(1, 5)
|
||
|
|
||
|
@task
|
||
|
def browse(self):
|
||
|
self.client.post(
|
||
|
"/entities?action=browse",
|
||
|
json.dumps(
|
||
|
{
|
||
|
"path": "/perf/test",
|
||
|
"entity": "dataset",
|
||
|
"start": 0,
|
||
|
"limit": 10,
|
||
|
}
|
||
|
),
|
||
|
)
|