add id getter for processors

This commit is contained in:
Joel Wetzell
2026-08-28 14:55:19 -05:00
parent f9287cc87e
commit 54ada59f6e
96 changed files with 456 additions and 33 deletions
@@ -16,6 +16,7 @@ func TestHTTPRequestCreateFromRegistry(t *testing.T) {
}
processorInstance, err := registration.New(config.ProcessorConfig{
Id: "test-id",
Type: "http.request.do",
Params: map[string]any{
"method": "GET",
@@ -27,6 +28,10 @@ func TestHTTPRequestCreateFromRegistry(t *testing.T) {
t.Fatalf("failed to create http.request.do processor: %s", err)
}
if processorInstance.Id() != "test-id" {
t.Fatalf("http.request.do processor has wrong id: %s", processorInstance.Id())
}
if processorInstance.Type() != "http.request.do" {
t.Fatalf("http.request.do processor has wrong type: %s", processorInstance.Type())
}