Skip to content

Commit

Permalink
Remove now unused Beat spec files (#4964)
Browse files Browse the repository at this point in the history
* Remove unused beat spec files.

* Rename filebeat to testbeat.
  • Loading branch information
cmacknz authored Jun 20, 2024
1 parent 81e112d commit 9bf125b
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 550 deletions.
89 changes: 44 additions & 45 deletions pkg/component/component_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -610,8 +610,8 @@ func TestToComponents(t *testing.T) {
ID: "filestream-default",
InputSpec: &InputRuntimeSpec{
InputType: "filestream",
BinaryName: "filebeat",
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
BinaryName: "testbeat",
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
},
Units: []Unit{
{
Expand Down Expand Up @@ -839,8 +839,8 @@ func TestToComponents(t *testing.T) {
OutputType: "elasticsearch",
InputSpec: &InputRuntimeSpec{
InputType: "filestream",
BinaryName: "filebeat",
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
BinaryName: "testbeat",
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
},
Units: []Unit{
{
Expand Down Expand Up @@ -948,8 +948,8 @@ func TestToComponents(t *testing.T) {
OutputType: "elasticsearch",
InputSpec: &InputRuntimeSpec{
InputType: "filestream",
BinaryName: "filebeat",
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
BinaryName: "testbeat",
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
},
Units: []Unit{
{
Expand Down Expand Up @@ -1059,8 +1059,8 @@ func TestToComponents(t *testing.T) {
OutputType: "elasticsearch",
InputSpec: &InputRuntimeSpec{
InputType: "filestream",
BinaryName: "filebeat",
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
BinaryName: "testbeat",
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
},
Units: []Unit{
{
Expand Down Expand Up @@ -1219,8 +1219,8 @@ func TestToComponents(t *testing.T) {
OutputType: "elasticsearch",
InputSpec: &InputRuntimeSpec{
InputType: "filestream",
BinaryName: "filebeat",
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
BinaryName: "testbeat",
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
},
Units: []Unit{
{
Expand Down Expand Up @@ -1256,8 +1256,8 @@ func TestToComponents(t *testing.T) {
OutputType: "elasticsearch",
InputSpec: &InputRuntimeSpec{
InputType: "filestream",
BinaryName: "filebeat",
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
BinaryName: "testbeat",
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
},
Units: []Unit{
{
Expand Down Expand Up @@ -1293,8 +1293,8 @@ func TestToComponents(t *testing.T) {
OutputType: "elasticsearch",
InputSpec: &InputRuntimeSpec{
InputType: "log",
BinaryName: "filebeat",
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
BinaryName: "testbeat",
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
},
Units: []Unit{
{
Expand All @@ -1316,7 +1316,6 @@ func TestToComponents(t *testing.T) {
},
{
ID: "log-default-logfile-1",
Type: client.UnitTypeInput,
LogLevel: defaultUnitLogLevel,
Config: MustExpectedConfig(map[string]interface{}{
"type": "log",
Expand All @@ -1330,8 +1329,8 @@ func TestToComponents(t *testing.T) {
OutputType: "elasticsearch",
InputSpec: &InputRuntimeSpec{
InputType: "log",
BinaryName: "filebeat",
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
BinaryName: "testbeat",
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
},
Units: []Unit{
{
Expand All @@ -1358,8 +1357,8 @@ func TestToComponents(t *testing.T) {
OutputType: "logstash",
InputSpec: &InputRuntimeSpec{
InputType: "log",
BinaryName: "filebeat",
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
BinaryName: "testbeat",
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
},
Units: []Unit{
{
Expand All @@ -1386,8 +1385,8 @@ func TestToComponents(t *testing.T) {
OutputType: "redis",
InputSpec: &InputRuntimeSpec{
InputType: "log",
BinaryName: "filebeat",
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
BinaryName: "testbeat",
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
},
Units: []Unit{
{
Expand Down Expand Up @@ -1828,8 +1827,8 @@ func TestToComponents(t *testing.T) {
OutputType: "elasticsearch",
InputSpec: &InputRuntimeSpec{
InputType: "filestream",
BinaryName: "filebeat",
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
BinaryName: "testbeat",
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
},
Units: []Unit{
{
Expand Down Expand Up @@ -2087,8 +2086,8 @@ func TestToComponents(t *testing.T) {
OutputType: "elasticsearch",
InputSpec: &InputRuntimeSpec{
InputType: "filestream",
BinaryName: "filebeat",
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
BinaryName: "testbeat",
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
},
Units: []Unit{
{
Expand Down Expand Up @@ -2130,8 +2129,8 @@ func TestToComponents(t *testing.T) {
OutputType: "elasticsearch",
InputSpec: &InputRuntimeSpec{
InputType: "filestream",
BinaryName: "filebeat",
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
BinaryName: "testbeat",
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
},
Units: []Unit{
{
Expand Down Expand Up @@ -2168,8 +2167,8 @@ func TestToComponents(t *testing.T) {
OutputType: "elasticsearch",
InputSpec: &InputRuntimeSpec{
InputType: "log",
BinaryName: "filebeat",
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
BinaryName: "testbeat",
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
},
Units: []Unit{
{
Expand Down Expand Up @@ -2280,8 +2279,8 @@ func TestToComponents(t *testing.T) {
OutputType: "elasticsearch",
InputSpec: &InputRuntimeSpec{
InputType: "log",
BinaryName: "filebeat",
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
BinaryName: "testbeat",
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
},
Units: []Unit{
{
Expand Down Expand Up @@ -2309,8 +2308,8 @@ func TestToComponents(t *testing.T) {
OutputType: "logstash",
InputSpec: &InputRuntimeSpec{
InputType: "log",
BinaryName: "filebeat",
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
BinaryName: "testbeat",
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
},
Units: []Unit{
{
Expand Down Expand Up @@ -2380,8 +2379,8 @@ func TestToComponents(t *testing.T) {
OutputType: "redis",
InputSpec: &InputRuntimeSpec{
InputType: "log",
BinaryName: "filebeat",
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
BinaryName: "testbeat",
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
},
Units: []Unit{
{
Expand Down Expand Up @@ -3078,8 +3077,8 @@ func TestToComponents(t *testing.T) {
OutputType: "elasticsearch",
InputSpec: &InputRuntimeSpec{
InputType: "log",
BinaryName: "filebeat",
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
BinaryName: "testbeat",
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
},
Units: []Unit{
{
Expand Down Expand Up @@ -3136,8 +3135,8 @@ func TestToComponents(t *testing.T) {
OutputType: "elasticsearch",
InputSpec: &InputRuntimeSpec{
InputType: "filestream",
BinaryName: "filebeat",
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
BinaryName: "testbeat",
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
},
Units: []Unit{
{
Expand Down Expand Up @@ -3249,8 +3248,8 @@ func TestToComponents(t *testing.T) {
OutputType: "elasticsearch",
InputSpec: &InputRuntimeSpec{
InputType: "filestream",
BinaryName: "filebeat",
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
BinaryName: "testbeat",
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
},
Units: []Unit{
{
Expand Down Expand Up @@ -3364,8 +3363,8 @@ func TestToComponents(t *testing.T) {
OutputType: "kafka",
InputSpec: &InputRuntimeSpec{
InputType: "filestream",
BinaryName: "filebeat",
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
BinaryName: "testbeat",
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
},
Units: []Unit{
{
Expand Down Expand Up @@ -3468,8 +3467,8 @@ func TestToComponents(t *testing.T) {
OutputType: "logstash",
InputSpec: &InputRuntimeSpec{
InputType: "filestream",
BinaryName: "filebeat",
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
BinaryName: "testbeat",
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
},
Units: []Unit{
{
Expand Down
22 changes: 1 addition & 21 deletions pkg/component/load_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ func TestLoadSpec_Components(t *testing.T) {
Name: "APM Server",
Path: "apm-server.spec.yml",
},
{
Name: "Auditbeat",
Path: "auditbeat.spec.yml",
},
{
Name: "Cloudbeat",
Path: "cloudbeat.spec.yml",
Expand All @@ -59,28 +55,12 @@ func TestLoadSpec_Components(t *testing.T) {
},
{
Name: "Filebeat",
Path: "filebeat.spec.yml",
Path: "testbeat.spec.yml",
},
{
Name: "Fleet Server",
Path: "fleet-server.spec.yml",
},
{
Name: "Heartbeat",
Path: "heartbeat.spec.yml",
},
{
Name: "Metricbeat",
Path: "metricbeat.spec.yml",
},
{
Name: "Osquerybeat",
Path: "osquerybeat.spec.yml",
},
{
Name: "Packetbeat",
Path: "packetbeat.spec.yml",
},
{
Name: "Universal Profiling Collector",
Path: "pf-elastic-collector.spec.yml",
Expand Down
53 changes: 0 additions & 53 deletions specs/auditbeat.spec.yml

This file was deleted.

53 changes: 0 additions & 53 deletions specs/heartbeat.spec.yml

This file was deleted.

Loading

0 comments on commit 9bf125b

Please sign in to comment.