Skip to content

Commit

Permalink
Add another video before removing from playlist.
Browse files Browse the repository at this point in the history
  • Loading branch information
FireMasterK committed Sep 8, 2023
1 parent a8e6907 commit e8ef098
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions testing/api-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ curl "${CURLOPTS[@]}" "$HOST/playlists/$PLAYLIST_ID" || exit 1
# Add to Playlist Test
curl "${CURLOPTS[@]}" $HOST/user/playlists/add -X POST -H "Content-Type: application/json" -H "Authorization: $AUTH_TOKEN" -d "$(jq -n --compact-output --arg videoId "BtN-goy9VOY" --arg playlistId "$PLAYLIST_ID" '{"videoId": $videoId, "playlistId": $playlistId}')" || exit 1

# Add another video to Playlist Test
curl "${CURLOPTS[@]}" $HOST/user/playlists/add -X POST -H "Content-Type: application/json" -H "Authorization: $AUTH_TOKEN" -d "$(jq -n --compact-output --arg videoId "jNQXAC9IVRw" --arg playlistId "$PLAYLIST_ID" '{"videoId": $videoId, "playlistId": $playlistId}')" || exit 1

# Remove from Playlist Test
curl "${CURLOPTS[@]}" $HOST/user/playlists/remove -X POST -H "Content-Type: application/json" -H "Authorization: $AUTH_TOKEN" -d "$(jq -n --compact-output --arg index "0" --arg playlistId "$PLAYLIST_ID" '{"index": $index, "playlistId": $playlistId}')" || exit 1

Expand Down

0 comments on commit e8ef098

Please sign in to comment.