From c7c649f19d03c099100afd2f6373fbe45f111e7c Mon Sep 17 00:00:00 2001 From: Sanad Liaquat Date: Tue, 26 Mar 2019 10:16:31 +0500 Subject: Script for load testing with k6 --- qa/load/k6.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 qa/load/k6.js (limited to 'qa/load') 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); +}; -- cgit v1.2.1