elastic / kibana-load-testing

Http load testing project for Kibana
Apache License 2.0
6 stars 19 forks source link

[GenericJourney] add optional timeout per end-point #367

Closed dmlemeshko closed 1 year ago

dmlemeshko commented 1 year ago

Summary

Currently we use global request timeout (60000 ms) for all api calls. It is set in gatling.conf. https://github.com/elastic/kibana-load-testing/blob/main/src/test/resources/gatling.conf#L80

In some case we would like to set custom request timeout per end-point e.g. increasing it up to 2 minutes.

Update your request in api journey with timeout property and value in milliseconds for consistency with global value:

        {
          "http": {
            "method": "POST",
            "path": "/api/telemetry/v2/clusters/_stats",
            "body": "{}",
            "headers": {
              "Cookie": "",
              "Kbn-Version": "",
              "Accept-Encoding": "gzip, deflate, br",
              "Content-Type": "application/json"
            },
            "statusCode": 200,
            "timeout": 120000
          }
        }

Checklist

Delete any items that are not applicable to this PR.

- [ ] Branch is successfully tested on Kibana CI