#190 Improve e2e tests for OpenShift

This commit is contained in:
Tomasz Sęk
2020-04-13 19:10:59 +02:00
parent 42ed7dbc6b
commit 0a0483aa77
5 changed files with 25 additions and 5 deletions
+8 -1
View File
@@ -11,7 +11,10 @@ import (
corev1 "k8s.io/api/core/v1"
)
const skipTestSafeRestart = false
const (
skipTestSafeRestart = false
skipTestPriorityClass = true
)
func updateJenkinsCR(t *testing.T, jenkins *v1alpha2.Jenkins) {
t.Log("Update Jenkins CR: OpenShift")
@@ -32,4 +35,8 @@ func updateJenkinsCR(t *testing.T, jenkins *v1alpha2.Jenkins) {
Value: resources.GetJenkinsSlavesServiceName(jenkins),
},
)
if len(jenkins.Spec.Master.Plugins) == 4 && jenkins.Spec.Master.Plugins[3].Name == "devoptics" {
jenkins.Spec.Master.Plugins = jenkins.Spec.Master.Plugins[0:3] // remove devoptics plugin
}
}