Skip to content

Commit

Permalink
Allow testing any locally loaded extension
Browse files Browse the repository at this point in the history
  • Loading branch information
avdata99 committed Dec 15, 2024
1 parent 05f7571 commit d39befa
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions docker/ckan/files/scripts/prepare-local-dev-extensions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,12 @@ do
then
echo "Updating 'test.ini' reference to 'test-core.ini' for plugin $i"
ckan config-tool $i/test.ini "use = config:../../ckan/test-core.ini"
if [ "$i" == "$SRC_EXTENSIONS_DIR/ckanext-uni" ];
then
echo "Updating 'test.ini' to allow testing the extension"
ckan config-tool $i/test.ini "sqlalchemy.url = ${SQLALCHEMY_URL}"
ckan config-tool $i/test.ini "ckan.redis.url = ${CKAN_REDIS_URL}"
ckan config-tool $i/test.ini "solr_url = ${SOLR_URL}"
ckan config-tool $i/test.ini "ckan.datastore.write_url = ${DATASTORE_WRITE_URL}"
ckan config-tool $i/test.ini "ckan.datastore.read_url = ${DATASTORE_READ_URL}"
fi
echo "Updating 'test.ini' to allow testing the extension"
ckan config-tool $i/test.ini "sqlalchemy.url = ${SQLALCHEMY_URL}"
ckan config-tool $i/test.ini "ckan.redis.url = ${CKAN_REDIS_URL}"
ckan config-tool $i/test.ini "solr_url = ${SOLR_URL}"
ckan config-tool $i/test.ini "ckan.datastore.write_url = ${DATASTORE_WRITE_URL}"
ckan config-tool $i/test.ini "ckan.datastore.read_url = ${DATASTORE_READ_URL}"
fi
fi
done
Expand Down

0 comments on commit d39befa

Please sign in to comment.