-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: K6 perf test adjustments (#6065)
* discardResponseBodies * k6 perf test - gcp added * k6 perf test - gcp-discard-response-bodies * k6 perf test - updated definitions * k6 perf test - revision fixed
- Loading branch information
1 parent
bcabeae
commit 9dce5f2
Showing
3 changed files
with
217 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
test/k6/executor-tests/k6-perf-test-gcp-discard-response-bodies.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import http from 'k6/http'; | ||
import { check } from 'k6'; | ||
|
||
export const options = { | ||
discardResponseBodies: true, | ||
}; | ||
|
||
export default function () { | ||
const res = http.get('https://storage.googleapis.com/perf-test-static-page-bucket/testkube-test-page-lorem-ipsum/index.html'); | ||
check(res, { 'status was 200': (r) => r.status == 200 }); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import http from 'k6/http'; | ||
import { check } from 'k6'; | ||
|
||
export default function () { | ||
const res = http.get('https://storage.googleapis.com/perf-test-static-page-bucket/testkube-test-page-lorem-ipsum/index.html'); | ||
check(res, { 'status was 200': (r) => r.status == 200 }); | ||
check(res, { | ||
'verify partial text': (r) => | ||
r.body.includes('Testkube test page - Lipsum'), | ||
}); | ||
} |