-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
118 additions
and
64 deletions.
There are no files selected for viewing
56 changes: 56 additions & 0 deletions
56
tests/kuttl/test-suites/default/common/assert-watcher-precreated-account.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,56 @@ | ||
apiVersion: watcher.openstack.org/v1beta1 | ||
kind: Watcher | ||
metadata: | ||
finalizers: | ||
- openstack.org/watcher | ||
name: watcher-kuttl | ||
namespace: watcher-kuttl-default | ||
spec: | ||
databaseAccount: watcher-precreated | ||
databaseInstance: openstack | ||
passwordSelectors: | ||
service: WatcherPassword | ||
secret: osp-secret | ||
status: | ||
conditions: | ||
- message: Setup complete | ||
reason: Ready | ||
status: "True" | ||
type: Ready | ||
- message: DB create completed | ||
reason: Ready | ||
status: "True" | ||
type: DBReady | ||
- message: MariaDBAccount creation complete | ||
reason: Ready | ||
status: "True" | ||
type: MariaDBAccountReady | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: watcher-precreated-db-secret | ||
namespace: watcher-kuttl-default | ||
finalizers: | ||
- openstack.org/watcher | ||
--- | ||
apiVersion: mariadb.openstack.org/v1beta1 | ||
kind: MariaDBAccount | ||
metadata: | ||
name: watcher-precreated | ||
namespace: watcher-kuttl-default | ||
finalizers: | ||
- openstack.org/watcher | ||
- openstack.org/mariadbaccount | ||
labels: | ||
mariaDBDatabaseName: watcher | ||
--- | ||
apiVersion: mariadb.openstack.org/v1beta1 | ||
kind: MariaDBDatabase | ||
metadata: | ||
name: watcher | ||
namespace: watcher-kuttl-default | ||
finalizers: | ||
- openstack.org/watcher | ||
- openstack.org/mariadbdatabase | ||
- openstack.org/mariadbaccount-watcher-precreated |
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
7 changes: 7 additions & 0 deletions
7
tests/kuttl/test-suites/default/common/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,7 @@ | ||
apiVersion: watcher.openstack.org/v1beta1 | ||
kind: Watcher | ||
metadata: | ||
name: watcher-kuttl | ||
namespace: watcher-kuttl-default | ||
spec: | ||
databaseInstance: "openstack" |
File renamed without changes.
File renamed without changes.
7 changes: 0 additions & 7 deletions
7
tests/kuttl/test-suites/default/test/01-deploy-with-defaults.yaml
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
tests/kuttl/test-suites/default/test/01-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 |
1 change: 1 addition & 0 deletions
1
tests/kuttl/test-suites/default/test/03-precreate-mariadbccount.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/precreate-mariadbaccount.yaml |
This file was deleted.
Oops, something went wrong.
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/assert-watcher-precreated-account.yaml |
1 change: 1 addition & 0 deletions
1
tests/kuttl/test-suites/default/test/04-deploy-watcher-precreated-account.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-precreated-account.yaml |
1 change: 1 addition & 0 deletions
1
tests/kuttl/test-suites/default/watcher-api/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
tests/kuttl/test-suites/default/watcher-api/01-cleanup-watcherapi.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: WatcherAPI | ||
name: watcherapi-kuttl |
1 change: 1 addition & 0 deletions
1
tests/kuttl/test-suites/default/watcher-api/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 |
26 changes: 26 additions & 0 deletions
26
tests/kuttl/test-suites/default/watcher-api/03-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,26 @@ | ||
apiVersion: watcher.openstack.org/v1beta1 | ||
kind: WatcherAPI | ||
metadata: | ||
finalizers: | ||
- openstack.org/watcherapi | ||
name: watcherapi-kuttl | ||
spec: | ||
databaseAccount: watcher | ||
databaseInstance: openstack | ||
passwordSelectors: | ||
service: WatcherPassword | ||
secret: osp-secret | ||
status: | ||
conditions: | ||
- message: Setup complete | ||
reason: Ready | ||
status: "True" | ||
type: Ready | ||
- message: Input data complete | ||
reason: Ready | ||
status: "True" | ||
type: InputReady | ||
- message: Service config create completed | ||
reason: Ready | ||
status: "True" | ||
type: ServiceConfigReady |
6 changes: 6 additions & 0 deletions
6
tests/kuttl/test-suites/default/watcher-api/03-deploy-watcher-api.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: watcher.openstack.org/v1beta1 | ||
kind: WatcherAPI | ||
metadata: | ||
name: watcherapi-kuttl | ||
spec: | ||
databaseInstance: "openstack" |
1 change: 1 addition & 0 deletions
1
tests/kuttl/test-suites/default/watcher-api/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 |
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: kuttl.dev/v1beta1 | ||
kind: TestAssert | ||
namespaced: true | ||
commands: | ||
- script: | | ||
set -ex | ||
oc get mariadbaccount -n ${NAMESPACE} --no-headers=true | [ $(grep -c ^watcher) == 0 ] | ||
oc get mariadbdatabase -n ${NAMESPACE} --no-headers=true | [ $(grep -c ^watcher) == 0 ] | ||
oc get secret -n ${NAMESPACE} --no-headers=true | [ $(grep -c ^watcher) == 0 ] |
1 change: 1 addition & 0 deletions
1
tests/kuttl/test-suites/default/watcher-api/05-cleanup-watcherapi.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-watcherapi.yaml |