@@ -46,7 +46,7 @@ func TestFactory_CreateDefaultConfig(t *testing.T) {
4646func TestFactoryCreateTracesProcessor_EmptyActions (t * testing.T ) {
4747 factory := NewFactory ()
4848 cfg := factory .CreateDefaultConfig ()
49- ap , err := factory .CreateTracesProcessor (context .Background (), component.ProcessorCreateParams {}, cfg , consumertest .NewNop ())
49+ ap , err := factory .CreateTracesProcessor (context .Background (), component.ComponentSettings {}, cfg , consumertest .NewNop ())
5050 assert .Error (t , err )
5151 assert .Nil (t , ap )
5252}
@@ -59,7 +59,7 @@ func TestFactoryCreateTracesProcessor_InvalidActions(t *testing.T) {
5959 oCfg .Actions = []processorhelper.ActionKeyValue {
6060 {Key : "" , Value : 123 , Action : processorhelper .UPSERT },
6161 }
62- ap , err := factory .CreateTracesProcessor (context .Background (), component.ProcessorCreateParams {}, cfg , consumertest .NewNop ())
62+ ap , err := factory .CreateTracesProcessor (context .Background (), component.ComponentSettings {}, cfg , consumertest .NewNop ())
6363 assert .Error (t , err )
6464 assert .Nil (t , ap )
6565}
@@ -72,18 +72,18 @@ func TestFactoryCreateTracesProcessor(t *testing.T) {
7272 {Key : "a key" , Action : processorhelper .DELETE },
7373 }
7474
75- tp , err := factory .CreateTracesProcessor (context .Background (), component.ProcessorCreateParams {}, cfg , consumertest .NewNop ())
75+ tp , err := factory .CreateTracesProcessor (context .Background (), component.ComponentSettings {}, cfg , consumertest .NewNop ())
7676 assert .NotNil (t , tp )
7777 assert .NoError (t , err )
7878
79- tp , err = factory .CreateTracesProcessor (context .Background (), component.ProcessorCreateParams {}, cfg , nil )
79+ tp , err = factory .CreateTracesProcessor (context .Background (), component.ComponentSettings {}, cfg , nil )
8080 assert .Nil (t , tp )
8181 assert .Error (t , err )
8282
8383 oCfg .Actions = []processorhelper.ActionKeyValue {
8484 {Action : processorhelper .DELETE },
8585 }
86- tp , err = factory .CreateTracesProcessor (context .Background (), component.ProcessorCreateParams {}, cfg , consumertest .NewNop ())
86+ tp , err = factory .CreateTracesProcessor (context .Background (), component.ComponentSettings {}, cfg , consumertest .NewNop ())
8787 assert .Nil (t , tp )
8888 assert .Error (t , err )
8989}
@@ -92,15 +92,15 @@ func TestFactory_CreateMetricsProcessor(t *testing.T) {
9292 factory := NewFactory ()
9393 cfg := factory .CreateDefaultConfig ()
9494
95- mp , err := factory .CreateMetricsProcessor (context .Background (), component.ProcessorCreateParams {}, cfg , nil )
95+ mp , err := factory .CreateMetricsProcessor (context .Background (), component.ComponentSettings {}, cfg , nil )
9696 require .Nil (t , mp )
9797 assert .Equal (t , err , componenterror .ErrDataTypeIsNotSupported )
9898}
9999
100100func TestFactoryCreateLogsProcessor_EmptyActions (t * testing.T ) {
101101 factory := NewFactory ()
102102 cfg := factory .CreateDefaultConfig ()
103- ap , err := factory .CreateLogsProcessor (context .Background (), component.ProcessorCreateParams {}, cfg , consumertest .NewNop ())
103+ ap , err := factory .CreateLogsProcessor (context .Background (), component.ComponentSettings {}, cfg , consumertest .NewNop ())
104104 assert .Error (t , err )
105105 assert .Nil (t , ap )
106106}
@@ -113,7 +113,7 @@ func TestFactoryCreateLogsProcessor_InvalidActions(t *testing.T) {
113113 oCfg .Actions = []processorhelper.ActionKeyValue {
114114 {Key : "" , Value : 123 , Action : processorhelper .UPSERT },
115115 }
116- ap , err := factory .CreateLogsProcessor (context .Background (), component.ProcessorCreateParams {}, cfg , consumertest .NewNop ())
116+ ap , err := factory .CreateLogsProcessor (context .Background (), component.ComponentSettings {}, cfg , consumertest .NewNop ())
117117 assert .Error (t , err )
118118 assert .Nil (t , ap )
119119}
@@ -127,20 +127,20 @@ func TestFactoryCreateLogsProcessor(t *testing.T) {
127127 }
128128
129129 tp , err := factory .CreateLogsProcessor (
130- context .Background (), component.ProcessorCreateParams {}, cfg , consumertest .NewNop ())
130+ context .Background (), component.ComponentSettings {}, cfg , consumertest .NewNop ())
131131 assert .NotNil (t , tp )
132132 assert .NoError (t , err )
133133
134134 tp , err = factory .CreateLogsProcessor (
135- context .Background (), component.ProcessorCreateParams {}, cfg , nil )
135+ context .Background (), component.ComponentSettings {}, cfg , nil )
136136 assert .Nil (t , tp )
137137 assert .Error (t , err )
138138
139139 oCfg .Actions = []processorhelper.ActionKeyValue {
140140 {Action : processorhelper .DELETE },
141141 }
142142 tp , err = factory .CreateLogsProcessor (
143- context .Background (), component.ProcessorCreateParams {}, cfg , consumertest .NewNop ())
143+ context .Background (), component.ComponentSettings {}, cfg , consumertest .NewNop ())
144144 assert .Nil (t , tp )
145145 assert .Error (t , err )
146146}
0 commit comments