Hi,
I can't make the DebugSqlSpec
test class work.
When I run an Elasticsearch local server (./gradlew run --debug-jvm -Drun.license_type=trial -Dxpack.security.enabled=false
) and then run an empty implementation of the DebugSqlSpec
test class against this local instance, I got the error below:
java.security.AccessControlException: access denied ("java.lang.reflect.ReflectPermission" "suppressAccessChecks")
at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
at java.base/java.security.AccessController.checkPermission(AccessController.java:895)
at java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:322)
at java.base/java.lang.reflect.AccessibleObject.checkPermission(AccessibleObject.java:83)
at java.base/java.lang.reflect.Field.setAccessible(Field.java:169)
at com.intellij.junit4.JUnit4IdeaTestRunner.getSuiteMethodDescription(JUnit4IdeaTestRunner.java:139)
at com.intellij.junit4.JUnit4IdeaTestRunner.getDescription(JUnit4IdeaTestRunner.java:84)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:50)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
I tried the idea.no.launcher=true
trick, but no luck.
Integration tests with only no-arg constructors seem to work fine, but the DebugSqlSpec
has a constructor with arguments because it's a parametrized test.
Could an Elastic insider explain the typical SQL support development workflow (reproduce / debug / fix / test) please?
Thanks a lot,
Chris