Skip to content
Open
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
27 changes: 27 additions & 0 deletions kuttl-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#
# EXECUTION (from install_yamls repo root):
#
# make test_operator_kuttl
#
# ASSUMPTIONS:
#
# 1. Latest version of kuttl is installed at /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. A FULL OpenStack deployment is running (via install_yamls)
# - Keystone, Nova, Neutron, Glance are deployed and functional
# - openstack-config ConfigMap exists in the namespace
# - openstack-config-secret Secret exists with valid credentials
# 5. test-operator is deployed (via install_yamls `make test_operator`)
#

apiVersion: kuttl.dev/v1beta1
kind: TestSuite
reportFormat: xml
reportName: kuttl-report-test-operator
reportGranularity: test
namespace: test-operator-kuttl-tests
timeout: 180
parallel: 1
suppress:
- events # Remove spammy event logs
15 changes: 15 additions & 0 deletions test/kuttl/common/cleanup-all-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
delete:
- apiVersion: test.openstack.org/v1beta1
kind: Tempest
name: tempest-sample
- apiVersion: test.openstack.org/v1beta1
kind: Tobiko
name: tobiko-sample
- apiVersion: test.openstack.org/v1beta1
kind: AnsibleTest
name: ansibletest-sample
- apiVersion: test.openstack.org/v1beta1
kind: HorizonTest
name: horizontest-sample
49 changes: 49 additions & 0 deletions test/kuttl/common/errors-cleanup.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#
# Check for:
#
# No CRs
# No Pods
#
apiVersion: test.openstack.org/v1beta1
kind: Tempest
metadata:
name: tempest-sample
---
apiVersion: test.openstack.org/v1beta1
kind: Tobiko
metadata:
name: tobiko-sample
---
apiVersion: test.openstack.org/v1beta1
kind: AnsibleTest
metadata:
name: ansibletest-sample
---
apiVersion: test.openstack.org/v1beta1
kind: HorizonTest
metadata:
name: horizontest-sample
---
apiVersion: v1
kind: Pod
metadata:
labels:
job-name: tempest-sample
---
apiVersion: v1
kind: Pod
metadata:
labels:
job-name: tobiko-sample
---
apiVersion: v1
kind: Pod
metadata:
labels:
job-name: ansibletest-sample
---
apiVersion: v1
kind: Pod
metadata:
labels:
job-name: horizontest-sample
17 changes: 17 additions & 0 deletions test/kuttl/tests/tempest-basic/01-assert.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: test.openstack.org/v1beta1
kind: Tempest
metadata:
name: tempest-sample
namespace: test-operator-kuttl-tests
status:
conditions:
- type: InputReady
status: "True"
- type: ServiceConfigReady
status: "True"
---
apiVersion: v1
kind: ConfigMap
metadata:
name: tempest-sample-config
namespace: test-operator-kuttl-tests
8 changes: 8 additions & 0 deletions test/kuttl/tests/tempest-basic/01-deploy-tempest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: test.openstack.org/v1beta1
kind: Tempest
metadata:
name: tempest-sample
namespace: test-operator-kuttl-tests
spec:
containerImage: quay.io/podified-antelope-centos9/openstack-tempest:current-podified
storageClass: local-storage
1 change: 1 addition & 0 deletions test/kuttl/tests/tempest-basic/99-cleanup.yaml
1 change: 1 addition & 0 deletions test/kuttl/tests/tempest-basic/99-errors.yaml
18 changes: 18 additions & 0 deletions zuul.d/jobs.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
---
- job:
name: test-operator-kuttl
parent: cifmw-base-multinode-kuttl
attempts: 1
irrelevant-files: &ir_files
- .*/*.md
- ^\..*$
- ^LICENSE$
- ^OWNERS$
- ^OWNERS_ALIASES$
- ^PROJECT$
- ^README.md$
- tests?\/functional
- ^renovate.json$
vars:
cifmw_kuttl_tests_operator_list:
- test_operator

- job:
name: podified-multinode-edpm-deployment-crc-test-operator
parent: podified-multinode-hci-deployment-crc-1comp-backends
Expand Down
3 changes: 3 additions & 0 deletions zuul.d/projects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
- openstack-k8s-operators-content-provider:
vars:
cifmw_install_yamls_sdk_version: v1.41.1
- test-operator-kuttl:
dependencies:
- openstack-k8s-operators-content-provider
- podified-multinode-edpm-deployment-crc-test-operator:
dependencies:
- openstack-k8s-operators-content-provider