Skip to content

Commit 9bf125b

Browse files
authored
Remove now unused Beat spec files (elastic#4964)
* Remove unused beat spec files. * Rename filebeat to testbeat.
1 parent 81e112d commit 9bf125b

8 files changed

+46
-550
lines changed

pkg/component/component_test.go

+44-45
Original file line numberDiff line numberDiff line change
@@ -610,8 +610,8 @@ func TestToComponents(t *testing.T) {
610610
ID: "filestream-default",
611611
InputSpec: &InputRuntimeSpec{
612612
InputType: "filestream",
613-
BinaryName: "filebeat",
614-
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
613+
BinaryName: "testbeat",
614+
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
615615
},
616616
Units: []Unit{
617617
{
@@ -839,8 +839,8 @@ func TestToComponents(t *testing.T) {
839839
OutputType: "elasticsearch",
840840
InputSpec: &InputRuntimeSpec{
841841
InputType: "filestream",
842-
BinaryName: "filebeat",
843-
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
842+
BinaryName: "testbeat",
843+
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
844844
},
845845
Units: []Unit{
846846
{
@@ -948,8 +948,8 @@ func TestToComponents(t *testing.T) {
948948
OutputType: "elasticsearch",
949949
InputSpec: &InputRuntimeSpec{
950950
InputType: "filestream",
951-
BinaryName: "filebeat",
952-
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
951+
BinaryName: "testbeat",
952+
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
953953
},
954954
Units: []Unit{
955955
{
@@ -1059,8 +1059,8 @@ func TestToComponents(t *testing.T) {
10591059
OutputType: "elasticsearch",
10601060
InputSpec: &InputRuntimeSpec{
10611061
InputType: "filestream",
1062-
BinaryName: "filebeat",
1063-
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
1062+
BinaryName: "testbeat",
1063+
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
10641064
},
10651065
Units: []Unit{
10661066
{
@@ -1219,8 +1219,8 @@ func TestToComponents(t *testing.T) {
12191219
OutputType: "elasticsearch",
12201220
InputSpec: &InputRuntimeSpec{
12211221
InputType: "filestream",
1222-
BinaryName: "filebeat",
1223-
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
1222+
BinaryName: "testbeat",
1223+
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
12241224
},
12251225
Units: []Unit{
12261226
{
@@ -1256,8 +1256,8 @@ func TestToComponents(t *testing.T) {
12561256
OutputType: "elasticsearch",
12571257
InputSpec: &InputRuntimeSpec{
12581258
InputType: "filestream",
1259-
BinaryName: "filebeat",
1260-
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
1259+
BinaryName: "testbeat",
1260+
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
12611261
},
12621262
Units: []Unit{
12631263
{
@@ -1293,8 +1293,8 @@ func TestToComponents(t *testing.T) {
12931293
OutputType: "elasticsearch",
12941294
InputSpec: &InputRuntimeSpec{
12951295
InputType: "log",
1296-
BinaryName: "filebeat",
1297-
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
1296+
BinaryName: "testbeat",
1297+
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
12981298
},
12991299
Units: []Unit{
13001300
{
@@ -1316,7 +1316,6 @@ func TestToComponents(t *testing.T) {
13161316
},
13171317
{
13181318
ID: "log-default-logfile-1",
1319-
Type: client.UnitTypeInput,
13201319
LogLevel: defaultUnitLogLevel,
13211320
Config: MustExpectedConfig(map[string]interface{}{
13221321
"type": "log",
@@ -1330,8 +1329,8 @@ func TestToComponents(t *testing.T) {
13301329
OutputType: "elasticsearch",
13311330
InputSpec: &InputRuntimeSpec{
13321331
InputType: "log",
1333-
BinaryName: "filebeat",
1334-
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
1332+
BinaryName: "testbeat",
1333+
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
13351334
},
13361335
Units: []Unit{
13371336
{
@@ -1358,8 +1357,8 @@ func TestToComponents(t *testing.T) {
13581357
OutputType: "logstash",
13591358
InputSpec: &InputRuntimeSpec{
13601359
InputType: "log",
1361-
BinaryName: "filebeat",
1362-
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
1360+
BinaryName: "testbeat",
1361+
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
13631362
},
13641363
Units: []Unit{
13651364
{
@@ -1386,8 +1385,8 @@ func TestToComponents(t *testing.T) {
13861385
OutputType: "redis",
13871386
InputSpec: &InputRuntimeSpec{
13881387
InputType: "log",
1389-
BinaryName: "filebeat",
1390-
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
1388+
BinaryName: "testbeat",
1389+
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
13911390
},
13921391
Units: []Unit{
13931392
{
@@ -1828,8 +1827,8 @@ func TestToComponents(t *testing.T) {
18281827
OutputType: "elasticsearch",
18291828
InputSpec: &InputRuntimeSpec{
18301829
InputType: "filestream",
1831-
BinaryName: "filebeat",
1832-
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
1830+
BinaryName: "testbeat",
1831+
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
18331832
},
18341833
Units: []Unit{
18351834
{
@@ -2087,8 +2086,8 @@ func TestToComponents(t *testing.T) {
20872086
OutputType: "elasticsearch",
20882087
InputSpec: &InputRuntimeSpec{
20892088
InputType: "filestream",
2090-
BinaryName: "filebeat",
2091-
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
2089+
BinaryName: "testbeat",
2090+
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
20922091
},
20932092
Units: []Unit{
20942093
{
@@ -2130,8 +2129,8 @@ func TestToComponents(t *testing.T) {
21302129
OutputType: "elasticsearch",
21312130
InputSpec: &InputRuntimeSpec{
21322131
InputType: "filestream",
2133-
BinaryName: "filebeat",
2134-
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
2132+
BinaryName: "testbeat",
2133+
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
21352134
},
21362135
Units: []Unit{
21372136
{
@@ -2168,8 +2167,8 @@ func TestToComponents(t *testing.T) {
21682167
OutputType: "elasticsearch",
21692168
InputSpec: &InputRuntimeSpec{
21702169
InputType: "log",
2171-
BinaryName: "filebeat",
2172-
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
2170+
BinaryName: "testbeat",
2171+
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
21732172
},
21742173
Units: []Unit{
21752174
{
@@ -2280,8 +2279,8 @@ func TestToComponents(t *testing.T) {
22802279
OutputType: "elasticsearch",
22812280
InputSpec: &InputRuntimeSpec{
22822281
InputType: "log",
2283-
BinaryName: "filebeat",
2284-
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
2282+
BinaryName: "testbeat",
2283+
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
22852284
},
22862285
Units: []Unit{
22872286
{
@@ -2309,8 +2308,8 @@ func TestToComponents(t *testing.T) {
23092308
OutputType: "logstash",
23102309
InputSpec: &InputRuntimeSpec{
23112310
InputType: "log",
2312-
BinaryName: "filebeat",
2313-
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
2311+
BinaryName: "testbeat",
2312+
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
23142313
},
23152314
Units: []Unit{
23162315
{
@@ -2380,8 +2379,8 @@ func TestToComponents(t *testing.T) {
23802379
OutputType: "redis",
23812380
InputSpec: &InputRuntimeSpec{
23822381
InputType: "log",
2383-
BinaryName: "filebeat",
2384-
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
2382+
BinaryName: "testbeat",
2383+
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
23852384
},
23862385
Units: []Unit{
23872386
{
@@ -3078,8 +3077,8 @@ func TestToComponents(t *testing.T) {
30783077
OutputType: "elasticsearch",
30793078
InputSpec: &InputRuntimeSpec{
30803079
InputType: "log",
3081-
BinaryName: "filebeat",
3082-
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
3080+
BinaryName: "testbeat",
3081+
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
30833082
},
30843083
Units: []Unit{
30853084
{
@@ -3136,8 +3135,8 @@ func TestToComponents(t *testing.T) {
31363135
OutputType: "elasticsearch",
31373136
InputSpec: &InputRuntimeSpec{
31383137
InputType: "filestream",
3139-
BinaryName: "filebeat",
3140-
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
3138+
BinaryName: "testbeat",
3139+
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
31413140
},
31423141
Units: []Unit{
31433142
{
@@ -3249,8 +3248,8 @@ func TestToComponents(t *testing.T) {
32493248
OutputType: "elasticsearch",
32503249
InputSpec: &InputRuntimeSpec{
32513250
InputType: "filestream",
3252-
BinaryName: "filebeat",
3253-
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
3251+
BinaryName: "testbeat",
3252+
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
32543253
},
32553254
Units: []Unit{
32563255
{
@@ -3364,8 +3363,8 @@ func TestToComponents(t *testing.T) {
33643363
OutputType: "kafka",
33653364
InputSpec: &InputRuntimeSpec{
33663365
InputType: "filestream",
3367-
BinaryName: "filebeat",
3368-
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
3366+
BinaryName: "testbeat",
3367+
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
33693368
},
33703369
Units: []Unit{
33713370
{
@@ -3468,8 +3467,8 @@ func TestToComponents(t *testing.T) {
34683467
OutputType: "logstash",
34693468
InputSpec: &InputRuntimeSpec{
34703469
InputType: "filestream",
3471-
BinaryName: "filebeat",
3472-
BinaryPath: filepath.Join("..", "..", "specs", "filebeat"),
3470+
BinaryName: "testbeat",
3471+
BinaryPath: filepath.Join("..", "..", "specs", "testbeat"),
34733472
},
34743473
Units: []Unit{
34753474
{

pkg/component/load_test.go

+1-21
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@ func TestLoadSpec_Components(t *testing.T) {
4545
Name: "APM Server",
4646
Path: "apm-server.spec.yml",
4747
},
48-
{
49-
Name: "Auditbeat",
50-
Path: "auditbeat.spec.yml",
51-
},
5248
{
5349
Name: "Cloudbeat",
5450
Path: "cloudbeat.spec.yml",
@@ -59,28 +55,12 @@ func TestLoadSpec_Components(t *testing.T) {
5955
},
6056
{
6157
Name: "Filebeat",
62-
Path: "filebeat.spec.yml",
58+
Path: "testbeat.spec.yml",
6359
},
6460
{
6561
Name: "Fleet Server",
6662
Path: "fleet-server.spec.yml",
6763
},
68-
{
69-
Name: "Heartbeat",
70-
Path: "heartbeat.spec.yml",
71-
},
72-
{
73-
Name: "Metricbeat",
74-
Path: "metricbeat.spec.yml",
75-
},
76-
{
77-
Name: "Osquerybeat",
78-
Path: "osquerybeat.spec.yml",
79-
},
80-
{
81-
Name: "Packetbeat",
82-
Path: "packetbeat.spec.yml",
83-
},
8464
{
8565
Name: "Universal Profiling Collector",
8666
Path: "pf-elastic-collector.spec.yml",

specs/auditbeat.spec.yml

-53
This file was deleted.

specs/heartbeat.spec.yml

-53
This file was deleted.

0 commit comments

Comments
 (0)