Ah I see now. I tried running functional_tests.js and this is my output
node ./scripts/functional_tests.js
info Installing from snapshot
│ info version: 6.3.2
│ info install path: /home/sreynolds/kibana/kibana/.es/test-rwu9yk212d
│ info license: oss
│ info downloading from https://snapshots.elastic.co/downloads/elasticsearch/elasticsearch-oss-6.3.2-SNAPSHOT.tar.gz
Error: Not Found
Running functional_tests_server.js produces the same result. Is there somewhere I can change the URL to a valid URL?
Okay, what I'm trying to do is write some tests for a plugin developed in kibana-6.3.2 and the documentation says to use functional_test_runner. Is there another way to write tests for this plugin without having to change kibana version?
Alright that got me passed the URL error. Is there a way to use an already running elasticsearch server instead of starting a new one or am I misunderstanding what it's actually doing with elasticsearch?
Is the functional tests script not starting a new elasticsearch server to use during the tests?
I tried adding --esFrom=source to the command and it was looking for elasticsearch in the directory below kibana. I cloned elasticsearch in the directory it was expecting to find it in and It failed to build due to some java error. https://pastebin.com/ebzmg1uF
According to https://www.elastic.co/guide/en/kibana/current/development-functional-tests.html the 3rd option looks like I can use a remote instance of elasticsearch for testing. This would be a better option than building elasticsearch locally, but I am a little reluctant using an elasticsearch that contains data that I don't want to lose. Do the Kibana tests have any affect on the elasticsearch data? I cant imagine it would but I figured I'd ask.
You can run a clean ES instance. This will be the safest option. I think even the latest 6.3 release should work with your branch. Just use the environment variables TEST_ES... to set the address for your ES.
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.