From 4355fdb28c8d5e6112784c02c969ea35b29452c1 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Tue, 15 Feb 2022 02:59:19 +0300 Subject: [PATCH] Remove expected/database/streams.db --- tests/__data__/expected/database/streams.db | 3 --- .../database/{base_streams.db => cluster_load.streams.db} | 0 tests/__data__/input/database/db_matrix.streams.db | 4 ++++ tests/commands/cluster/load.test.js | 2 +- tests/commands/database/matrix.test.js | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) delete mode 100644 tests/__data__/expected/database/streams.db rename tests/__data__/input/database/{base_streams.db => cluster_load.streams.db} (100%) create mode 100644 tests/__data__/input/database/db_matrix.streams.db diff --git a/tests/__data__/expected/database/streams.db b/tests/__data__/expected/database/streams.db deleted file mode 100644 index ae99933404..0000000000 --- a/tests/__data__/expected/database/streams.db +++ /dev/null @@ -1,3 +0,0 @@ -{"channel":null,"title":"1A Network","filepath":"tests/__data__/input/streams/unsorted.m3u","url":"https://simultv.s.llnwi.net/n4s4/2ANetwork/interlink.m3u8","http_referrer":null,"user_agent":null,"cluster_id":1,"_id":"0ASgwU4iEPNhQfEj"} -{"channel":"FoxSports2AsiaThai.us","title":"Fox Sports 2 Asia (Thai)","filepath":"tests/__data__/input/streams/us_blocked.m3u","url":"https://example.com/playlist.m3u8","http_referrer":null,"user_agent":null,"cluster_id":1,"_id":"Qo3RROg3sEOJoBfv"} -{"channel":"ATV.ad","title":"ATV","filepath":"tests/__data__/input/streams/ad.m3u","url":"https://iptv-all.lanesh4d0w.repl.co/andorra/atv","http_referrer":null,"user_agent":null,"cluster_id":1,"_id":"hPpP2KnQOeFMRnX0"} diff --git a/tests/__data__/input/database/base_streams.db b/tests/__data__/input/database/cluster_load.streams.db similarity index 100% rename from tests/__data__/input/database/base_streams.db rename to tests/__data__/input/database/cluster_load.streams.db diff --git a/tests/__data__/input/database/db_matrix.streams.db b/tests/__data__/input/database/db_matrix.streams.db new file mode 100644 index 0000000000..91b4020433 --- /dev/null +++ b/tests/__data__/input/database/db_matrix.streams.db @@ -0,0 +1,4 @@ +{"title":"ЛДПР ТВ","channel":"LDPRTV.ru","filepath":"tests/__data__/output/streams/ru.m3u","url":"http://46.46.143.222:1935/live/mp4:ldpr.stream/playlist.m3u8","http_referrer":null,"user_agent":null,"cluster_id":1,"_id":"2ST8btby3mmsgPF0"} +{"title":"BBC News HD","channel":"BBCNews.uk","filepath":"tests/__data__/output/streams/uk.m3u","url":"https://query-streamlink.herokuapp.com/iptv-query?streaming-ip=https://www.twitch.tv/absliveantigua3/","http_referrer":null,"user_agent":null,"cluster_id":3,"_id":"3TbieV1ptnZVCIdn"} +{"title":"ATV","channel":"AndorraTV.ad","filepath":"tests/__data__/output/streams/ad.m3u","url":"https://iptv-all.lanesh4d0w.repl.co/andorra/atv","http_referrer":null,"user_agent":null,"cluster_id":1,"_id":"I6cjG2xCBRFFP4sz"} +{"title":"Andorra TV","channel":"AndorraTV.ad","filepath":"tests/__data__/output/streams/uk.m3u","url":"http://1111296894.rsc.cdn77.org/LS-ATL-54548-6/index.m3u8","http_referrer":null,"user_agent":null,"cluster_id":3,"_id":"WTbieV1ptnZVCIdn"} diff --git a/tests/commands/cluster/load.test.js b/tests/commands/cluster/load.test.js index b545ac806a..430b935f96 100644 --- a/tests/commands/cluster/load.test.js +++ b/tests/commands/cluster/load.test.js @@ -5,7 +5,7 @@ const path = require('path') beforeEach(() => { fs.emptyDirSync('tests/__data__/output') fs.copyFileSync( - 'tests/__data__/input/database/base_streams.db', + 'tests/__data__/input/database/cluster_load.streams.db', 'tests/__data__/output/streams.db' ) diff --git a/tests/commands/database/matrix.test.js b/tests/commands/database/matrix.test.js index 7e46636fef..1d2ae7a342 100644 --- a/tests/commands/database/matrix.test.js +++ b/tests/commands/database/matrix.test.js @@ -6,7 +6,7 @@ beforeEach(() => { fs.emptyDirSync('tests/__data__/output') fs.copyFileSync( - 'tests/__data__/input/database/base_streams.db', + 'tests/__data__/input/database/db_matrix.streams.db', 'tests/__data__/output/streams.db' ) })