@@ -37,6 +37,7 @@ public function testValidJobMaximal(): void
3737 'type ' => 'standard ' ,
3838 'branchType ' => BranchType::DEFAULT ->value ,
3939 'orchestrationTaskId ' => '123 ' ,
40+ 'orchestrationPhaseId ' => '951 ' ,
4041 'onlyOrchestrationTaskIds ' => ['45 ' , 67 ],
4142 'previousJobId ' => '789 ' ,
4243 ];
@@ -97,6 +98,7 @@ public function testValidJobFull(): void
9798 'runnerId ' => $ runnerId ,
9899 'branchType ' => 'dev ' ,
99100 'orchestrationTaskId ' => null ,
101+ 'orchestrationPhaseId ' => null ,
100102 'onlyOrchestrationTaskIds ' => null ,
101103 'previousJobId ' => null ,
102104 ];
@@ -198,6 +200,34 @@ public function invalidJobProvider(): array
198200 ],
199201 '#The child (node|config) "id" (at path|under) "job" must be configured.# ' ,
200202 ],
203+ 'Invalid deduplicationId - empty value ' => [
204+ [
205+ '#tokenString ' => getenv ('TEST_STORAGE_API_TOKEN ' ),
206+ 'tokenId ' => '1234 ' ,
207+ 'projectId ' => '123 ' ,
208+ 'id ' => '12345 ' ,
209+ 'deduplicationId ' => '' ,
210+ 'status ' => 'created ' ,
211+ 'configId ' => '123 ' ,
212+ 'componentId ' => 'keboola.test ' ,
213+ 'mode ' => 'run ' ,
214+ ],
215+ '/Invalid configuration for path "job.deduplicationId": value cannot be empty string/ ' ,
216+ ],
217+ 'Invalid deduplicationId - non-string value ' => [
218+ [
219+ '#tokenString ' => getenv ('TEST_STORAGE_API_TOKEN ' ),
220+ 'tokenId ' => '1234 ' ,
221+ 'projectId ' => '123 ' ,
222+ 'id ' => '12345 ' ,
223+ 'deduplicationId ' => 7 ,
224+ 'status ' => 'created ' ,
225+ 'configId ' => '123 ' ,
226+ 'componentId ' => 'keboola.test ' ,
227+ 'mode ' => 'run ' ,
228+ ],
229+ '/Invalid configuration for path "job.deduplicationId": value must be a string/ ' ,
230+ ],
201231 'Missing status ' => [
202232 [
203233 '#tokenString ' => getenv ('TEST_STORAGE_API_TOKEN ' ),
@@ -442,6 +472,38 @@ public function invalidJobProvider(): array
442472 ],
443473 '/Invalid configuration for path "job.orchestrationTaskId": value cannot be empty string/ ' ,
444474 ],
475+ 'orchestrationPhaseId not string ' => [
476+ [
477+ '#tokenString ' => getenv ('TEST_STORAGE_API_TOKEN ' ),
478+ 'id ' => '12345 ' ,
479+ 'runId ' => '12345 ' ,
480+ 'tokenId ' => '1234 ' ,
481+ 'projectId ' => '123 ' ,
482+ 'status ' => 'created ' ,
483+ 'desiredStatus ' => 'processing ' ,
484+ 'configId ' => '123 ' ,
485+ 'componentId ' => 'keboola.test ' ,
486+ 'mode ' => 'run ' ,
487+ 'orchestrationPhaseId ' => 134 ,
488+ ],
489+ '/Invalid configuration for path "job.orchestrationPhaseId": value must be a string/ ' ,
490+ ],
491+ 'orchestrationPhaseId empty string ' => [
492+ [
493+ '#tokenString ' => getenv ('TEST_STORAGE_API_TOKEN ' ),
494+ 'id ' => '12345 ' ,
495+ 'runId ' => '12345 ' ,
496+ 'tokenId ' => '1234 ' ,
497+ 'projectId ' => '123 ' ,
498+ 'status ' => 'created ' ,
499+ 'desiredStatus ' => 'processing ' ,
500+ 'configId ' => '123 ' ,
501+ 'componentId ' => 'keboola.test ' ,
502+ 'mode ' => 'run ' ,
503+ 'orchestrationPhaseId ' => '' ,
504+ ],
505+ '/Invalid configuration for path "job.orchestrationPhaseId": value cannot be empty string/ ' ,
506+ ],
445507 'onlyOrchestrationTaskIds not list ' => [
446508 [
447509 '#tokenString ' => getenv ('TEST_STORAGE_API_TOKEN ' ),
0 commit comments