mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-03 07:09:21 +00:00
16 lines
376 B
Python
16 lines
376 B
Python
![]() |
import random
|
||
|
|
||
|
from locust import HttpUser, constant, task
|
||
|
|
||
|
|
||
|
class GetEntityUser(HttpUser):
|
||
|
wait_time = constant(1)
|
||
|
|
||
|
@task
|
||
|
def entities(self):
|
||
|
id = random.randint(1, 100000)
|
||
|
self.client.request_name = "/entities?[urn]"
|
||
|
self.client.get(
|
||
|
f"/entities/urn:li:dataset:(urn:li:dataPlatform:bigquery,test_dataset_{id},PROD)"
|
||
|
)
|