You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current way that the configuration is implemented is quite confusing and error-prone to work with. We need to clarify how we'd like this to work, gather the requirements and refactor this.
If there is an amazon.properties on the classpath, this will be used to load the properties. The configuration is loaded using org.carlspring.cloud.storage.s3fs.S3FileSystemProvider.
If not, the generic way can be used.
Tests
If there is an amazon-test.properties on the classpath, this will be used to load the properties. The configuration is loaded using org.carlspring.cloud.storage.s3fs.util.EnvironmentBuilder.
If not, the generic way can be used.
Current Problems
Production and testing should use the same code for loading properties and setting up the configuration.
It is not possible to use multiple buckets, region, or credential settings.
Tasks
The following tasks will need to be carried out:
Define our use cases.
Collect a list of problems with the current implementation.
Collect a list of requirements.
It must be possible to override the default settings using properties.
It must be easy to override the configuration during testing, especially, if we have parallel tests.
Please, feel free to join in and share your thoughts on this topic! :)
@elerch, @markjschreiber: I know you had some first hand experience in this regard, as well as a passionate disliking of how it currently works, which would be quite helpful in defining how to re-implement and do it better.
Task Description
The current way that the configuration is implemented is quite confusing and error-prone to work with. We need to clarify how we'd like this to work, gather the requirements and refactor this.
Current Way It Works
Generic Way
Production
If there is an
amazon.properties
on the classpath, this will be used to load the properties. The configuration is loaded usingorg.carlspring.cloud.storage.s3fs.S3FileSystemProvider
.If not, the generic way can be used.
Tests
If there is an
amazon-test.properties
on the classpath, this will be used to load the properties. The configuration is loaded usingorg.carlspring.cloud.storage.s3fs.util.EnvironmentBuilder
.If not, the generic way can be used.
Current Problems
Tasks
The following tasks will need to be carried out:
Task Relationships
This task:
Help
The text was updated successfully, but these errors were encountered: