From fa1cf56f593a79665c0a1d7ec3ea6c04952de1e8 Mon Sep 17 00:00:00 2001 From: David Trattnig <david@subsquare.at> Date: Wed, 17 May 2023 13:13:01 +0200 Subject: [PATCH] test: add API sample data for Steering and Tank --- tests/json/steering-api-v1-playout.json | 46 +++++++++++++++++++++++++ tests/json/tank-api-v1-playlists-1.json | 34 ++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 tests/json/steering-api-v1-playout.json create mode 100644 tests/json/tank-api-v1-playlists-1.json diff --git a/tests/json/steering-api-v1-playout.json b/tests/json/steering-api-v1-playout.json new file mode 100644 index 00000000..dd938856 --- /dev/null +++ b/tests/json/steering-api-v1-playout.json @@ -0,0 +1,46 @@ +[ + { + "id":17, + "start":"2023-05-16T10:06:00", + "end":"2023-05-16T10:10:00", + "title":"Music Show", + "schedule_id":17, + "is_repetition":false, + "playlist_id":1, + "schedule_default_playlist_id":null, + "show_default_playlist_id":null, + "show_id":1, + "show_name":"Musikprogramm", + "show_hosts":"Musikredaktion", + "show_type":"Unmoderiertes Musikprogramm", + "show_categories":"", + "show_topics":"", + "show_musicfocus":"", + "show_languages":"", + "show_fundingcategory":"Standard", + "memo":"", + "className":"default" + }, + { + "id":18, + "start":"2023-05-16T13:00:00", + "end":"2023-05-16T13:05:00", + "title":"Musikprogramm", + "schedule_id":18, + "is_repetition":false, + "playlist_id":1, + "schedule_default_playlist_id":null, + "show_default_playlist_id":null, + "show_id":1, + "show_name":"Musikprogramm", + "show_hosts":"Musikredaktion", + "show_type":"Unmoderiertes Musikprogramm", + "show_categories":"", + "show_topics":"", + "show_musicfocus":"", + "show_languages":"", + "show_fundingcategory":"Standard", + "memo":"", + "className":"default" + } + ] \ No newline at end of file diff --git a/tests/json/tank-api-v1-playlists-1.json b/tests/json/tank-api-v1-playlists-1.json new file mode 100644 index 00000000..8833a994 --- /dev/null +++ b/tests/json/tank-api-v1-playlists-1.json @@ -0,0 +1,34 @@ +{ + "id":1, + "created":"2023-02-28T15:25:38.684803+01:00", + "updated":"2023-02-28T15:25:38.684803+01:00", + "description":"test", + "playout-mode":"linear", + "show":"musikprogramm", + "entries":[ + { + "uri":"file://musikprogramm/2", + "duration":199040000000, + "file":{ + "id":2, + "created":"2023-02-28T14:42:09.540485+01:00", + "updated":"2023-02-28T14:42:17.564099+01:00", + "show":"musikprogramm", + "source":{ + "uri":"upload://some-audio-file.flac", + "hash":"sha256:b4e1922bad633ff0e11f55611f04cb3807d15d70bb09969d2b324373af47b574", + "import":{ + "state":"done" + } + }, + "metadata":{ + "artist":"Test Artist", + "title":"Test Track Title", + "album":"Test Album" + }, + "size":36496517, + "duration":199040000000 + } + } + ] + } \ No newline at end of file -- GitLab