https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31897
--- Comment #11 from Stefan Berndtsson <[email protected]> --- (In reply to Marcel de Rooy from comment #8) > $VAR1 = { > 'cxn_pool' => 'Static', > 'index_name' => 'koha_myclone', > 'nodes' => [ > 'localhost:9200' > ] > }; > > Result of Koha::SearchEngine::Elasticsearch->get_elasticsearch_params; > You test that to determine if Elastic exists. > Wrong test. > > Later you crash: > Exception 'Koha::Exceptions::Elasticsearch::BadResponse' thrown 'Bad > response received when submitting request to Elasticsearch' with details => > No nodes are available: [http://localhost:9200], type => NoNodes I'm really not sure what I'm supposed to do here. This is based on what the test t/db_dependent/Koha/SearchEngine/Elasticsearch/Indexer.t does, with the Plugin parts added to it. That test does the same result-check of get_elasticsearch_params, and if there is no elasticsearch running (localhost:9200 or equivalent) it also fails with the NoNodes error. I can't see how I can come up with a solution to a test depending on a running Elasticsearch without having a running Elasticsearch. The current test does not like it when there is an Elastic running but Zebra is set as the engine, so it'll have to be tweaked (the existing Indexer.t works here). I did some more copy&paste from that one so I can make this test work as well regardless of that syspref, but not without actually having Elastic running. Suggestions are welcome. :) -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
