diff --git a/cmd/generate_gatewayapi_httproute_test.go b/cmd/generate_gatewayapi_httproute_test.go index 32cecfe..49666de 100644 --- a/cmd/generate_gatewayapi_httproute_test.go +++ b/cmd/generate_gatewayapi_httproute_test.go @@ -2,7 +2,7 @@ package cmd import ( "bytes" - "io/ioutil" + "io" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" @@ -40,7 +40,7 @@ var _ = Describe("Generate HTTPRoute", func() { It("HTTPRoute is generated", func() { cmd.SetArgs([]string{"--oas", "testdata/petstore_openapi.yaml"}) Expect(cmd.Execute()).ShouldNot(HaveOccurred()) - out, err := ioutil.ReadAll(cmdStdoutBuffer) + out, err := io.ReadAll(cmdStdoutBuffer) Expect(err).ShouldNot(HaveOccurred()) var httpRoute gatewayapiv1.HTTPRoute diff --git a/cmd/generate_kuadrant_authpolicy_test.go b/cmd/generate_kuadrant_authpolicy_test.go index ea89de9..8bde5de 100644 --- a/cmd/generate_kuadrant_authpolicy_test.go +++ b/cmd/generate_kuadrant_authpolicy_test.go @@ -2,7 +2,7 @@ package cmd import ( "bytes" - "io/ioutil" + "io" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" @@ -44,7 +44,7 @@ var _ = Describe("Generate AuthPolicy", func() { It("authorization policy generated", func() { cmd.SetArgs([]string{"--oas", "testdata/petstore_openapi.yaml"}) Expect(cmd.Execute()).ShouldNot(HaveOccurred()) - out, err := ioutil.ReadAll(cmdStdoutBuffer) + out, err := io.ReadAll(cmdStdoutBuffer) Expect(err).ShouldNot(HaveOccurred()) var kap kuadrantapiv1beta2.AuthPolicy diff --git a/cmd/generate_kuadrant_ratelimitpolicy_test.go b/cmd/generate_kuadrant_ratelimitpolicy_test.go index 1441d08..ae71f55 100644 --- a/cmd/generate_kuadrant_ratelimitpolicy_test.go +++ b/cmd/generate_kuadrant_ratelimitpolicy_test.go @@ -2,7 +2,7 @@ package cmd import ( "bytes" - "io/ioutil" + "io" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" @@ -43,7 +43,7 @@ var _ = Describe("Generate Ratelimitpolicy", func() { It("rate limit policy generated", func() { cmd.SetArgs([]string{"--oas", "testdata/petstore_openapi.yaml"}) Expect(cmd.Execute()).ShouldNot(HaveOccurred()) - out, err := ioutil.ReadAll(cmdStdoutBuffer) + out, err := io.ReadAll(cmdStdoutBuffer) Expect(err).ShouldNot(HaveOccurred()) var rlp kuadrantapiv1beta2.RateLimitPolicy