Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
eguzki committed May 15, 2024
1 parent ef456f6 commit 4def3f7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cmd/generate_gatewayapi_httproute_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cmd

import (
"bytes"
"io/ioutil"
"io"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions cmd/generate_kuadrant_authpolicy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cmd

import (
"bytes"
"io/ioutil"
"io"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions cmd/generate_kuadrant_ratelimitpolicy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cmd

import (
"bytes"
"io/ioutil"
"io"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4def3f7

Please sign in to comment.