Skip to content

[BUG] Package extension.yml file #86

@joshpalis

Description

@joshpalis

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions