What is the bug?
Building and running the opensearch-sdk artifact would look for the extension.yml file within the opensearch-sdk/build/distributions/opensearch-sdk-1.0.0-SNAPSHOT/src/test/resources/ directory instead of the opensearch-sdk/src/test/resources directory
How can one reproduce the bug?
Run ./gradlew build in the opensearch-sdk directory to produce the artifact. Navigate to opensearch-sdk/build/distributions/ and untar the generated artifact using tar -xvf opensearch-sdk-1.0.0-SNAPSHOT.tar. Navigate to opensearch-sdk-1.0.0-SNAPSHOT/ and run ./bin/opensearch-sdk
This will produce the following error :
Exception in thread "main" java.io.FileNotFoundException: src/test/resources/extension.yml (No such file or directory)
In order to fix this issue, we must create the directory within the package and generate the extension.yml file here so that the artifact has access.
EDIT: Following discussion, the extensions.yml file will be moved to the config directory where opensearch.yml is currently stored.
What is the bug?
Building and running the opensearch-sdk artifact would look for the
extension.ymlfile within theopensearch-sdk/build/distributions/opensearch-sdk-1.0.0-SNAPSHOT/src/test/resources/directory instead of theopensearch-sdk/src/test/resourcesdirectoryHow can one reproduce the bug?
Run
./gradlew buildin theopensearch-sdkdirectory to produce the artifact. Navigate toopensearch-sdk/build/distributions/and untar the generated artifact usingtar -xvf opensearch-sdk-1.0.0-SNAPSHOT.tar. Navigate toopensearch-sdk-1.0.0-SNAPSHOT/and run./bin/opensearch-sdkThis will produce the following error :
Exception in thread "main" java.io.FileNotFoundException: src/test/resources/extension.yml (No such file or directory)In order to fix this issue, we must create the directory within the package and generate the extension.yml file here so that the artifact has access.
EDIT: Following discussion, the extensions.yml file will be moved to the config directory where opensearch.yml is currently stored.