Skip to content

Commit f4941d7

Browse files
committed
Removing OpenShift CI from Deployment Test Suite
1 parent 36292df commit f4941d7

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

tests/e2e/dpa_deployment_suite_test.go

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -494,17 +494,8 @@ var _ = Describe("Configuration testing for DPA Custom Resource", func() {
494494
err := dpaCR.Build(installCase.BRestoreType)
495495
Expect(err).NotTo(HaveOccurred())
496496
if len(installCase.DpaSpec.BackupLocations) > 0 {
497-
if dpaCR.OpenshiftCi {
498-
if installCase.DpaSpec.BackupLocations[0].Velero.Config != nil {
499-
installCase.DpaSpec.BackupLocations[0].Velero.Config["credentialsFile"] = "bsl-cloud-credentials-" + dpaCR.Provider + "/cloud"
500-
}
501-
} else {
502-
installCase.DpaSpec.BackupLocations[0].Velero.Credential = &corev1.SecretKeySelector{
503-
LocalObjectReference: corev1.LocalObjectReference{
504-
Name: dpaCR.CredSecretRef,
505-
},
506-
Key: "cloud",
507-
}
497+
if installCase.DpaSpec.BackupLocations[0].Velero.Config != nil {
498+
installCase.DpaSpec.BackupLocations[0].Velero.Config["credentialsFile"] = "bsl-cloud-credentials-" + dpaCR.Provider + "/cloud"
508499
}
509500
}
510501
err = dpaCR.CreateOrUpdate(installCase.DpaSpec)

0 commit comments

Comments
 (0)