Skip to content

Commit

Permalink
Print events on error
Browse files Browse the repository at this point in the history
Signed-off-by: Raul Sevilla <[email protected]>
  • Loading branch information
rsevilla87 committed Jul 5, 2021
1 parent 1ee9f8f commit 1ac31c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions test/base.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash

trap print_events ERR
export QPS=5
export BURST=10
export TERM=screen-256color
Expand All @@ -11,3 +12,7 @@ normal=$(tput sgr0)
log() {
echo ${bold}$(date "+%d-%m-%YT%H:%M:%S") ${@}${normal}
}

print_events () {
kubectl get events --sort-by='.lastTimestamp' -A
}
5 changes: 3 additions & 2 deletions test/kube-burner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ jobs:
waitWhenFinished: true
verifyObjects: true
errorOnVerify: true
jobIterationDelay: 10s
jobIterationDelay: 1s
maxWaitTimeout: 2m
objects:

- objectTemplate: objectTemplates/deployment.yml
Expand All @@ -33,7 +34,7 @@ jobs:

- name: not-namespaced
jobType: create
jobIterations: 4
jobIterations: {{randInteger 1 4}}
qps: 5
burst: 15
namespacedIterations: false
Expand Down

0 comments on commit 1ac31c2

Please sign in to comment.