@@ -1162,8 +1162,10 @@ public function testResolveBackend(
11621162 ?string $ expectedContainerType ,
11631163 ?string $ expectedContext ,
11641164 array $ tokenFeatures ,
1165+ string $ componentId = 'keboola.ex-db-snowflake ' ,
11651166 ): void {
11661167 $ jobData = $ this ::JOB_DATA ;
1168+ $ jobData ['componentId ' ] = $ componentId ;
11671169 $ jobData ['configId ' ] = null ;
11681170 $ jobData ['tag ' ] = '1.2.3 ' ;
11691171 $ jobData ['variableValuesData ' ] = [
@@ -1182,7 +1184,7 @@ public function testResolveBackend(
11821184
11831185 $ storageClient = self ::createMock (BranchAwareClient::class);
11841186 $ storageClient ->expects (self ::exactly ($ expectedApiCallCount ))->method ('apiGet ' )
1185- ->with ('components/keboola.ex-db-snowflake ' )
1187+ ->with (sprintf ( 'components/%s ' , $ componentId ) )
11861188 ->willReturn (
11871189 $ this ->getTestComponentData ($ stagingInput ),
11881190 );
@@ -1196,7 +1198,7 @@ public function testResolveBackend(
11961198 'id ' => '123456456 ' ,
11971199 'runId ' => '123456456 ' ,
11981200 'configId ' => null ,
1199- 'componentId ' => ' keboola.ex-db-snowflake ' ,
1201+ 'componentId ' => $ componentId ,
12001202 'mode ' => 'run ' ,
12011203 'status ' => 'created ' ,
12021204 'desiredStatus ' => 'processing ' ,
@@ -1400,6 +1402,28 @@ public function backendProvider(): Generator
14001402 null ,
14011403 [],
14021404 ];
1405+ yield 'legacy transformation - large ' => [
1406+ 'large ' ,
1407+ null ,
1408+ 'none ' ,
1409+ 1 ,
1410+ 'large ' ,
1411+ null ,
1412+ null ,
1413+ [],
1414+ 'keboola.legacy-transformation ' ,
1415+ ];
1416+ yield 'legacy transformation - default ' => [
1417+ null ,
1418+ null ,
1419+ 'none ' ,
1420+ 1 ,
1421+ null ,
1422+ null ,
1423+ null ,
1424+ [],
1425+ 'keboola.legacy-transformation ' ,
1426+ ];
14031427 }
14041428
14051429 private function getTestComponentData (?string $ stagingInput = 'local ' ): array
0 commit comments