Skip to content
Draft
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
12 changes: 12 additions & 0 deletions test/kuttl/tests/tempest-s2i/00-set-s2i-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
commands:
- script: |
if [ -z "${S2I_TEMPEST_IMAGE}" ]; then
echo "S2I_TEMPEST_IMAGE is not set, skipping operator patch"
exit 0
fi
echo "Patching test-operator with s2i tempest image: ${S2I_TEMPEST_IMAGE}"
oc -n openstack-operators set env deployment/test-operator-controller-manager \
RELATED_IMAGE_TEST_TEMPEST_IMAGE_URL_DEFAULT="${S2I_TEMPEST_IMAGE}"
oc -n openstack-operators rollout status deployment/test-operator-controller-manager --timeout=120s
16 changes: 16 additions & 0 deletions test/kuttl/tests/tempest-s2i/01-assert.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: test.openstack.org/v1beta1
kind: Tempest
metadata:
name: tempest-sample
status:
conditions:
- type: Ready
status: "True"
- type: DeploymentReady
status: "True"
- type: InputReady
status: "True"
- type: NetworkAttachmentsReady
status: "True"
- type: ServiceConfigReady
status: "True"
5 changes: 5 additions & 0 deletions test/kuttl/tests/tempest-s2i/01-deploy-tempest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
commands:
- script: |
oc kustomize ../../../../config/samples/layout/tempest | oc apply -f -
6 changes: 6 additions & 0 deletions test/kuttl/tests/tempest-s2i/99-cleanup.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
delete:
- apiVersion: test.openstack.org/v1beta1
kind: Tempest
name: tempest-sample
10 changes: 10 additions & 0 deletions test/kuttl/tests/tempest-s2i/99-errors.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: test.openstack.org/v1beta1
kind: Tempest
metadata:
name: tempest-sample
---
apiVersion: v1
kind: Pod
metadata:
labels:
instanceName: tempest-sample
37 changes: 37 additions & 0 deletions zuul.d/jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -217,3 +217,40 @@
override-checkout: main
- name: github.com/openstack-k8s-operators/openstack-must-gather
override-checkout: main

- job:
name: test-operator-kuttl-s2i-tempest
parent: test-operator-kuttl
description: |
KUTTL test using the s2i-built openstack-tempest container image.
Patches the test-operator deployment to default to the s2i image,
then runs the tempest-s2i KUTTL suite which validates that the
Tempest CR reconciles to Ready with the s2i image.
required-projects:
- name: openstack-k8s-operators/s2i-openstack-containers
override-checkout: main
vars:
cifmw_kuttl_tests_env_vars:
PV_NUM: 20
S2I_TEMPEST_IMAGE: >-
{{ s2i_ci_content.registry }}/{{ s2i_ci_content.namespace }}/openstack-tempest:{{ s2i_ci_content.tag }}

- job:
name: podified-multinode-edpm-deployment-crc-test-operator-s2i-tempest
parent: podified-multinode-edpm-deployment-crc-test-operator
description: |
E2E test using the s2i-built openstack-tempest container image.
Validates that the tempest image built by s2i-openstack-containers
works correctly with the test-operator against a live OpenStack
deployment.
required-projects:
- name: openstack-k8s-operators/s2i-openstack-containers
override-checkout: main
vars:
cifmw_test_operator_stages:
- name: tempest
type: tempest
cifmw_test_operator_tempest_registry: "{{ s2i_ci_content.registry }}"
cifmw_test_operator_tempest_namespace: "{{ s2i_ci_content.namespace }}"
cifmw_test_operator_tempest_container: openstack-tempest
cifmw_test_operator_tempest_image_tag: "{{ s2i_ci_content.tag }}"
14 changes: 14 additions & 0 deletions zuul.d/projects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,23 @@
- openstack-k8s-operators-content-provider:
vars:
cifmw_install_yamls_sdk_version: v1.41.1
- s2i-openstack-container-content-provider:
vars:
s2i_ci_images:
- tempest/tempest
- test-operator-kuttl:
dependencies:
- openstack-k8s-operators-content-provider
- test-operator-kuttl-s2i-tempest:
voting: false
dependencies:
- openstack-k8s-operators-content-provider
- s2i-openstack-container-content-provider
- podified-multinode-edpm-deployment-crc-test-operator:
dependencies:
- openstack-k8s-operators-content-provider
- podified-multinode-edpm-deployment-crc-test-operator-s2i-tempest:
voting: false
dependencies:
- openstack-k8s-operators-content-provider
- s2i-openstack-container-content-provider