-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Run some REST tests against a cluster running in docker containers #39515
Conversation
Pinging @elastic/es-core-infra |
@atorok looks like there's still some work going on here. Should this be marked WIP? |
@mark-vieira there are a few tests blacklisted for failures that we still need to look at, so there's still work left, but the PR could go in, we would still get significantly more testing and can sort out those last failures lather. |
#39569 should fix some of the failures muted here, but I don't think it will do so with all of them. |
buildSrc/src/main/java/org/elasticsearch/gradle/testfixtures/TestFixturesPlugin.java
Outdated
Show resolved
Hide resolved
distribution/docker/build.gradle
Outdated
restSpec "org.elasticsearch:rest-api-spec:${version}" | ||
} | ||
|
||
task copyRestTests(type: Sync) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than define a new task here, we should just configure the existing processTestResources
task to do this. Its job is already to copy stuff into the resources output directory and can be configured like any other CopySpec
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I specifically wanted to have a Sync
task to make sure that there are no tests accidentally left in the resources directory when switching branches etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ProcessResources
task already does this.
test/framework/src/main/java/org/elasticsearch/test/rest/ESRestTestCase.java
Show resolved
Hide resolved
thanks for the review @mark-vieira ! Ready for another round. |
@rjernst ready for another review |
Extend the test fixtures based setup to match our testing requirement, copy and execute the rest tests against it.
Note to self: this will require a change in CI to run the oss distro tests.
Closes to #38053