Skip to content
Snippets Groups Projects
Commit c7720173 authored by Lorenzo Ceccon's avatar Lorenzo Ceccon
Browse files

HOLI-5404-Initial-setup

parents
No related branches found
No related tags found
No related merge requests found
FROM loadimpact/k6:latest
COPY ./scripts /scripts
CMD ["run", "/scripts/main.js", "--out", "json=results.json"]
version: '3'
services:
k6:
build: .
ports:
- "6565:6565"
volumes:
- ./scripts:/scripts
command: ["run", "/scripts/main.js", "--out", "json=results.json"]
import http from "k6/http";
import { sleep, check } from "k6";
export const options = {
duratuion: "10s",
vus: 10,
}
const params = {
headers: {
"X-Disable-Sentry": "true",
},
}
export default function () {
const res = http.get("https://staging.dev.holi.social", params);
check(res, {
"is status 200": (r) => r.status === 200,
});
sleep(Math.random() * 5);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment