Add test for sync with flag
This commit is contained in:
parent
e0df9dea0c
commit
a38a5aa574
|
|
@ -115,6 +115,19 @@ func TestConnPoolSynchronization(t *testing.T) {
|
||||||
cluster: &clusterMissingObjects,
|
cluster: &clusterMissingObjects,
|
||||||
check: objectsAreSaved,
|
check: objectsAreSaved,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
subTest: "create if doesn't exist with a flag",
|
||||||
|
oldSpec: &acidv1.Postgresql{
|
||||||
|
Spec: acidv1.PostgresSpec{},
|
||||||
|
},
|
||||||
|
newSpec: &acidv1.Postgresql{
|
||||||
|
Spec: acidv1.PostgresSpec{
|
||||||
|
EnableConnectionPool: boolToPointer(true),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
cluster: &clusterMissingObjects,
|
||||||
|
check: objectsAreSaved,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
subTest: "create from scratch",
|
subTest: "create from scratch",
|
||||||
oldSpec: &acidv1.Postgresql{
|
oldSpec: &acidv1.Postgresql{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue