Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test failure #8

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions .github/workflows/load-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ jobs:
- name: Wait for kyverno ready
uses: ./.github/actions/kyverno-wait-ready
- name: Run local k6 test
shell: bash
run: |
cd k6
./start.sh tests/kyverno-pss.js 10 1000
cat kyverno-pss.js-10vu-1000it-logs.txt
# uses: grafana/[email protected]
# with:
# filename: k6/tests/kyverno-pss.js 10 100
uses: grafana/[email protected]
with:
filename: k6/tests/test.js
16 changes: 16 additions & 0 deletions k6/tests/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import http from 'k6/http';
import { sleep } from 'k6';

export const options = {
duration: '1m',
vus: 2,
thresholds: {
http_req_failed: ['rate<0.01'], // http errors should be less than 1%
http_req_duration: ['p(95)<10'], // 95 percent of response times must be below 500ms
},
};

export default function () {
const res = http.get('https://test.k6.io');
sleep(1);
}