-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds basic kuttl test for WatcherDecisionEngine
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
1 parent
e28dbe1
commit b9599e7
Showing
10 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
tests/kuttl/test-suites/default/watcher-decision-engine/00-cleanup-watcher.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../common/cleanup-watcher.yaml |
6 changes: 6 additions & 0 deletions
6
...s/kuttl/test-suites/default/watcher-decision-engine/01-cleanup-watcherdecisionengine.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
1 change: 1 addition & 0 deletions
1
tests/kuttl/test-suites/default/watcher-decision-engine/02-deploy-with-defaults.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../common/deploy-with-defaults.yaml |
33 changes: 33 additions & 0 deletions
33
tests/kuttl/test-suites/default/watcher-decision-engine/03-assert-default.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
9 changes: 9 additions & 0 deletions
9
tests/kuttl/test-suites/default/watcher-decision-engine/03-deploy-decision-engine.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
1 change: 1 addition & 0 deletions
1
tests/kuttl/test-suites/default/watcher-decision-engine/04-cleanup-watcher.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../common/cleanup-watcher.yaml |
1 change: 1 addition & 0 deletions
1
tests/kuttl/test-suites/default/watcher-decision-engine/05-assert.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../common/cleanup-assert.yaml |
1 change: 1 addition & 0 deletions
1
tests/kuttl/test-suites/default/watcher-decision-engine/05-cleanup-wacherdecisionengine.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
01-cleanup-watcherdecisionengine.yaml |
1 change: 1 addition & 0 deletions
1
tests/kuttl/test-suites/default/watcher-decision-engine/05-errors.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../common/cleanup-errors.yaml |