mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Attempt to fix the tests linter
This commit is contained in:
parent
e85a26c483
commit
1f025fb639
1 changed files with 4 additions and 6 deletions
|
@ -97,8 +97,8 @@ curl ${CURLOPTS[@]} $HOST/unsubscribe -X POST -H "Content-Type: application/json
|
||||||
curl ${CURLOPTS[@]} $HOST/subscribe -X POST -H "Content-Type: application/json" -H "Authorization: $AUTH_TOKEN" -d $(jq -n --compact-output --arg channelId "UCfdNM3NAhaBOXCafH7krzrA" '{"channelId": $channelId}') || exit 1
|
curl ${CURLOPTS[@]} $HOST/subscribe -X POST -H "Content-Type: application/json" -H "Authorization: $AUTH_TOKEN" -d $(jq -n --compact-output --arg channelId "UCfdNM3NAhaBOXCafH7krzrA" '{"channelId": $channelId}') || exit 1
|
||||||
|
|
||||||
# Import subscriptions Test
|
# Import subscriptions Test
|
||||||
CHANNEL_IDS='[UCsXVk37bltHxD1rDPwtNM8Q,UCXuqSBlHAE6Xw-yeJA0Tunw]'
|
CHANNEL_IDS=UCsXVk37bltHxD1rDPwtNM8Q,UCXuqSBlHAE6Xw-yeJA0Tunw
|
||||||
curl ${CURLOPTS[@]} $HOST/import -X POST -H "Content-Type: application/json" -H "Authorization: $AUTH_TOKEN" -d "$CHANNEL_IDS" || exit 1
|
curl ${CURLOPTS[@]} $HOST/import -X POST -H "Content-Type: application/json" -H "Authorization: $AUTH_TOKEN" -d "[$CHANNEL_IDS]" || exit 1
|
||||||
|
|
||||||
# Wait 2s to allow the subscription request to be processed
|
# Wait 2s to allow the subscription request to be processed
|
||||||
sleep 2
|
sleep 2
|
||||||
|
@ -143,12 +143,10 @@ curl ${CURLOPTS[@]} $HOST/import/playlist -X POST -H "Content-Type: application/
|
||||||
curl ${CURLOPTS[@]} $HOST/user/delete -X POST -H "Content-Type: application/json" -H "Authorization: $AUTH_TOKEN" -d $(jq -n --compact-output --arg password "$PASS" '{"password": $password}') || exit 1
|
curl ${CURLOPTS[@]} $HOST/user/delete -X POST -H "Content-Type: application/json" -H "Authorization: $AUTH_TOKEN" -d $(jq -n --compact-output --arg password "$PASS" '{"password": $password}') || exit 1
|
||||||
|
|
||||||
# Unauthenticated subscription tests GET
|
# Unauthenticated subscription tests GET
|
||||||
CHANNEL_IDS=UCsXVk37bltHxD1rDPwtNM8Q,UCXuqSBlHAE6Xw-yeJA0Tunw
|
|
||||||
curl ${CURLOPTS[@]} $HOST/feed/unauthenticated -G --data-urlencode "channels=$CHANNEL_IDS" || exit 1
|
curl ${CURLOPTS[@]} $HOST/feed/unauthenticated -G --data-urlencode "channels=$CHANNEL_IDS" || exit 1
|
||||||
curl ${CURLOPTS[@]} $HOST/feed/unauthenticated/rss -G --data-urlencode "channels=$CHANNEL_IDS" || exit 1
|
curl ${CURLOPTS[@]} $HOST/feed/unauthenticated/rss -G --data-urlencode "channels=$CHANNEL_IDS" || exit 1
|
||||||
curl ${CURLOPTS[@]} $HOST/subscriptions/unauthenticated -G --data-urlencode "channels=$CHANNEL_IDS" || exit 1
|
curl ${CURLOPTS[@]} $HOST/subscriptions/unauthenticated -G --data-urlencode "channels=$CHANNEL_IDS" || exit 1
|
||||||
|
|
||||||
# Unauthenticated subscription tests POST
|
# Unauthenticated subscription tests POST
|
||||||
CHANNEL_IDS='[UCsXVk37bltHxD1rDPwtNM8Q,UCXuqSBlHAE6Xw-yeJA0Tunw]'
|
curl ${CURLOPTS[@]} $HOST/feed/unauthenticated -X POST -H "Content-Type: application/json" -d "[$CHANNEL_IDS]" || exit 1
|
||||||
curl ${CURLOPTS[@]} $HOST/feed/unauthenticated -X POST -H "Content-Type: application/json" -d "$CHANNEL_IDS" || exit 1
|
curl ${CURLOPTS[@]} $HOST/subscriptions/unauthenticated -X POST -H "Content-Type: application/json" -d "[$CHANNEL_IDS]" || exit 1
|
||||||
curl ${CURLOPTS[@]} $HOST/subscriptions/unauthenticated -X POST -H "Content-Type: application/json" -d "$CHANNEL_IDS" || exit 1
|
|
Loading…
Reference in a new issue