Skip to content

Commit 3faee89

Browse files
authored
test(e2e): specify IsWALArchiver=true (#356)
Signed-off-by: Marco Nenciarini <[email protected]>
1 parent 5e1b845 commit 3faee89

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

test/e2e/internal/tests/backup/fixtures.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import (
2525
"github.com/cloudnative-pg/machinery/pkg/api"
2626
corev1 "k8s.io/api/core/v1"
2727
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
28+
"k8s.io/utils/ptr"
2829

2930
pluginBarmanCloudV1 "github.com/cloudnative-pg/plugin-barman-cloud/api/v1"
3031
"github.com/cloudnative-pg/plugin-barman-cloud/test/e2e/internal/objectstore"
@@ -292,6 +293,7 @@ func newSrcClusterWithPlugin(namespace string) *cloudnativepgv1.Cluster {
292293
Parameters: map[string]string{
293294
"barmanObjectName": objectStoreName,
294295
},
296+
IsWALArchiver: ptr.To(true),
295297
},
296298
},
297299
PostgresConfiguration: cloudnativepgv1.PostgresConfiguration{
@@ -333,6 +335,7 @@ func newDstClusterWithPlugin(namespace string) *cloudnativepgv1.Cluster {
333335
Parameters: map[string]string{
334336
"barmanObjectName": objectStoreName,
335337
},
338+
IsWALArchiver: ptr.To(true),
336339
},
337340
},
338341
PostgresConfiguration: cloudnativepgv1.PostgresConfiguration{
@@ -439,6 +442,7 @@ func newDstClusterInTreeS3(namespace string) *cloudnativepgv1.Cluster {
439442
Parameters: map[string]string{
440443
"barmanObjectName": objectStoreName,
441444
},
445+
IsWALArchiver: ptr.To(true),
442446
},
443447
},
444448
ExternalClusters: []cloudnativepgv1.ExternalCluster{
@@ -536,6 +540,7 @@ func newDstClusterInTreeAzure(namespace string) *cloudnativepgv1.Cluster {
536540
Parameters: map[string]string{
537541
"barmanObjectName": objectStoreName,
538542
},
543+
IsWALArchiver: ptr.To(true),
539544
},
540545
},
541546
ExternalClusters: []cloudnativepgv1.ExternalCluster{
@@ -632,6 +637,7 @@ func newDstClusterInTreeGCS(namespace string) *cloudnativepgv1.Cluster {
632637
Parameters: map[string]string{
633638
"barmanObjectName": objectStoreName,
634639
},
640+
IsWALArchiver: ptr.To(true),
635641
},
636642
},
637643
Env: []corev1.EnvVar{

test/e2e/internal/tests/replicacluster/fixtures.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
cloudnativepgv1 "github.com/cloudnative-pg/api/pkg/api/v1"
55
corev1 "k8s.io/api/core/v1"
66
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
7+
"k8s.io/utils/ptr"
78

89
pluginBarmanCloudV1 "github.com/cloudnative-pg/plugin-barman-cloud/api/v1"
910
"github.com/cloudnative-pg/plugin-barman-cloud/test/e2e/internal/objectstore"
@@ -119,6 +120,7 @@ func newSrcCluster(namespace string) *cloudnativepgv1.Cluster {
119120
Parameters: map[string]string{
120121
"barmanObjectName": srcObjectStoreName,
121122
},
123+
IsWALArchiver: ptr.To(true),
122124
},
123125
},
124126
PostgresConfiguration: cloudnativepgv1.PostgresConfiguration{
@@ -231,6 +233,7 @@ func newReplicaCluster(namespace string) *cloudnativepgv1.Cluster {
231233
Parameters: map[string]string{
232234
"barmanObjectName": replicaObjectStoreName,
233235
},
236+
IsWALArchiver: ptr.To(true),
234237
},
235238
},
236239
PostgresConfiguration: cloudnativepgv1.PostgresConfiguration{

0 commit comments

Comments
 (0)