Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] build fails on main due to missing OpenSearchIntegTestCase#createRestClient #65

Closed
rursprung opened this issue Feb 14, 2024 · 0 comments · Fixed by #67
Closed
Labels
bug Something isn't working untriaged

Comments

@rursprung
Copy link
Contributor

What is the bug?

the build fails:

$ ./gradlew build
[..]
> Task :compileTestJava
....\src\test\java\org\opensearch\path\to\plugin\RenamePluginIT.java:35: error: cannot find symbol
        Response response = createRestClient().performRequest(new Request("GET", "/_cat/plugins"));
                            ^
  symbol:   method createRestClient()
  location: class RenamePluginIT
Note: ....\src\test\java\org\opensearch\path\to\plugin\RenamePluginIT.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error

How can one reproduce the bug?

try to build the project: ./gradlew build

What is the expected behavior?

the build works

What is your host/environment?

should be unrelated to my env., but: win 11, jdk 21

Do you have any screenshots?

n/a

Do you have any additional context?

i presume that OpenSearchIntegTestCase#createRestClient has been recently removed in OpenSearch. the problem is that the plugin (template) pulls in the snapshot of an upcoming major release, so the API is not yet stabilised and can break regularly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged
Projects
None yet
1 participant