diff options
author | Sanad Liaquat <sliaquat@gitlab.com> | 2019-03-26 10:16:31 +0500 |
---|---|---|
committer | Sanad Liaquat <sliaquat@gitlab.com> | 2019-03-26 10:16:31 +0500 |
commit | c7c649f19d03c099100afd2f6373fbe45f111e7c (patch) | |
tree | 8a1513901c66392c9374007e53a09a013916af09 | |
parent | 5765c5989a23e6db0f54440bc9bbdb37f5eb3677 (diff) | |
download | gitlab-ce-qa-load-test-script-for-k6.tar.gz |
Script for load testing with k6qa-load-test-script-for-k6
-rw-r--r-- | qa/load/k6.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/qa/load/k6.js b/qa/load/k6.js new file mode 100644 index 00000000000..550acfa8074 --- /dev/null +++ b/qa/load/k6.js @@ -0,0 +1,16 @@ +import http from "k6/http"; +import { check, sleep } from "k6"; + +export let options = { + stages: [ + { duration: "30s", target: 1000 }, + ] +}; + +export default function() { + let res = http.get("https://staging.gitlab.com/gitlab-qa-perf-sandbox-1ac92fcc40c4cfe1/my-test-project-1d8efe186f9da839/merge_requests/31"); + check(res, { + "status was 200": (r) => r.status == 200 + }); + sleep(1); +}; |