Skip to content

Commit

Permalink
Remove info output from GetConfigFromTest in aws module (#17062)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiyan-sheng authored Mar 18, 2020
1 parent 304eca4 commit c06c106
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions x-pack/metricbeat/module/aws/mtest/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")
Expand All @@ -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.
Expand Down

0 comments on commit c06c106

Please sign in to comment.