Skip to content

Commit

Permalink
KUTTL: generate JUnitXML reports
Browse files Browse the repository at this point in the history
- switch the type to XML (the accepted value is 'xml' lowercase,
  not uppercase);
- tune the name a bit to highlight it is a report;
- add the new reportGranularity parameter which is supported
  by kuttl 0.20.0 and will restore the pre-1.17 JUnitXML format
  (granularity by test case, instead of by step).

Signed-off-by: Luigi Toscano <[email protected]>
  • Loading branch information
tosky committed Dec 24, 2024
1 parent fb4d394 commit 5641460
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions kuttl-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,16 @@
# ASSUMPTIONS:
#
# 1. Latest version of kuttl is installed at /usr/local/bin/kubectl-kuttl
# - wget https://github.com/kudobuilder/kuttl/releases/download/v0.11.1/kubectl-kuttl_0.11.1_linux_x86_64
# - mv kubectl-kuttl_0.11.1_linux_x86_64 /usr/local/bin/kubectl-kuttl
# - chmod 755 /usr/local/bin/kubectl-kuttl
# 2. An OCP 4.10+ CRC cluster with Podified Operators has been deployed
# 3. CLI user has access to $KUBECONFIG
# 4. The environment variable INSTALL_YAMLS is set to the the path of the
# install_yamls repo

apiVersion: kuttl.dev/v1beta1
kind: TestSuite
reportFormat: JSON
reportName: kuttl-test-cinder
namespace: cinder-kuttl-tests
reportFormat: xml
reportName: kuttl-report-cinder
reportGranularity: test
timeout: 180
parallel: 1
suppress:
Expand Down

0 comments on commit 5641460

Please sign in to comment.