SATU Data: CKAN test: Difference between revisions
From OnnoCenterWiki
Jump to navigationJump to search
Onnowpurbo (talk | contribs) Created page with " ==Referensi== * https://docs.ckan.org/en/2.8/contributing/test.html ==Pranala Menarik==" |
Onnowpurbo (talk | contribs) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
==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== | ==Referensi== | ||
| Line 8: | Line 34: | ||
==Pranala Menarik== | ==Pranala Menarik== | ||
* [[SATU Data]] | |||
* [[SATU Data: Instalasi CKAN di Ubuntu 18.04]] | |||
* [[SATU Data: Instalasi CKAN di Ubuntu 16.04]] - '''Recommended''' | |||
* [[SATU Data: API key]] | |||
* [[SATU Data: Setup Filestore]] | |||
* [[SATU Data: Setup datastore]] | |||
* [[SATU Data: Setup Datapusher]] | |||
* [[SATU Data: CKAN test]] | |||
Latest revision as of 02:18, 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