elastic / rally

Macrobenchmarking framework for Elasticsearch
Apache License 2.0
1.95k stars 313 forks source link

Add public user to serverless test #1782

Closed pquentin closed 1 year ago

pquentin commented 1 year ago

Rally does not currently support serverless public users, which is why we use pytest.xfail (which was simpler to use than pytest.mark.xfail due to the parametrization). Usefully, it does print the error, which is currently:

elasticsearch.NotFoundError: NotFoundError(404, 'Request for uri [/_cluster/health?wait_for_nodes=%3E%3D1] with method [GET] exists but is not available when running in serverless mode', 'Request for uri [/_cluster/health?wait_for_nodes=%3E%3D1] with method [GET] exists but is not available when running in serverless mode')

I'd suggest reviewing the two commits separately as the first reorganizes the code.