Difference between revisions of "SATU Data: CKAN test"

From OnnoWiki
Jump to navigation Jump to search
Line 17: Line 17:
  
  
 +
==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
  
 
==Referensi==
 
==Referensi==

Revision as of 09:12, 27 July 2019


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

Referensi

Pranala Menarik