diff --git a/e2e/aks-runtime/aks_runtime_test.go b/e2e/aks-runtime/aks_runtime_test.go index 862ae4f3a..4ec8f3a5d 100644 --- a/e2e/aks-runtime/aks_runtime_test.go +++ b/e2e/aks-runtime/aks_runtime_test.go @@ -25,9 +25,7 @@ import ( const testContainer = "testcontainer" -var ( - imageReplacementsFile, namespaceFile, _platformStr string -) +var imageReplacementsFile, namespaceFile, _platformStr string func TestAKSRuntime(t *testing.T) { require := require.New(t) diff --git a/e2e/genpolicy/genpolicy_test.go b/e2e/genpolicy/genpolicy_test.go index a97bcf60f..7e2c6bc57 100644 --- a/e2e/genpolicy/genpolicy_test.go +++ b/e2e/genpolicy/genpolicy_test.go @@ -24,9 +24,7 @@ import ( "github.com/stretchr/testify/require" ) -var ( - imageReplacementsFile, namespaceFile, platformStr string -) +var imageReplacementsFile, namespaceFile, platformStr string // TestGenpolicy runs regression tests for generated policies. func TestGenpolicy(t *testing.T) { diff --git a/e2e/getdents/getdents_test.go b/e2e/getdents/getdents_test.go index 9117930d7..8fe7b6af3 100644 --- a/e2e/getdents/getdents_test.go +++ b/e2e/getdents/getdents_test.go @@ -28,9 +28,7 @@ const ( getdent = "getdents-tester" ) -var ( - imageReplacementsFile, namespaceFile, platformStr string -) +var imageReplacementsFile, namespaceFile, platformStr string func TestGetDEnts(t *testing.T) { platform, err := platforms.FromString(platformStr) diff --git a/e2e/openssl/openssl_test.go b/e2e/openssl/openssl_test.go index 860f02463..ae23cc0ec 100644 --- a/e2e/openssl/openssl_test.go +++ b/e2e/openssl/openssl_test.go @@ -35,9 +35,7 @@ const ( rootCAFile = "coordinator-root-ca.pem" ) -var ( - imageReplacementsFile, namespaceFile, platformStr string -) +var imageReplacementsFile, namespaceFile, platformStr string // TestOpenSSL runs e2e tests on the example OpenSSL deployment. func TestOpenSSL(t *testing.T) { diff --git a/e2e/policy/policy_test.go b/e2e/policy/policy_test.go index 640b44deb..818a0e495 100644 --- a/e2e/policy/policy_test.go +++ b/e2e/policy/policy_test.go @@ -36,9 +36,7 @@ const ( coordinatorPod = "coordinator-0" ) -var ( - imageReplacementsFile, namespaceFile, platformStr string -) +var imageReplacementsFile, namespaceFile, platformStr string func TestPolicy(t *testing.T) { platform, err := platforms.FromString(platformStr) diff --git a/e2e/regression/regression_test.go b/e2e/regression/regression_test.go index 950e82173..b59884d59 100644 --- a/e2e/regression/regression_test.go +++ b/e2e/regression/regression_test.go @@ -24,9 +24,7 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) -var ( - imageReplacementsFile, namespaceFile, platformStr string -) +var imageReplacementsFile, namespaceFile, platformStr string func TestRegression(t *testing.T) { yamlDir := "./e2e/regression/testdata/" diff --git a/e2e/servicemesh/servicemesh_test.go b/e2e/servicemesh/servicemesh_test.go index f7aa4e63d..25cdd8cad 100644 --- a/e2e/servicemesh/servicemesh_test.go +++ b/e2e/servicemesh/servicemesh_test.go @@ -26,9 +26,7 @@ import ( "github.com/stretchr/testify/require" ) -var ( - imageReplacementsFile, namespaceFile, platformStr string -) +var imageReplacementsFile, namespaceFile, platformStr string // TestIngressEgress tests that the ingress and egress proxies work as configured. func TestIngressEgress(t *testing.T) { diff --git a/e2e/volumestatefulset/volumestatefulset_test.go b/e2e/volumestatefulset/volumestatefulset_test.go index b300ec0d3..5c835dc38 100644 --- a/e2e/volumestatefulset/volumestatefulset_test.go +++ b/e2e/volumestatefulset/volumestatefulset_test.go @@ -21,9 +21,7 @@ import ( "github.com/stretchr/testify/require" ) -var ( - imageReplacementsFile, namespaceFile, platformStr string -) +var imageReplacementsFile, namespaceFile, platformStr string // TestWorkloadSecrets tests that secrets are correctly injected into workloads. func TestVolumeStatefulSet(t *testing.T) { diff --git a/e2e/workloadsecret/workloadsecret_test.go b/e2e/workloadsecret/workloadsecret_test.go index e20c54f80..6591e048b 100644 --- a/e2e/workloadsecret/workloadsecret_test.go +++ b/e2e/workloadsecret/workloadsecret_test.go @@ -24,9 +24,7 @@ import ( "github.com/stretchr/testify/require" ) -var ( - imageReplacementsFile, namespaceFile, platformStr string -) +var imageReplacementsFile, namespaceFile, platformStr string // TestWorkloadSecrets tests that secrets are correctly injected into workloads. func TestWorkloadSecrets(t *testing.T) {