Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com>
This commit is contained in:
楚岳
2023-02-09 17:35:46 +08:00
parent 70d8cc5d52
commit ef4574a188

View File

@@ -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))
})
})