Skip to content

Commit

Permalink
remove test for kinesis
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiyan-sheng committed Jul 30, 2021
1 parent d67ddf2 commit 2b95163
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
// or more contributor license agreements. Licensed under the Elastic License;
// you may not use this file except in compliance with the Elastic License.

// +build integration
// +build aws

package billing

import (
Expand All @@ -15,13 +12,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
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

0 comments on commit 2b95163

Please sign in to comment.