diff --git a/pkg/config/dynamic/zz_generated.deepcopy.go b/pkg/config/dynamic/zz_generated.deepcopy.go index fee40799cf..a1a872d9a2 100644 --- a/pkg/config/dynamic/zz_generated.deepcopy.go +++ b/pkg/config/dynamic/zz_generated.deepcopy.go @@ -34,6 +34,22 @@ import ( types "github.com/traefik/traefik/v2/pkg/types" ) +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *AWSLambda) DeepCopyInto(out *AWSLambda) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSLambda. +func (in *AWSLambda) DeepCopy() *AWSLambda { + if in == nil { + return nil + } + out := new(AWSLambda) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *AddPrefix) DeepCopyInto(out *AddPrefix) { *out = *in @@ -765,6 +781,11 @@ func (in *Middleware) DeepCopyInto(out *Middleware) { *out = new(ContentType) **out = **in } + if in.AWSLambda != nil { + in, out := &in.AWSLambda, &out.AWSLambda + *out = new(AWSLambda) + **out = **in + } if in.Plugin != nil { in, out := &in.Plugin, &out.Plugin *out = make(map[string]PluginConf, len(*in)) diff --git a/pkg/middlewares/awslambda/aws_lambda_test.go b/pkg/middlewares/awslambda/aws_lambda_test.go index 860f1e868e..68985180f8 100644 --- a/pkg/middlewares/awslambda/aws_lambda_test.go +++ b/pkg/middlewares/awslambda/aws_lambda_test.go @@ -84,7 +84,7 @@ func Test_AWSLambdaMiddleware_Invoke(t *testing.T) { resp := recorder.Result() rBody, _ := io.ReadAll(resp.Body) - assert.Equal(t, []byte("response_body"), rbody) + assert.Equal(t, []byte("response_body"), rBody) assert.Equal(t, resp.StatusCode, http.StatusTeapot) }