Skip to content

Commit

Permalink
Adds basic kuttl test for WatcherDecisionEngine
Browse files Browse the repository at this point in the history
The parent commit adds the initial reconcile functions and
this adds some kuttl coverage. The DecisionEngine is not yet
integrated with the top-level Watcher so for now creating a
new directory which can be moved later.
  • Loading branch information
marios authored and openshift-merge-bot[bot] committed Jan 28, 2025
1 parent e28dbe1 commit b9599e7
Show file tree
Hide file tree
Showing 10 changed files with 61 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/kuttl/test-suites/default/common/cleanup-errors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,10 @@ metadata:
finalizers:
- openstack.org/watcherapplier
name: watcher-applier-kuttl
---
apiVersion: watcher.openstack.org/v1beta1
kind: WatcherDecisionEngine
metadata:
finalizers:
- openstack.org/watcherdecisionengine
name: watcherdecisionengine-kuttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
delete:
- apiVersion: watcher.openstack.org/v1beta1
kind: WatcherDecisionEngine
name: watcherdecisionengine-kuttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: watcher.openstack.org/v1beta1
kind: WatcherDecisionEngine
metadata:
finalizers:
- openstack.org/watcherdecisionengine
name: watcherdecisionengine-kuttl
spec:
passwordSelectors:
service: WatcherPassword
secret: osp-secret
memcachedInstance: memcached
preserveJobs: false
serviceUser: watcher
replicas: 1
containerImage: ""
status:
conditions:
- message: Setup complete
reason: Ready
status: "True"
type: Ready
- message: Input data complete
reason: Ready
status: "True"
type: InputReady
- message: ' Memcached instance has been provisioned'
reason: Ready
status: "True"
type: MemcachedReady
- message: Service config create completed
reason: Ready
status: "True"
type: ServiceConfigReady
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: watcher.openstack.org/v1beta1
kind: WatcherDecisionEngine
metadata:
name: watcherdecisionengine-kuttl
namespace: watcher-kuttl-default
spec:
secret: osp-secret
tls:
caBundleSecretName: "combined-ca-bundle"

0 comments on commit b9599e7

Please sign in to comment.