SATU Data: CKAN test
Jump to navigation
Jump to search
Tambahan apps yang dibutuhkan
cd /usr/lib/ckan/default/src/ckan . /usr/lib/ckan/default/bin/activate pip install -r /usr/lib/ckan/default/src/ckan/dev-requirements.txt
Database
Create account & password
sudo -u postgres createdb -O ckan_default ckan_test -E utf-8 sudo -u postgres createdb -O ckan_default datastore_test -E utf-8
paster datastore set-permissions -c test-core.ini | sudo -u postgres psql
Active Multicore Solr
curl -s 'http://127.0.0.1:8983/solr/admin/cores?action=STATUS' |python -c 'import sys;import xml.dom.minidom;s=sys.stdin.read();print xml.dom.minidom.parseString(s).toprettyxml()'
Test
grep solr_url /etc/ckan/default/production.ini
nosetests --ckan --with-pylons=test-core.ini ckan ckanext
nosetests --ckan --reset-db --with-pylons=test-core.ini ckan