| index 2a4bae1..441f4b4 100755 | | index 2a4bae1..441f4b4 100755 |
| --- a/tests/run.sh | | --- a/tests/run.sh |
| +++ b/tests/run.sh | | +++ b/tests/run.sh |
| @@ -147,7 +147,7 @@ A=$(QUERY_STRING='action=scores&pwd=testpw' BOT_PASSWORD=testpw "$BIN" | tail -1 | | @@ -147,7 +147,7 @@ A=$(QUERY_STRING='action=scores&pwd=testpw' BOT_PASSWORD=testpw "$BIN" | tail -1 |
| 147 | check "pwd query accepted" "$(jget "$A" 'd["ok"]')" "True" | 147 | check "pwd query accepted" "$(jget "$A" 'd["ok"]')" "True" |
| 148 | A=$(QUERY_STRING='action=scores' BOT_PASSWORD=testpw HTTP_X_BOT_PASSWORD=testpw "$BIN" | tail -1) | 148 | A=$(QUERY_STRING='action=scores' BOT_PASSWORD=testpw HTTP_X_BOT_PASSWORD=testpw "$BIN" | tail -1) |
| 149 | check "X-Bot-Password accepted" "$(jget "$A" 'd["ok"]')" "True" | 149 | check "X-Bot-Password accepted" "$(jget "$A" 'd["ok"]')" "True" |
| 150 | -A=$(QUERY_STRING='action=scores' BOT_PASSWORD=testpw HTTP_AUTHORIZATION='Bearer TESTPW' "$BIN" | tail -1) | 150 | +A=$(QUERY_STRING='action=scores' BOT_PASSWORD=testpw HTTP_AUTHORIZATION='Bearer testpw' "$BIN" | tail -1) |
| 151 | check "Bearer accepted" "$(jget "$A" 'd["ok"]')" "True" | 151 | check "Bearer accepted" "$(jget "$A" 'd["ok"]')" "True" |
| 152 | A=$(QUERY_STRING='action=scores' BOT_PASSWORD=testpw HTTP_AUTHORIZATION='Bearer wrong' "$BIN" | hdr) | 152 | A=$(QUERY_STRING='action=scores' BOT_PASSWORD=testpw HTTP_AUTHORIZATION='Bearer wrong' "$BIN" | hdr) |
| 153 | check "wrong Bearer rejected" "$A" "Status: 401 Unauthorized" | 153 | check "wrong Bearer rejected" "$A" "Status: 401 Unauthorized" |
| 154 | | 154 | |