Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Metricbeat] Remove info output from GetConfigFromTest in aws module #17062

Merged
merged 1 commit into from
Mar 18, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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