-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Doesn't include features and item-search validation, but includes comments in the validation script saying why. Co-authored-by: Matt McFarland <[email protected]>
- Loading branch information
1 parent
c6e85dc
commit 95190c5
Showing
2 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
if [[ "${CI}" ]]; then | ||
set -x | ||
fi | ||
|
||
function usage() { | ||
echo -n \ | ||
"Usage: $(basename "$0") [url] | ||
Run stac-api-validator on the local server | ||
" | ||
} | ||
|
||
geometry='{"type":"Polygon","coordinates":[[[-85.3125,30.9375],[-85.3125,31],[-85.375,31],[-85.375,30.9375],[-85.3125,30.9375]]]}' | ||
|
||
if [ "${BASH_SOURCE[0]}" = "${0}" ]; then | ||
scripts/setup | ||
which stac-api-validator >/dev/null || pip install stac-api-validator==0.4.1 | ||
stac-api-validator --root-url http://localhost:8080/stac/ \ | ||
--conformance collections \ | ||
--conformance core \ | ||
--collection naip \ | ||
--geometry "$geometry" | ||
|
||
# Currently broken: | ||
# - `--conformance features`: needs https://github.com/stac-utils/stac-fastapi/pull/508 | ||
# - `--conformance item-search`: needs https://github.com/stac-utils/stac-api-validator/pull/237 and *not* stac-api-validate v0.4.2 (https://github.com/stac-utils/stac-api-validator/issues/240) | ||
fi |