Skip to content

Commit

Permalink
Revert unskipping of mssql tests (elastic#18259) (elastic#18271)
Browse files Browse the repository at this point in the history
  • Loading branch information
sayden authored May 6, 2020
1 parent a6e56c6 commit 2c4c243
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ import (
"net/url"
"testing"

"github.com/elastic/beats/v7/libbeat/logp"
"github.com/elastic/beats/v7/libbeat/tests/compose"

_ "github.com/denisenkom/go-mssqldb"
"github.com/pkg/errors"
"github.com/stretchr/testify/assert"
Expand All @@ -20,10 +17,9 @@ import (
)

func TestData(t *testing.T) {
logp.TestingSetup()
service := compose.EnsureUp(t, "mssql")
t.Skip("Skipping `data.json` generation test")

f := mbtest.NewReportingMetricSetV2(t, mtest.GetConfig(service.Host(), "performance"))
f := mbtest.NewReportingMetricSetV2(t, mtest.GetConfig("performance"))

err := mbtest.WriteEventsReporterV2(f, t, "")
assert.NoError(t, err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,14 @@ package transaction_log
import (
"testing"

"github.com/elastic/beats/v7/libbeat/logp"
"github.com/elastic/beats/v7/libbeat/tests/compose"

mbtest "github.com/elastic/beats/v7/metricbeat/mb/testing"
mtest "github.com/elastic/beats/v7/x-pack/metricbeat/module/mssql/testing"
)

func TestData(t *testing.T) {
logp.TestingSetup()
service := compose.EnsureUp(t, "mssql")
t.Skip("Skipping `data.json` generation test")

f := mbtest.NewReportingMetricSetV2(t, mtest.GetConfig(service.Host(), "transaction_log"))
f := mbtest.NewReportingMetricSetV2(t, mtest.GetConfig("transaction_log"))

err := mbtest.WriteEventsReporterV2(f, t, "")
if err != nil {
Expand Down

0 comments on commit 2c4c243

Please sign in to comment.