mirror of
https://github.com/kubevela/kubevela.git
synced 2026-02-14 18:10:21 +00:00
24 lines
460 B
Go
24 lines
460 B
Go
package integration_test
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
"net/http/httptest"
|
|
|
|
. "github.com/onsi/ginkgo"
|
|
. "github.com/onsi/gomega"
|
|
)
|
|
|
|
var _ = Describe("example test", func() {
|
|
|
|
It("Test get environment", func() {
|
|
w := httptest.NewRecorder()
|
|
req, _ := http.NewRequest("GET", "/api/envs/test", nil)
|
|
restServer.ServeHTTP(w, req)
|
|
|
|
Expect(w.Code).Should(Equal(http.StatusOK))
|
|
// TODO: unmarshall the body and check
|
|
fmt.Println(w.Body.String())
|
|
})
|
|
})
|