mirror of
https://github.com/jenkinsci/kubernetes-operator.git
synced 2026-10-18 14:01:04 +02:00
Small refactoring
This commit is contained in:
@@ -120,6 +120,7 @@ func createJenkinsCRWithSeedJob(t *testing.T, namespace string) *virtuslabv1alph
|
||||
},
|
||||
},
|
||||
},
|
||||
//TODO(bantoniak) add seed job with private key
|
||||
SeedJobs: []virtuslabv1alpha1.SeedJob{
|
||||
{
|
||||
ID: "jenkins-operator-e2e",
|
||||
|
||||
@@ -6,12 +6,10 @@ import (
|
||||
"github.com/VirtusLab/jenkins-operator/pkg/apis"
|
||||
virtuslabv1alpha1 "github.com/VirtusLab/jenkins-operator/pkg/apis/virtuslab/v1alpha1"
|
||||
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
|
||||
f "github.com/operator-framework/operator-sdk/pkg/test"
|
||||
framework "github.com/operator-framework/operator-sdk/pkg/test"
|
||||
"github.com/operator-framework/operator-sdk/pkg/test/e2eutil"
|
||||
|
||||
f "github.com/operator-framework/operator-sdk/pkg/test"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
package e2e
|
||||
|
||||
import (
|
||||
"github.com/VirtusLab/jenkins-operator/pkg/controller/jenkins/configuration/user/seedjobs"
|
||||
"github.com/bndr/gojenkins"
|
||||
"k8s.io/apimachinery/pkg/util/wait"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/VirtusLab/jenkins-operator/pkg/controller/jenkins/configuration/user/seedjobs"
|
||||
|
||||
"github.com/bndr/gojenkins"
|
||||
"k8s.io/apimachinery/pkg/util/wait"
|
||||
)
|
||||
|
||||
func TestUserConfiguration(t *testing.T) {
|
||||
@@ -37,4 +39,7 @@ func verifyJenkinsSeedJobs(t *testing.T, client *gojenkins.Jenkins) {
|
||||
if err != nil {
|
||||
t.Fatalf("couldn't get seed job '%v'", err)
|
||||
}
|
||||
|
||||
//TODO(bantoniak) verify if seed jobs have been created
|
||||
//TODO(bantoniak) verify if jobs created by seed jobs have been created
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user