From 7470554973d7dffe088ba892ab3b4974b9c32b30 Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Thu, 27 Apr 2023 08:08:55 +0100 Subject: [PATCH] Add test for subscriptions. --- testing/api-test.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testing/api-test.sh b/testing/api-test.sh index 0f50abc..8e2b578 100755 --- a/testing/api-test.sh +++ b/testing/api-test.sh @@ -104,6 +104,9 @@ curl "${CURLOPTS[@]}" $HOST/import -X POST -H "Content-Type: application/json" - # Wait 2s to allow the subscription request to be processed sleep 2 +# Check Subscriptions +curl "${CURLOPTS[@]}" $HOST/subscriptions -H "Authorization: $AUTH_TOKEN" || exit 1 + # Check Feed curl "${CURLOPTS[@]}" $HOST/feed -G --data-urlencode "authToken=$AUTH_TOKEN" || exit 1