view scripts/search/saved-search-test @ 12:c2e2d794847f

new: add config.properties file for gazetteer
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Wed, 30 Sep 2015 13:43:54 +0200
parents a50cf11e5178
children
line wrap: on
line source

#!/bin/bash
. scripts/search/export-keys
#curl -s -X PUT http://localhost:8080/api/admin/savedsearches/makelinks/all | jq .
diff -u scripts/search/tests/expected/saved-search <(curl -s "http://localhost:8080/api/search?key=$ADMINKEY&sort=name&subtree=psimalihealth&q=*" | jq '.data.items[] | {name,type}')
diff -u scripts/search/tests/expected/saved-search-links <(curl -s http://localhost:8080/api/dataverses/psimalihealth/links?key=$ADMINKEY | jq .data)