Skip to content

Commit

Permalink
Disable registration and tests instead of excluding from build.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Wurm committed Dec 12, 2018
1 parent 2cc3f44 commit 415a0ac
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
2 changes: 0 additions & 2 deletions x-pack/auditbeat/module/system/packages/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +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 ignore

package packages

// Config defines the host metricset's configuration options.
Expand Down
6 changes: 2 additions & 4 deletions x-pack/auditbeat/module/system/packages/packages.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +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 ignore

package packages

import (
Expand Down Expand Up @@ -40,9 +38,9 @@ const (
)

func init() {
mb.Registry.MustAddMetricSet(moduleName, metricsetName, New,
/*mb.Registry.MustAddMetricSet(moduleName, metricsetName, New,
mb.DefaultMetricSet(),
)
)*/
}

// MetricSet collects data about the host.
Expand Down
5 changes: 0 additions & 5 deletions x-pack/auditbeat/module/system/packages/packages_dummy.go

This file was deleted.

4 changes: 2 additions & 2 deletions x-pack/auditbeat/module/system/packages/packages_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +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 ignore

package packages

import (
Expand All @@ -13,6 +11,8 @@ import (
)

func TestData(t *testing.T) {
t.Skip("Packages metricset is disabled")

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

0 comments on commit 415a0ac

Please sign in to comment.