mirror of
https://github.com/jenkinsci/kubernetes-operator.git
synced 2026-10-18 14:01:04 +02:00
#190 Improve e2e tests for OpenShift
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user