mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-09-30 15:06:49 +02:00
fix streams unit tests
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user