From 1d2ba9ba699ddada551f0ecb93dbdffea38a4e5a Mon Sep 17 00:00:00 2001 From: Luigi Toscano Date: Tue, 24 Dec 2024 17:30:36 +0100 Subject: [PATCH 1/2] KUTTL: generate JUnitXML reports - 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). - remove the URL of kuttl, so that it is not tied to a specific release. Signed-off-by: Luigi Toscano --- kuttl-test.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/kuttl-test.yaml b/kuttl-test.yaml index bb868747..3499cd7c 100644 --- a/kuttl-test.yaml +++ b/kuttl-test.yaml @@ -6,9 +6,6 @@ # 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 @@ -16,8 +13,9 @@ apiVersion: kuttl.dev/v1beta1 kind: TestSuite -reportFormat: JSON -reportName: kuttl-test-cinder +reportFormat: xml +reportName: kuttl-report-cinder +reportGranularity: test namespace: cinder-kuttl-tests timeout: 180 parallel: 1 From bd8c52fa742958990c70875f92c1a716ce60c648 Mon Sep 17 00:00:00 2001 From: Luigi Toscano Date: Mon, 13 Jan 2025 15:50:16 +0100 Subject: [PATCH 2/2] Add KUTTL and tempest zuul jobs They are meant to replace the prow ones in the long term. Signed-off-by: Luigi Toscano --- zuul.d/jobs.yaml | 42 ++++++++++++++++++++++++++++++++++++++++++ zuul.d/projects.yaml | 14 ++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 zuul.d/jobs.yaml create mode 100644 zuul.d/projects.yaml diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml new file mode 100644 index 00000000..b661a346 --- /dev/null +++ b/zuul.d/jobs.yaml @@ -0,0 +1,42 @@ +--- +- job: + name: cinder-operator-kuttl + parent: cifmw-base-multinode-kuttl + attempts: 1 + required-projects: + - github.com/openstack-k8s-operators/cinder-operator + irrelevant-files: + - .*/*.md + - ^\..*$ + - ^LICENSE$ + - ^OWNERS$ + - ^OWNERS_ALIASES$ + - ^PROJECT$ + - ^README.md$ + - tests?\/functional + vars: + cifmw_kuttl_tests_operator_list: + - cinder + +- job: + name: cinder-operator-tempest + parent: podified-multinode-hci-deployment-crc-1comp-backends + vars: + cifmw_test_operator_concurrency: 3 + cifmw_test_operator_tempest_include_list: | + ^tempest.api.volume. + ^tempest.scenario.test_encrypted_cinder_volumes..* + ^tempest.scenario.test_stamp_pattern..* + ^tempest.scenario.test_volume_..* + ^cinder_tempest_plugin..* + # plain/cryptsetup volume encryption tests are not supported + # with the ceph backend + cifmw_test_operator_tempest_exclude_list: | + test_encrypted_cinder_volumes_cryptsetup + cifmw_test_operator_tempest_tempestconf_config: + overrides: | + compute-feature-enabled.attach_encrypted_volume True + volume-feature-enabled.extend_attached_encrypted_volume True + volume-feature-enabled.extend_attached_volume True + volume-feature-enabled.volume_revert True + volume.storage_protocol 'ceph' diff --git a/zuul.d/projects.yaml b/zuul.d/projects.yaml new file mode 100644 index 00000000..baf11094 --- /dev/null +++ b/zuul.d/projects.yaml @@ -0,0 +1,14 @@ +--- +- project: + name: openstack-k8s-operators/cinder-operator + github-check: + jobs: + - openstack-k8s-operators-content-provider + - cinder-operator-kuttl: + dependencies: + - openstack-k8s-operators-content-provider + voting: false + - cinder-operator-tempest: + dependencies: + - openstack-k8s-operators-content-provider + voting: false