Skip to content

Commit bf94929

Browse files
authored
Merge pull request #160 from keboola/miro-PS-3506-2
PS-3506: deps (internal-api-client): unfreeze storage client version 13
2 parents e62e491 + 50de2e4 commit bf94929

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"guzzlehttp/guzzle": "^6.3|^7.0",
3232
"keboola/kbc-manage-api-php-client": "^5.2",
3333
"keboola/object-encryptor": "^2.0",
34-
"keboola/storage-api-client": "^12.0|13.1.0",
34+
"keboola/storage-api-client": "^12.0|^13.1",
3535
"keboola/storage-api-php-client-branch-wrapper": "^2.0|^3.0",
3636
"monolog/monolog": "^2.6",
3737
"psr/log": "^1.1",

tests/JobFactory/JobRuntimeResolverTest.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function testResolveRuntimeSettingsInJob(): void
5757
$clientMock = self::createMock(Client::class);
5858
$clientMock->expects(self::once())->method('apiGet')
5959
->withConsecutive(
60-
['components/keboola.ex-db-snowflake']
60+
['branch/default/components/keboola.ex-db-snowflake']
6161
)->willReturnOnConsecutiveCalls(
6262
$componentData
6363
);
@@ -126,7 +126,7 @@ public function testResolveRuntimeSettingsInConfigData(): void
126126
$clientMock = self::createMock(Client::class);
127127
$clientMock->expects(self::once())->method('apiGet')
128128
->withConsecutive(
129-
['components/keboola.ex-db-snowflake']
129+
['branch/default/components/keboola.ex-db-snowflake']
130130
)->willReturnOnConsecutiveCalls(
131131
$componentData
132132
);
@@ -215,8 +215,8 @@ public function testResolveRuntimeSettingsInConfiguration(): void
215215
$clientMock = self::createMock(Client::class);
216216
$clientMock->expects(self::exactly(2))->method('apiGet')
217217
->withConsecutive(
218-
['components/keboola.ex-db-snowflake/configs/454124290'],
219-
['components/keboola.ex-db-snowflake']
218+
['branch/default/components/keboola.ex-db-snowflake/configs/454124290'],
219+
['branch/default/components/keboola.ex-db-snowflake']
220220
)->willReturnOnConsecutiveCalls(
221221
$configuration,
222222
$componentData
@@ -289,8 +289,8 @@ public function testResolveRuntimeSettingsInConfigurationOfTransformations(): vo
289289
$clientMock = self::createMock(Client::class);
290290
$clientMock->expects(self::exactly(2))->method('apiGet')
291291
->withConsecutive(
292-
['components/keboola.ex-db-snowflake/configs/454124290'],
293-
['components/keboola.ex-db-snowflake']
292+
['branch/default/components/keboola.ex-db-snowflake/configs/454124290'],
293+
['branch/default/components/keboola.ex-db-snowflake']
294294
)->willReturnOnConsecutiveCalls(
295295
$configuration,
296296
$componentData
@@ -374,8 +374,8 @@ public function testResolveRuntimeSettingsPriority(): void
374374
$clientMock = self::createMock(Client::class);
375375
$clientMock->expects(self::exactly(2))->method('apiGet')
376376
->withConsecutive(
377-
['components/keboola.ex-db-snowflake/configs/454124290'],
378-
['components/keboola.ex-db-snowflake'],
377+
['branch/default/components/keboola.ex-db-snowflake/configs/454124290'],
378+
['branch/default/components/keboola.ex-db-snowflake'],
379379
)->willReturnOnConsecutiveCalls(
380380
$configuration,
381381
$componentData
@@ -445,8 +445,8 @@ public function testResolveRuntimeSettingsNowhere(): void
445445
$clientMock = self::createMock(Client::class);
446446
$clientMock->expects(self::exactly(2))->method('apiGet')
447447
->withConsecutive(
448-
['components/keboola.ex-db-snowflake/configs/454124290'],
449-
['components/keboola.ex-db-snowflake']
448+
['branch/default/components/keboola.ex-db-snowflake/configs/454124290'],
449+
['branch/default/components/keboola.ex-db-snowflake']
450450
)->willReturnOnConsecutiveCalls($configuration, $component);
451451
$clientWrapperMock = self::createMock(ClientWrapper::class);
452452
$clientWrapperMock->method('getBranchClientIfAvailable')->willReturn($clientMock);
@@ -507,7 +507,7 @@ public function testResolveRuntimeSettingsConfigurationNotFound(): void
507507
$clientMock = self::createMock(Client::class);
508508
$clientMock->expects(self::once())->method('apiGet')
509509
->with(
510-
'components/keboola.ex-db-snowflake/configs/454124290',
510+
'branch/default/components/keboola.ex-db-snowflake/configs/454124290',
511511
)->willThrowException(new StorageClientException('Configuration "454124290" not found', 404));
512512
$clientWrapperMock = self::createMock(ClientWrapper::class);
513513
$clientWrapperMock->method('getBranchClientIfAvailable')->willReturn($clientMock);
@@ -539,7 +539,7 @@ public function testResolveNoConfiguration(): void
539539

540540
$clientMock = self::createMock(Client::class);
541541
$clientMock->expects(self::once())->method('apiGet')
542-
->with('components/keboola.ex-db-snowflake')->willReturn($component);
542+
->with('branch/default/components/keboola.ex-db-snowflake')->willReturn($component);
543543
$clientWrapperMock = self::createMock(ClientWrapper::class);
544544
$clientWrapperMock->method('getBranchClientIfAvailable')->willReturn($clientMock);
545545
$storageClientFactoryMock = self::createMock(StorageClientPlainFactory::class);
@@ -588,7 +588,7 @@ public function testResolveEmptyConfiguration(): void
588588

589589
$clientMock = self::createMock(Client::class);
590590
$clientMock->expects(self::once())->method('apiGet')
591-
->with('components/keboola.ex-db-snowflake')->willReturn($component);
591+
->with('branch/default/components/keboola.ex-db-snowflake')->willReturn($component);
592592
$clientWrapperMock = self::createMock(ClientWrapper::class);
593593
$clientWrapperMock->method('getBranchClientIfAvailable')->willReturn($clientMock);
594594
$storageClientFactoryMock = self::createMock(StorageClientPlainFactory::class);
@@ -675,7 +675,7 @@ public function testResolveInvalidComponent(): void
675675

676676
$clientMock = self::createMock(Client::class);
677677
$clientMock->expects(self::once())->method('apiGet')
678-
->with('components/keboola.ex-db-snowflake')->willReturn($component);
678+
->with('branch/default/components/keboola.ex-db-snowflake')->willReturn($component);
679679
$clientWrapperMock = self::createMock(ClientWrapper::class);
680680
$clientWrapperMock->method('getBranchClientIfAvailable')->willReturn($clientMock);
681681
$storageClientFactoryMock = self::createMock(StorageClientPlainFactory::class);
@@ -790,7 +790,7 @@ public function testConfigurationDisabledException(): void
790790

791791
$clientMock = self::createMock(Client::class);
792792
$clientMock->expects(self::once())->method('apiGet')
793-
->with('components/keboola.ex-db-snowflake/configs/454124290')->willReturn($configuration);
793+
->with('branch/default/components/keboola.ex-db-snowflake/configs/454124290')->willReturn($configuration);
794794
$clientWrapperMock = self::createMock(ClientWrapper::class);
795795
$clientWrapperMock->method('getBranchClientIfAvailable')->willReturn($clientMock);
796796
$storageClientFactoryMock = self::createMock(StorageClientPlainFactory::class);
@@ -842,7 +842,7 @@ public function testResolveBackend(
842842
$clientMock = self::createMock(Client::class);
843843
$clientMock->expects(self::exactly($expectedApiCallCount))->method('apiGet')
844844
->withConsecutive(
845-
['components/keboola.ex-db-snowflake']
845+
['branch/default/components/keboola.ex-db-snowflake']
846846
)->willReturnOnConsecutiveCalls(
847847
$componentData
848848
);

0 commit comments

Comments
 (0)