Skip to content

Commit e8ef098

Browse files
committed
Add another video before removing from playlist.
1 parent a8e6907 commit e8ef098

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

testing/api-test.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ curl "${CURLOPTS[@]}" "$HOST/playlists/$PLAYLIST_ID" || exit 1
132132
# Add to Playlist Test
133133
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
134134

135+
# Add another video to Playlist Test
136+
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
137+
135138
# Remove from Playlist Test
136139
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
137140

0 commit comments

Comments
 (0)