Fix deletion of event streams resources (#1831)

* fix deletion of event streams
* create cluster field to store stream application ids
This commit is contained in:
Felix Kunde
2022-03-31 11:48:37 +02:00
committed by GitHub
parent 60e0685c32
commit 2333d531d3
3 changed files with 25 additions and 6 deletions
+7
View File
@@ -196,6 +196,9 @@ func TestGenerateFabricEventStream(t *testing.T) {
_, err := cluster.createStatefulSet()
assert.NoError(t, err)
// createOrUpdateStreams will loop over existing apps
cluster.streamApplications = []string{appId}
// create the streams
err = cluster.createOrUpdateStreams()
assert.NoError(t, err)
@@ -327,6 +330,10 @@ func TestUpdateFabricEventStream(t *testing.T) {
_, err := cluster.KubeClient.Postgresqls(namespace).Create(
context.TODO(), &pg, metav1.CreateOptions{})
assert.NoError(t, err)
// createOrUpdateStreams will loop over existing apps
cluster.streamApplications = []string{appId}
err = cluster.createOrUpdateStreams()
assert.NoError(t, err)