diff --git a/pkg/providers/ingress/translation/annotations.go b/pkg/providers/ingress/translation/annotations.go index 88686aacae..6b9d3d8155 100644 --- a/pkg/providers/ingress/translation/annotations.go +++ b/pkg/providers/ingress/translation/annotations.go @@ -18,25 +18,25 @@ import ( "go.uber.org/zap" "github.com/apache/apisix-ingress-controller/pkg/log" - annotations2 "github.com/apache/apisix-ingress-controller/pkg/providers/ingress/translation/annotations" + "github.com/apache/apisix-ingress-controller/pkg/providers/ingress/translation/annotations" apisix "github.com/apache/apisix-ingress-controller/pkg/types/apisix/v1" ) var ( - _handlers = []annotations2.Handler{ - annotations2.NewCorsHandler(), - annotations2.NewIPRestrictionHandler(), - annotations2.NewRewriteHandler(), - annotations2.NewRedirectHandler(), - annotations2.NewForwardAuthHandler(), - annotations2.NewBasicAuthHandler(), - annotations2.NewKeyAuthHandler(), - annotations2.NewCSRFHandler(), + _handlers = []annotations.Handler{ + annotations.NewCorsHandler(), + annotations.NewIPRestrictionHandler(), + annotations.NewRewriteHandler(), + annotations.NewRedirectHandler(), + annotations.NewForwardAuthHandler(), + annotations.NewBasicAuthHandler(), + annotations.NewKeyAuthHandler(), + annotations.NewCSRFHandler(), } ) func (t *translator) TranslateAnnotations(anno map[string]string) apisix.Plugins { - extractor := annotations2.NewExtractor(anno) + extractor := annotations.NewExtractor(anno) plugins := make(apisix.Plugins) for _, handler := range _handlers { out, err := handler.Handle(extractor) diff --git a/test/e2e/suite-ingress/suite-ingress-resource/resourcepushing.go b/test/e2e/suite-ingress/suite-ingress-resource/resourcepushing.go index 42f5c9afcf..8d15575c34 100644 --- a/test/e2e/suite-ingress/suite-ingress-resource/resourcepushing.go +++ b/test/e2e/suite-ingress/suite-ingress-resource/resourcepushing.go @@ -29,7 +29,7 @@ import ( var _ = ginkgo.Describe("suite-ingress-resource: ApisixRoute Testing", func() { suites := func(scaffoldFunc func() *scaffold.Scaffold) { s := scaffoldFunc() - ginkgo.FIt("create and then scale upstream pods to 2 ", func() { + ginkgo.It("create and then scale upstream pods to 2 ", func() { backendSvc, backendSvcPort := s.DefaultHTTPBackend() apisixRoute := fmt.Sprintf(` apiVersion: apisix.apache.org/v2beta3