Files
kubesphere/test/e2e/quick.go
KubeSphere CI Bot 447a51f08b feat: kubesphere 4.0 (#6115)
* feat: kubesphere 4.0

Signed-off-by: ci-bot <ci-bot@kubesphere.io>

* feat: kubesphere 4.0

Signed-off-by: ci-bot <ci-bot@kubesphere.io>

---------

Signed-off-by: ci-bot <ci-bot@kubesphere.io>
Co-authored-by: ks-ci-bot <ks-ci-bot@example.com>
Co-authored-by: joyceliu <joyceliu@yunify.com>
2024-09-06 11:05:52 +08:00

33 lines
664 B
Go

package e2e
import (
"context"
"kubesphere.io/client-go/rest"
. "github.com/onsi/ginkgo/v2" //nolint:stylecheck
. "github.com/onsi/gomega" //nolint:stylecheck
"kubesphere.io/kubesphere/test/e2e/framework"
)
var _ = Describe("API Test", func() {
f := framework.NewKubeSphereFramework()
var client *rest.RESTClient
BeforeEach(func() {
client = f.RestClient()
})
It("Should retrieve KubeSphere API version", func() {
result := client.Get().AbsPath("/version").Do(context.Background())
Expect(result.Error()).Should(BeNil())
data, err := result.Raw()
Expect(err).Should(BeNil())
framework.Logf("Response is %v", string(data))
})
})