From bc4cb4851804c0fc21fda5f8a88c2667587d39b8 Mon Sep 17 00:00:00 2001 From: Edoardo Spadolini Date: Mon, 28 Aug 2023 23:59:01 +0200 Subject: [PATCH] Fix undefined name in test-only package (#31109) * Fix undefined variable in test-only package * Update e2e/aws/doc.go Co-authored-by: Zac Bergquist --------- Co-authored-by: Zac Bergquist --- e2e/aws/doc.go | 16 ++++++++++++++++ e2e/aws/{fixtures.go => fixtures_test.go} | 6 ++---- 2 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 e2e/aws/doc.go rename e2e/aws/{fixtures.go => fixtures_test.go} (98%) diff --git a/e2e/aws/doc.go b/e2e/aws/doc.go new file mode 100644 index 00000000000..f7d977670c5 --- /dev/null +++ b/e2e/aws/doc.go @@ -0,0 +1,16 @@ +// Copyright 2023 Gravitational, Inc +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Package e2e contains end-to-end tests for Teleport's AWS integrations. +package e2e diff --git a/e2e/aws/fixtures.go b/e2e/aws/fixtures_test.go similarity index 98% rename from e2e/aws/fixtures.go rename to e2e/aws/fixtures_test.go index b402e90459c..eba7a819b6c 100644 --- a/e2e/aws/fixtures.go +++ b/e2e/aws/fixtures_test.go @@ -32,10 +32,8 @@ import ( "github.com/gravitational/teleport/lib/utils" ) -var ( - // Username used for tests. - username string -) +// username is the name of the host user used for tests. +var username string func init() { me, err := user.Current()