Skip to content

Commit d374263

Browse files
committed
ci : test k6 install and load test execution in e2e workflow
- Add another Makefile target for load test execution - Execute this target in e2e test script Signed-off-by: Rohan Kumar <[email protected]>
1 parent 4375b04 commit d374263

File tree

4 files changed

+713
-0
lines changed

4 files changed

+713
-0
lines changed

.ci/openshift_e2e.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,6 @@ make install
7272
export CLEAN_UP_AFTER_SUITE="false"
7373
make test_e2e
7474
bumpLogs
75+
76+
make test_load ARGS="--max-vus 100 --separate-namespaces true"
7577
make uninstall

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ test_e2e_debug:
115115
mkdir -p /tmp/artifacts
116116
dlv test --listen=:2345 --headless=true --api-version=2 ./test/e2e/cmd/workspaces_test.go -- --ginkgo.fail-fast --ginkgo.junit-report=/tmp/artifacts/junit-workspaces-operator.xml
117117

118+
test_load:
119+
@echo "Starting Load Testing Script..." && \
120+
bash ./test/load/runk6.sh $(ARGS) && \
121+
echo "Done"
122+
118123
### manager: Build manager binary
119124
manager: generate fmt vet
120125
go build -o bin/manager main.go

0 commit comments

Comments
 (0)