diff --git a/README.md b/README.md index 39d9a1f57..60d10c593 100644 --- a/README.md +++ b/README.md @@ -375,7 +375,7 @@ pipeline: filter: rules: - type: remove_entry_if_exists - removeEntryIfExists: + removeEntry: input: SrcPort ``` diff --git a/pkg/config/pipeline_builder_test.go b/pkg/config/pipeline_builder_test.go index dae534fd9..6dc06df81 100644 --- a/pkg/config/pipeline_builder_test.go +++ b/pkg/config/pipeline_builder_test.go @@ -90,7 +90,7 @@ func TestGRPCPipeline(t *testing.T) { b, err = json.Marshal(params[1]) require.NoError(t, err) - require.JSONEq(t, `{"name":"filter","transform":{"type":"filter","filter":{"rules":[{"removeEntryIfDoesntExist":{"input":"doesnt_exist"},"type":"remove_entry_if_doesnt_exist"}]}}}`, string(b)) + require.JSONEq(t, `{"name":"filter","transform":{"type":"filter","filter":{"rules":[{"removeEntry":{"input":"doesnt_exist"},"type":"remove_entry_if_doesnt_exist"}]}}}`, string(b)) b, err = json.Marshal(params[2]) require.NoError(t, err) @@ -158,7 +158,7 @@ func TestKafkaPromPipeline(t *testing.T) { b, err = json.Marshal(params[1]) require.NoError(t, err) - require.JSONEq(t, `{"name":"filter","transform":{"type":"filter","filter":{"rules":[{"removeEntryIfDoesntExist":{"input":"doesnt_exist"},"type":"remove_entry_if_doesnt_exist"}]}}}`, string(b)) + require.JSONEq(t, `{"name":"filter","transform":{"type":"filter","filter":{"rules":[{"removeEntry":{"input":"doesnt_exist"},"type":"remove_entry_if_doesnt_exist"}]}}}`, string(b)) b, err = json.Marshal(params[2]) require.NoError(t, err)