From c06c106cabbd7252cf784f518c8188ef821913ea Mon Sep 17 00:00:00 2001 From: kaiyan-sheng Date: Wed, 18 Mar 2020 08:25:04 -0600 Subject: [PATCH] Remove info output from GetConfigFromTest in aws module (#17062) --- x-pack/metricbeat/module/aws/mtest/integration.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/x-pack/metricbeat/module/aws/mtest/integration.go b/x-pack/metricbeat/module/aws/mtest/integration.go index 06366eafa05b..f99d34bb05f5 100644 --- a/x-pack/metricbeat/module/aws/mtest/integration.go +++ b/x-pack/metricbeat/module/aws/mtest/integration.go @@ -15,7 +15,7 @@ import ( ) // GetConfigForTest function gets aws credentials for integration tests. -func GetConfigForTest(t *testing.T, metricSetName string, period string) (map[string]interface{}, string) { +func GetConfigForTest(t *testing.T, metricSetName string, period string) map[string]interface{} { t.Helper() accessKeyID, okAccessKeyID := os.LookupEnv("AWS_ACCESS_KEY_ID") @@ -26,7 +26,6 @@ func GetConfigForTest(t *testing.T, metricSetName string, period string) (map[st defaultRegion = "us-west-1" } - info := "" config := map[string]interface{}{} if !okAccessKeyID || accessKeyID == "" { t.Fatal("$AWS_ACCESS_KEY_ID not set or set to empty") @@ -48,7 +47,7 @@ func GetConfigForTest(t *testing.T, metricSetName string, period string) (map[st config["session_token"] = sessionToken } } - return config, info + return config } // CheckEventField function checks a given field type and compares it with the expected type for integration tests.