@@ -22,7 +22,7 @@ import (
|
||||
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
|
||||
iamv1alpha2 "kubesphere.io/kubesphere/pkg/apis/iam/v1alpha2"
|
||||
iamv1alpha2 "kubesphere.io/api/iam/v1alpha2"
|
||||
|
||||
"kubesphere.io/client-go/client"
|
||||
)
|
||||
|
||||
@@ -19,9 +19,9 @@ package workspace
|
||||
import (
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
|
||||
tenantv1alpha1 "kubesphere.io/kubesphere/pkg/apis/tenant/v1alpha1"
|
||||
tenantv1alpha2 "kubesphere.io/kubesphere/pkg/apis/tenant/v1alpha2"
|
||||
fedb1 "kubesphere.io/kubesphere/pkg/apis/types/v1beta1"
|
||||
tenantv1alpha1 "kubesphere.io/api/tenant/v1alpha1"
|
||||
tenantv1alpha2 "kubesphere.io/api/tenant/v1alpha2"
|
||||
fedb1 "kubesphere.io/api/types/v1beta1"
|
||||
|
||||
"context"
|
||||
|
||||
|
||||
@@ -25,7 +25,8 @@ import (
|
||||
"k8s.io/apimachinery/pkg/util/wait"
|
||||
"kubesphere.io/client-go/client"
|
||||
|
||||
"kubesphere.io/kubesphere/pkg/apis/iam/v1alpha2"
|
||||
"kubesphere.io/api/iam/v1alpha2"
|
||||
|
||||
"kubesphere.io/kubesphere/test/e2e/constant"
|
||||
"kubesphere.io/kubesphere/test/e2e/framework"
|
||||
"kubesphere.io/kubesphere/test/e2e/framework/iam"
|
||||
|
||||
39
test/e2e/help_test.go
Normal file
39
test/e2e/help_test.go
Normal file
@@ -0,0 +1,39 @@
|
||||
package e2e
|
||||
|
||||
import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
v1 "k8s.io/api/core/v1"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/client-go/rest"
|
||||
"kubesphere.io/client-go/client"
|
||||
"kubesphere.io/client-go/client/generic"
|
||||
)
|
||||
|
||||
func TestDelayingDeliverer(t *testing.T) {
|
||||
|
||||
config := &rest.Config{
|
||||
Host: "http://127.0.0.1:9090",
|
||||
Username: "tester",
|
||||
Password: "P@88w0rd",
|
||||
}
|
||||
|
||||
sch := runtime.NewScheme()
|
||||
v1.AddToScheme(sch)
|
||||
c, _ := generic.New(config, client.Options{Scheme: sch})
|
||||
|
||||
// sar := &authv1.SelfSubjectRulesReview{
|
||||
// Spec: authv1.SelfSubjectRulesReviewSpec{
|
||||
// Namespace: "kube-system",
|
||||
// },
|
||||
// }
|
||||
// err := c.Create(context.TODO(), sar)
|
||||
|
||||
pods := &v1.PodList{}
|
||||
|
||||
err := c.List(context.TODO(), pods)
|
||||
|
||||
assert.Nil(t, err)
|
||||
}
|
||||
@@ -24,7 +24,8 @@ import (
|
||||
. "github.com/onsi/gomega"
|
||||
"kubesphere.io/client-go/client"
|
||||
|
||||
iamv1alpha2 "kubesphere.io/kubesphere/pkg/apis/iam/v1alpha2"
|
||||
iamv1alpha2 "kubesphere.io/api/iam/v1alpha2"
|
||||
|
||||
"kubesphere.io/kubesphere/test/e2e/framework"
|
||||
"kubesphere.io/kubesphere/test/e2e/framework/iam"
|
||||
"kubesphere.io/kubesphere/test/e2e/framework/workspace"
|
||||
|
||||
Reference in New Issue
Block a user