diff --git a/test/base.sh b/test/base.sh index e73bb2325..87f4cc90a 100644 --- a/test/base.sh +++ b/test/base.sh @@ -1,5 +1,6 @@ #!/bin/bash +trap print_events ERR export QPS=5 export BURST=10 export TERM=screen-256color @@ -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 +} diff --git a/test/kube-burner.yml b/test/kube-burner.yml index aae17cd5d..ce62e0c5a 100644 --- a/test/kube-burner.yml +++ b/test/kube-burner.yml @@ -23,7 +23,8 @@ jobs: waitWhenFinished: true verifyObjects: true errorOnVerify: true - jobIterationDelay: 10s + jobIterationDelay: 1s + maxWaitTimeout: 2m objects: - objectTemplate: objectTemplates/deployment.yml @@ -33,7 +34,7 @@ jobs: - name: not-namespaced jobType: create - jobIterations: 4 + jobIterations: {{randInteger 1 4}} qps: 5 burst: 15 namespacedIterations: false