Skip to content

Commit

Permalink
Disable aws module integration tests (#24263)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiyan-sheng authored Aug 16, 2021
1 parent d03b56f commit 565b1a5
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ import (
"github.com/stretchr/testify/assert"

"github.com/elastic/beats/v7/libbeat/common"
_ "github.com/elastic/beats/v7/libbeat/processors/actions"
mbtest "github.com/elastic/beats/v7/metricbeat/mb/testing"
"github.com/elastic/beats/v7/x-pack/metricbeat/module/aws"
"github.com/elastic/beats/v7/x-pack/metricbeat/module/aws/mtest"
)

func TestFetch(t *testing.T) {
t.Skip("flaky test: https://github.com/elastic/beats/issues/25130")
config := mtest.GetConfigForTest(t, "billing", "24h")

metricSet := mbtest.NewReportingMetricSetV2Error(t, config)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
)

func TestFetch(t *testing.T) {
t.Skip("flaky test: https://github.com/elastic/beats/issues/24200")
config := mtest.GetConfigForTest(t, "cloudwatch", "300s")

config = addCloudwatchMetricsToConfig(config)
Expand Down
1 change: 1 addition & 0 deletions x-pack/metricbeat/module/aws/ec2/ec2_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
)

func TestFetch(t *testing.T) {
t.Skip("flaky test: https://github.com/elastic/beats/issues/24201")
config := mtest.GetConfigForTest(t, "ec2", "300s")

metricSet := mbtest.NewReportingMetricSetV2Error(t, config)
Expand Down
15 changes: 0 additions & 15 deletions x-pack/metricbeat/module/aws/kinesis/kinesis_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,11 @@ package kinesis
import (
"testing"

"github.com/stretchr/testify/assert"

_ "github.com/elastic/beats/v7/libbeat/processors/actions"
mbtest "github.com/elastic/beats/v7/metricbeat/mb/testing"
"github.com/elastic/beats/v7/x-pack/metricbeat/module/aws/mtest"
)

func TestFetch(t *testing.T) {
config := mtest.GetConfigForTest(t, "kinesis", "60s")

metricSet := mbtest.NewReportingMetricSetV2Error(t, config)
events, errs := mbtest.ReportingFetchV2Error(metricSet)
if len(errs) > 0 {
t.Fatalf("Expected 0 error, had %d. %v\n", len(errs), errs)
}

assert.NotEmpty(t, events)
mbtest.TestMetricsetFieldsDocumented(t, metricSet, events)
}

func TestData(t *testing.T) {
config := mtest.GetConfigForTest(t, "kinesis", "60s")

Expand Down
1 change: 1 addition & 0 deletions x-pack/metricbeat/module/aws/rds/rds_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
)

func TestFetch(t *testing.T) {
t.Skip("flaky test: https://github.com/elastic/beats/issues/24202")
config := mtest.GetConfigForTest(t, "rds", "60s")

metricSet := mbtest.NewReportingMetricSetV2Error(t, config)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
)

func TestFetch(t *testing.T) {
t.Skip("flaky test: https://github.com/elastic/beats/issues/24202")
config := mtest.GetConfigForTest(t, "s3_daily_storage", "86400s")

metricSet := mbtest.NewReportingMetricSetV2Error(t, config)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
)

func TestFetch(t *testing.T) {
t.Skip("flaky test: https://github.com/elastic/beats/issues/24204")
config := mtest.GetConfigForTest(t, "s3_request", "60s")

metricSet := mbtest.NewReportingMetricSetV2Error(t, config)
Expand Down
1 change: 1 addition & 0 deletions x-pack/metricbeat/module/aws/sqs/sqs_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
)

func TestFetch(t *testing.T) {
t.Skip("flaky test: https://github.com/elastic/beats/issues/24205")
config := mtest.GetConfigForTest(t, "sqs", "300s")

metricSet := mbtest.NewReportingMetricSetV2Error(t, config)
Expand Down

0 comments on commit 565b1a5

Please sign in to comment.