@@ -127,6 +127,14 @@ public function validDataProvider(): Generator
127127 'features ' => [
128128 'some-feature ' ,
129129 ],
130+ 'dataTypesConfiguration ' => [
131+ 'dataTypesSupport ' => 'hints ' ,
132+ 'somethingElse ' => 'should be ignored ' ,
133+ ],
134+ 'processorConfiguration ' => [
135+ 'allowedProcessorPosition ' => 'after ' ,
136+ 'somethingElse ' => 'should be ignored ' ,
137+ ],
130138 ],
131139 'expected ' => [
132140 'id ' => 'test ' ,
@@ -178,6 +186,12 @@ public function validDataProvider(): Generator
178186 'features ' => [
179187 'some-feature ' ,
180188 ],
189+ 'dataTypesConfiguration ' => [
190+ 'dataTypesSupport ' => 'hints ' ,
191+ ],
192+ 'processorConfiguration ' => [
193+ 'allowedProcessorPosition ' => 'after ' ,
194+ ],
181195 ],
182196 ];
183197 yield 'other options ' => [
@@ -412,5 +426,37 @@ public function invalidDataProvider(): Generator
412426 'expected ' => 'The value -1 is too small for path "component.data.process_timeout". ' .
413427 'Should be greater than or equal to 0 ' ,
414428 ];
429+ yield 'invalid dataTypeSupport ' => [
430+ 'data ' => [
431+ 'id ' => 'test ' ,
432+ 'data ' => [
433+ 'definition ' => [
434+ 'type ' => 'aws-ecr ' ,
435+ 'uri ' => 'some-uri ' ,
436+ ],
437+ ],
438+ 'dataTypesConfiguration ' => [
439+ 'dataTypesSupport ' => 'invalid ' ,
440+ ],
441+ ],
442+ 'expected ' => 'The value "invalid" is not allowed for path ' .
443+ '"component.dataTypesConfiguration.dataTypesSupport" ' ,
444+ ];
445+ yield 'invalid allowedProcessorPosition ' => [
446+ 'data ' => [
447+ 'id ' => 'test ' ,
448+ 'data ' => [
449+ 'definition ' => [
450+ 'type ' => 'aws-ecr ' ,
451+ 'uri ' => 'some-uri ' ,
452+ ],
453+ ],
454+ 'processorConfiguration ' => [
455+ 'allowedProcessorPosition ' => 'invalid ' ,
456+ ],
457+ ],
458+ 'expected ' => 'The value "invalid" is not allowed for path ' .
459+ '"component.processorConfiguration.allowedProcessorPosition" ' ,
460+ ];
415461 }
416462}
0 commit comments