Add test for sync with flag

This commit is contained in:
Dmitrii Dolgov 2020-03-05 10:12:10 +01:00
parent e0df9dea0c
commit a38a5aa574
1 changed files with 13 additions and 0 deletions

View File

@ -115,6 +115,19 @@ func TestConnPoolSynchronization(t *testing.T) {
cluster: &clusterMissingObjects,
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",
oldSpec: &acidv1.Postgresql{