diff --git a/Makefile b/Makefile index cb12ca1..fd21a37 100644 --- a/Makefile +++ b/Makefile @@ -75,4 +75,7 @@ docker-run: docker-build --reconcile-interval "10s" \ --git-url $${GIT_URL_AND_CREDS} \ --git-branch "main" \ - --git-yaml-path "yaml/" \ No newline at end of file + --git-yaml-path "yaml/" + +k6-http-get: + k6 run -e LOAD_TEST_URI=$${LOAD_TEST_URI} test/k6/http_get.js \ No newline at end of file diff --git a/test/k6/http_get.js b/test/k6/http_get.js new file mode 100644 index 0000000..203b140 --- /dev/null +++ b/test/k6/http_get.js @@ -0,0 +1,14 @@ +import { check } from "k6"; +import http from "k6/http"; + +export const options = { + vus: 10, + duration: "2m", +}; + +export default function () { + const res = http.get(__ENV.LOAD_TEST_URI); + check(res, { + "is status 200": (r) => r.status === 200, + }); +}