Skip to content

Commit

Permalink
Rename filebeat to testbeat.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmacknz committed Jun 19, 2024
1 parent c0ddd32 commit b465b9a
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 46 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
2 changes: 1 addition & 1 deletion pkg/component/load_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func TestLoadSpec_Components(t *testing.T) {
},
{
Name: "Filebeat",
Path: "filebeat.spec.yml",
Path: "testbeat.spec.yml",
},
{
Name: "Fleet Server",
Expand Down
1 change: 1 addition & 0 deletions specs/filebeat.spec.yml → specs/testbeat.spec.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Test Beat spec file based on the contents of the Filebeat 8.12.0 spec file when agentbeat was introduced.
version: 2
inputs:
- name: aws-cloudwatch
Expand Down

0 comments on commit b465b9a

Please sign in to comment.