[ckan-dev] test-core.ini changes

Adrià Mercader adria.mercader at okfn.org
Wed Apr 17 16:00:21 UTC 2013


Hi,

During #517, test-core.ini was updated to not extend development.ini
any more. I'm sure there were good reasons for that, but that means
that if you don't have exactly the same setup as expected on
test-core.ini you will find errors.

Specifically if your Solr url is different from
http://127.0.0.1:8983/solr (which is quite common, eg if you are using
tomcat or you have solr configured with multiple cores for different
ckan versions), then you need to either edit the file, which is a pain
because it is versioned and it won't let you switch branches if you
change it, or create yet another file, test-core-custom.ini, with:


[server:main]
use = egg:Paste#http
host = 0.0.0.0
port = 5000

[app:main]
use = config:test-core.ini

## Solr support
solr_url = http://127.0.0.1:8983/solr/ckan-schema-2.0


It is a bit annoying. Maybe it is not worth fixing, but at least
should be added to the docs:
http://docs.ckan.org/en/latest/test.html


Adrià

[1] https://github.com/okfn/ckan/pull/517




More information about the ckan-dev mailing list