From 4c2e6e78d5f87c4b3576bd4cbd75f5c88c8a8c26 Mon Sep 17 00:00:00 2001 From: Madison Swain-Bowden Date: Wed, 27 Mar 2024 12:20:33 -0700 Subject: [PATCH] Fix load sample data script provider insertion (#3971) * Fix load sample data script provider insertion * Fix tests --- api/api/examples/audio_responses.py | 7 +++++++ load_sample_data.sh | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/api/api/examples/audio_responses.py b/api/api/examples/audio_responses.py index 18fbbde3772..4b53e9f62f1 100644 --- a/api/api/examples/audio_responses.py +++ b/api/api/examples/audio_responses.py @@ -98,6 +98,13 @@ "logo_url": None, "media_count": 3992, }, + { + "display_name": "CCMixter", + "logo_url": None, + "media_count": 1, + "source_name": "ccmixter", + "source_url": "https://ccmixter.org", + }, ] } diff --git a/load_sample_data.sh b/load_sample_data.sh index 8363c5a4cb8..1ead589998a 100755 --- a/load_sample_data.sh +++ b/load_sample_data.sh @@ -1,5 +1,6 @@ #! /usr/bin/env bash set -e +set -o pipefail WEB_SERVICE_NAME="${WEB_SERVICE_NAME:-web}" CACHE_SERVICE_NAME="${CACHE_SERVICE_NAME:-cache}" UPSTREAM_DB_SERVICE_NAME="${UPSTREAM_DB_SERVICE_NAME:-upstream_db}" @@ -85,7 +86,7 @@ VALUES (now(), 'stocksnap', 'StockSnap', 'https://stocksnap.io', false, 'image'), (now(), 'freesound', 'Freesound', 'https://freesound.org/', false, 'audio'), (now(), 'jamendo', 'Jamendo', 'https://www.jamendo.com', false, 'audio'), - (now(), 'wikimedia_audio', 'Wikimedia', 'https://commons.wikimedia.org', false, 'audio'); + (now(), 'wikimedia_audio', 'Wikimedia', 'https://commons.wikimedia.org', false, 'audio'), (now(), 'ccmixter', 'CCMixter', 'https://ccmixter.org', false, 'audio'); "