release 1.27.0: exchange /keys trailing-slash WARN + docs links
This commit is contained in:
parent
b5602b261f
commit
fb62791a05
5 changed files with 31 additions and 2 deletions
|
|
@ -105,6 +105,18 @@ section "sanity · exchange"
|
|||
# ---------------------------------------------------------------------------
|
||||
expect_code "exchange public /config" 200 "$EXCHANGE_PUBLIC/config"
|
||||
expect_code "exchange public /keys" 200 "$EXCHANGE_PUBLIC/keys"
|
||||
# /keys vs /keys/: WARN if only one works (proxy slash). Docs:
|
||||
# https://docs.taler.net/core/api-exchange.html#get--keys
|
||||
# https://docs.taler.net/core/api-common.html (base URL ends with /; append "keys")
|
||||
_k=$(http_code "$EXCHANGE_PUBLIC/keys")
|
||||
_ks=$(http_code "$EXCHANGE_PUBLIC/keys/")
|
||||
if [ "$_k" = "200" ] && [ "$_ks" = "200" ]; then
|
||||
ok "exchange public /keys trailing-slash" "both 200"
|
||||
elif [ "$_k" = "200" ]; then
|
||||
warn "exchange public /keys trailing-slash" "/keys=200 /keys/=$_ks (docs: GET {base}keys)"
|
||||
elif [ "$_ks" = "200" ]; then
|
||||
warn "exchange public /keys trailing-slash" "/keys=$_k /keys/=200"
|
||||
fi
|
||||
expect_code "exchange public /terms" 200 "$EXCHANGE_PUBLIC/terms"
|
||||
|
||||
code=$(http_body "$EXCHANGE_PUBLIC/config" "$tmp/ex-config.json")
|
||||
|
|
|
|||
Reference in a new issue