org.elasticsearch.repositories.cos.RepositoryCosClientYamlTestSuiteIT > initializationError FAILED
java.lang.NullPointerException
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.loadSuites(ESClientYamlSuiteTestCase.java:235)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.createParameters(ESClientYamlSuiteTestCase.java:188)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.createParameters(ESClientYamlSuiteTestCase.java:180)
at org.elasticsearch.repositories.cos.RepositoryCosClientYamlTestSuiteIT.parameters(RepositoryCosClientYamlTestSuiteIT.java:16)
Suite: Test class org.elasticsearch.repositories.cos.RepositoryCosClientYamlTestSuiteIT
2> java.lang.NullPointerException
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.loadSuites(ESClientYamlSuiteTestCase.java:235)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.createParameters(ESClientYamlSuiteTestCase.java:188)
at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.createParameters(ESClientYamlSuiteTestCase.java:180)
at org.elasticsearch.repositories.cos.RepositoryCosClientYamlTestSuiteIT.parameters(RepositoryCosClientYamlTestSuiteIT.java:16)
1 test completed, 1 failed
I wrote my own YamlTestSuitIT class and could not runing in my own plugin project. As it's showed in the error msg, I guess the reason is that the ES test files rest-api-spec was not including in the jar package.
Is there any good ideas for running YamlTestSuiteIT out side the ES project?
please use something on the command line like tree to show this, as I now still don't know how the directory structure looks like, just like intellij is showing it
I'm especially interested where your .yml files are placed exactly.
this is what is done in the s3 repository plugin tests as well. Can you also share the error, maybe someone with more plugin expertise than me will take a look.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.