From 43e4aedc2f7edc85fae02ace7ec8d9a3f510e5a4 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Thu, 9 Feb 2023 13:03:59 +0300 Subject: [PATCH] Update tests/__data__ --- tests/__data__/expected/guides/en/directv.com.xml | 3 +++ .../expected/guides/en/directv.com.xml.gz | Bin 0 -> 200 bytes tests/__data__/expected/logs/guides/update.log | 5 +++-- .../input/database/update-guides/queue.db | 6 ++++++ 4 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 tests/__data__/expected/guides/en/directv.com.xml create mode 100644 tests/__data__/expected/guides/en/directv.com.xml.gz create mode 100644 tests/__data__/input/database/update-guides/queue.db diff --git a/tests/__data__/expected/guides/en/directv.com.xml b/tests/__data__/expected/guides/en/directv.com.xml new file mode 100644 index 00000000..2321284a --- /dev/null +++ b/tests/__data__/expected/guides/en/directv.com.xml @@ -0,0 +1,3 @@ + +Bravo Easthttps://directv.com + \ No newline at end of file diff --git a/tests/__data__/expected/guides/en/directv.com.xml.gz b/tests/__data__/expected/guides/en/directv.com.xml.gz new file mode 100644 index 0000000000000000000000000000000000000000..8e41c0678ead3a0f57d6afcd6bd8a524ea67c787 GIT binary patch literal 200 zcmV;(05|_1iwFP!000006IISjN(31E`awK9uJk49wF!AE$W&dwWCf z%%y~^k~i?&c+?k`t}g1f7EM|RI! literal 0 HcmV?d00001 diff --git a/tests/__data__/expected/logs/guides/update.log b/tests/__data__/expected/logs/guides/update.log index bf20652e..ed53a3be 100644 --- a/tests/__data__/expected/logs/guides/update.log +++ b/tests/__data__/expected/logs/guides/update.log @@ -1,5 +1,6 @@ {"site":"allente.se","lang":"da","days":2,"channel":"6eren.dk","filename":"da/allente.se"} +{"site":"directv.com","lang":"en","days":2,"channel":"BravoEast.us","filename":"en/directv.com"} +{"site":"sky.com","lang":"en","days":2,"channel":"BBCNews.uk","filename":"en/sky.com"} {"site":"virginmedia.com","lang":"en","days":2,"channel":"BBCNews.uk","filename":"en/virginmedia.com"} {"site":"sky.com","lang":"fr","days":2,"channel":"BBCNews.uk","filename":"fr/sky.com"} -{"site":"sky.com","lang":"fr","days":2,"channel":"CNN.us","filename":"fr/sky.com"} -{"site":"sky.com","lang":"en","days":2,"channel":"BBCNews.uk","filename":"en/sky.com"} \ No newline at end of file +{"site":"sky.com","lang":"fr","days":2,"channel":"CNN.us","filename":"fr/sky.com"} \ No newline at end of file diff --git a/tests/__data__/input/database/update-guides/queue.db b/tests/__data__/input/database/update-guides/queue.db new file mode 100644 index 00000000..125d68f5 --- /dev/null +++ b/tests/__data__/input/database/update-guides/queue.db @@ -0,0 +1,6 @@ +{"channel":{"lang":"da","id":"6eren.dk","name":"6eren","site_id":"237","logo":"","site":"allente.se","url":"https://directv.com"},"configPath":"sites/directv.com/directv.com.config.js","error":"Invalid header value char","cluster_id":84,"date":"2022-01-21T00:00:00Z","_id":"00AluKCrCnfgrl8W"} +{"channel":{"lang":"en","id":"BBCNews.uk","name":"BBC News","site_id":"53","logo":"","site":"virginmedia.com","url":"https://chaines-tv.orange.fr"},"configPath":"tests/__data__/input/sites/example.com.config.js","error":null,"cluster_id":1,"date":"2022-01-21T00:00:00Z","_id":"0Wefq0oMR3feCcuY"} +{"channel":{"lang":"fr","id":"BBCNews.uk","name":"BBC News","site_id":"53","logo":"","site":"sky.com","url":"https://chaines-tv.orange.fr"},"configPath":"tests/__data__/input/sites/example.com.config.js","error":null,"cluster_id":1,"date":"2022-01-21T00:00:00Z","_id":"0Zefq0oMR3feCcuY"} +{"channel":{"lang":"en","id":"BBCNews.uk","name":"BBC News","site_id":"53","logo":"","site":"sky.com","url":"https://chaines-tv.orange.fr"},"configPath":"tests/__data__/input/sites/example.com.config.js","error":null,"cluster_id":1,"date":"2022-01-21T00:00:00Z","_id":"0Qefq0oMR3feCcuY"} +{"channel":{"lang":"fr","id":"CNN.us","name":"CNN","site_id":"140","logo":"","site":"sky.com","url":"https://magticom.ge"},"configPath":"tests/__data__/input/sites/example.com.config.js","error":null,"cluster_id":1,"date":"2022-01-21T00:00:00Z","_id":"1XzrxNkSF2AQNBrT"} +{"channel":{"lang":"en","id":"BravoEast.us","name":"Bravo East","site_id":"237","logo":"","site":"directv.com","url":"https://directv.com"},"configPath":"sites/directv.com/directv.com.config.js","error":"Invalid header value char","cluster_id":84,"date":"2022-01-21T00:00:00Z","_id":"01AluKCrCnfgrl8W"} \ No newline at end of file