-
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
SQL: Use new testing framework #101774
SQL: Use new testing framework #101774
Conversation
Do not obtain node addresses directly from global property - use getTestRestCluster instead. This is non-static, which requires refactoring.
* dependencies but we don't really want them because they cause | ||
* all kinds of trouble with the jar hell checks. So we suppress | ||
* them explicitly for non-es projects. */ | ||
javaRestTestImplementation(project(':x-pack:plugin:sql:qa:server')) { |
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.
Nothing below this line is new - only fixed indentation (was tripping me up, haha).
Pinging @elastic/es-ql (Team:QL) |
@elasticsearchmachine run Check labels |
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.
For my understanding it looks good, thanks Alex!
I just added a very minor comment
...rver/security/src/test/java/org/elasticsearch/xpack/sql/qa/security/SqlSecurityTestCase.java
Outdated
Show resolved
Hide resolved
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.
lgtm.
FYI: I've updated the whitelist we keep in our build and removed those projects that have been converted here too #102297
Port the following test suites from
legacy-java-rest-test
tointernal-java-rest-test
:x-pack/plugin/sql/qa/server/
:single-node
multi-node
multi-cluster-with-security
Main changes:
build.gradle
files.TestRule
s), one each forsingle-node
,multi-node
andmulti-cluster-with-security
.A large part of the changes are mechanical.