datopian / ckanext-opendatani

GNU Affero General Public License v3.0
4 stars 5 forks source link

Fix tests #6

Open zelima opened 5 years ago

zelima commented 5 years ago

I've enabled Travis for this project and all tests are failing. The main reason is solr complaining when trying to created datasets or organizations with factories

SearchError: SOLR returned an error running query: {'sort': 'score desc, metadata_modified desc', 'fq': [u'owner_org:"34af4712-a400-4141-b626-36aa4afc7b0d" +site_id:"test.ckan.net" +state:active'], 'facet.mincount': 1, 'rows': 0, 'facet': u'false', 'facet.limit': '50', 'wt': 'json', 'q': '*:*', 'fl': 'id validated_data_dict'} Error: SolrError(u'Solr responded with an error (HTTP 404): [Reason: None]\n<html><head><meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type" /><title>Error 404 NOT_FOUND</title></head><body><h2>HTTP ERROR 404</h2><p>Problem accessing /solr/ckan/select/. Reason:<pre>    NOT_FOUND</pre></p><hr /><i><small>Powered by Jetty://</small></i>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                </body></html>',)