Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions tests/e2e/dpa_deployment_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (

type TestDPASpec struct {
BSLSecretName string
DefaultPlugins []oadpv1alpha1.DefaultPlugin // Overrides default plugins loaded from config
CustomPlugins []oadpv1alpha1.CustomPlugin
SnapshotLocations []oadpv1alpha1.SnapshotLocation
VeleroPodConfig oadpv1alpha1.PodConfig
Expand Down Expand Up @@ -67,6 +68,9 @@ func createTestDPASpec(testSpec TestDPASpec) *oadpv1alpha1.DataProtectionApplica
SnapshotLocations: testSpec.SnapshotLocations,
UnsupportedOverrides: testSpec.UnsupportedOverrides,
}
if len(testSpec.DefaultPlugins) > 0 {
dpaSpec.Configuration.Velero.DefaultPlugins = testSpec.DefaultPlugins
}
if testSpec.EnableNodeAgent {
dpaSpec.Configuration.NodeAgent = &oadpv1alpha1.NodeAgentConfig{
NodeAgentCommonFields: oadpv1alpha1.NodeAgentCommonFields{
Expand Down Expand Up @@ -345,6 +349,12 @@ var _ = Describe("Configuration testing for DPA Custom Resource", func() {
DoNotBackupImages: true,
}),
}),
Entry("DPA CR with legacy-aws plugin", Label("aws", "ibmcloud"), InstallCase{
DpaSpec: createTestDPASpec(TestDPASpec{
BSLSecretName: bslSecretName,
DefaultPlugins: []oadpv1alpha1.DefaultPlugin{oadpv1alpha1.DefaultPluginOpenShift, oadpv1alpha1.DefaultPluginLegacyAWS},
}),
}),
Entry("DPA CR with S3ForcePathStyle true", Label("aws"), InstallCase{
DpaSpec: createTestDPASpec(TestDPASpec{
BSLSecretName: bslSecretName,
Expand Down