kanidm/scripts/otel/multi_curl.sh

12 lines
313 B
Bash
Raw Normal View History

#!/bin/bash
# This allows testing a bunch of endpoints in a really dumb way
COMMAND="curl -ks"
# 404
$COMMAND https://localhost:8443/asdfasfasfsadf > /dev/null 2>&1
# auth fail
$COMMAND --json '{"hello" : "world" }' https://localhost:8443/v1/auth > /dev/null 2>&1
# good
$COMMAND https://localhost:8443/status