Skip to content

Commit

Permalink
fix: add skipRegionValidation to test expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrajodas committed Feb 2, 2025
1 parent d5a5255 commit 9b8a8fb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/Config/ConfigDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ protected function getParametersDefinition(): ArrayNodeDefinition
->scalarNode('#secret_access_key')->end()
->scalarNode('#bucket')->end()
->scalarNode('#jsonKey')->end()
->scalarNode('region')->end()
->end()
;
// @formatter:on
Expand Down
8 changes: 7 additions & 1 deletion tests/phpunit/ConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ public function validConfigDataProvider(): Generator
],
[
'storageBackendType' => Config::STORAGE_BACKEND_S3,
'skipRegionValidation' => false,
],
'.',
false,
Expand All @@ -133,6 +134,7 @@ public function validConfigDataProvider(): Generator
'#secret_access_key' => 'testAccessKey',
'region' => 'testRegion',
'#bucket' => 'testBucket',
'skipRegionValidation' => false,
],
'.',
false,
Expand All @@ -157,6 +159,7 @@ public function validConfigDataProvider(): Generator
'accountName' => 'testAccountName',
'#accountKey' => 'testAccountKey',
'region' => 'testRegion',
'skipRegionValidation' => false,
],
'',
false,
Expand Down Expand Up @@ -186,6 +189,7 @@ public function validConfigDataProvider(): Generator
'#secret_access_key' => 'testAccessKey',
'region' => 'testRegion',
'#bucket' => 'testBucket',
'skipRegionValidation' => false,
],
'.',
true,
Expand Down Expand Up @@ -216,6 +220,7 @@ public function validConfigDataProvider(): Generator
'accountName' => 'testAccountName',
'#accountKey' => 'testAccountKey',
'region' => 'testRegion',
'skipRegionValidation' => false,
],
'testPath',
true,
Expand Down Expand Up @@ -247,7 +252,7 @@ public function validConfigDataProvider(): Generator
'region' => 'testRegion',
'#bucket' => 'testBucket',
'backupPath' => 'testPath',

'skipRegionValidation' => false,
],
'testPath/',
true,
Expand Down Expand Up @@ -275,6 +280,7 @@ public function validConfigDataProvider(): Generator
'storageBackendType' => Config::STORAGE_BACKEND_ABS,
'accountName' => 'testAccountName',
'#accountKey' => 'testAccountKey',
'skipRegionValidation' => false,
],
'testPath',
true,
Expand Down

0 comments on commit 9b8a8fb

Please sign in to comment.