mirror of
https://github.com/kubevela/kubevela.git
synced 2026-04-21 18:17:51 +00:00
@@ -17,6 +17,8 @@ limitations under the License.
|
||||
package e2e_apiserver_test
|
||||
|
||||
import (
|
||||
"io"
|
||||
|
||||
. "github.com/onsi/ginkgo"
|
||||
. "github.com/onsi/gomega"
|
||||
)
|
||||
@@ -32,8 +34,8 @@ var _ = Describe("Helm rest api test", func() {
|
||||
"version": "6.1.0",
|
||||
})
|
||||
defer resp.Body.Close()
|
||||
values := map[string]interface{}{}
|
||||
Expect(decodeResponseBody(resp, &values)).Should(Succeed())
|
||||
values, err := io.ReadAll(resp.Body)
|
||||
Expect(err).Should(BeNil())
|
||||
Expect(len(values)).ShouldNot(BeEquivalentTo(0))
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user