From: James Valleroy <jvalleroy@mailbox.org>
Date: Fri, 9 Sep 2022 10:09:53 -0400
Subject: Skip test cases that depend on non-DFSG resources

Forwarded: not-needed
---
 tests/Finder/DefaultFinderTest.php    |  2 ++
 tests/Finder/FlickRFinderTest.php     |  1 +
 tests/Finder/QueryRegexFinderTest.php | 13 +++++++++++++
 tests/WebThumbnailerTest.php          |  4 ++++
 4 files changed, 20 insertions(+)

diff --git a/tests/Finder/DefaultFinderTest.php b/tests/Finder/DefaultFinderTest.php
index 4e3fed7..fb12436 100644
--- a/tests/Finder/DefaultFinderTest.php
+++ b/tests/Finder/DefaultFinderTest.php
@@ -65,6 +65,7 @@ class DefaultFinderTest extends TestCase
      */
     public function testDefaultFinderOpenGraph(): void
     {
+        $this->markTestSkipped('Test case depends on non-DFSG resource that was dropped.');
         $url = __DIR__ . '/../resources/default/le-monde.html';
         $expected = 'https://img.lemde.fr/2016/10/21/107/0/1132/566/1440/720/60/0/fe3b107_3522-d2olbw.y93o25u3di.jpg';
         $finder = new DefaultFinder('', $url, null, null);
@@ -76,6 +77,7 @@ class DefaultFinderTest extends TestCase
      */
     public function testDefaultFinderOpenGraphRemote(): void
     {
+        $this->markTestSkipped('Test case depends on non-DFSG resource that was dropped.');
         $url = self::LOCAL_SERVER . 'default/le-monde.html';
         $expected = 'https://img.lemde.fr/2016/10/21/107/0/1132/566/1440/720/60/0/fe3b107_3522-d2olbw.y93o25u3di.jpg';
         $finder = new DefaultFinder('', $url, null, null);
diff --git a/tests/Finder/FlickRFinderTest.php b/tests/Finder/FlickRFinderTest.php
index 67389f7..e04a1d6 100644
--- a/tests/Finder/FlickRFinderTest.php
+++ b/tests/Finder/FlickRFinderTest.php
@@ -23,6 +23,7 @@ class FlickRFinderTest extends TestCase
      */
     public function setUp(): void
     {
+        $this->markTestSkipped('Test cases depend on non-DFSG resource that was dropped.');
         self::$rules  = [
             'image_regex' => '<meta property=\"og:image\" content=\"(.*?)\"',
             'thumbnail_url' => '${1}',
diff --git a/tests/Finder/QueryRegexFinderTest.php b/tests/Finder/QueryRegexFinderTest.php
index 61c669a..92ec9f6 100644
--- a/tests/Finder/QueryRegexFinderTest.php
+++ b/tests/Finder/QueryRegexFinderTest.php
@@ -233,6 +233,7 @@ class QueryRegexFinderTest extends TestCase
      */
     public function testQueryRegexGiphy(): void
     {
+        $this->markTestSkipped('Test case depends on non-DFSG resource that was dropped.');
         $expected = 'https://media.giphy.com/media/8JQqAqsxNDUXu/giphy-facebook_s.jpg';
         $allRules = DataUtils::loadJson(FileUtils::RESOURCES_PATH . 'rules.json');
         $rules = $allRules['giphy']['rules'];
@@ -247,6 +248,7 @@ class QueryRegexFinderTest extends TestCase
      */
     public function testQueryRegexImgurAlbum(): void
     {
+        $this->markTestSkipped('Test case depends on non-DFSG resource that was dropped.');
         $expected = 'https://i.imgur.com/iQxE4BHm.jpg';
         $allRules = DataUtils::loadJson(FileUtils::RESOURCES_PATH . 'rules.json');
         $rules = $allRules['imgur_album']['rules'];
@@ -263,6 +265,7 @@ class QueryRegexFinderTest extends TestCase
      */
     public function testQueryRegexImgurGallery(): void
     {
+        $this->markTestSkipped('Test case depends on non-DFSG resource that was dropped.');
         $expected = 'https://i.imgur.com/iQxE4BHm.jpg';
         $allRules = DataUtils::loadJson(FileUtils::RESOURCES_PATH . 'rules.json');
         $rules = $allRules['imgur_album']['rules'];
@@ -277,6 +280,7 @@ class QueryRegexFinderTest extends TestCase
      */
     public function testQueryRegexInstagramPicture(): void
     {
+        $this->markTestSkipped('Test case depends on non-DFSG resource that was dropped.');
         $expected = 'https://scontent-cdg2-1.cdninstagram.com/v/t51.2885-15/e35/'
             . '14719286_1129421600429160_916728922148700160_n.jpg'
             . '?_nc_ht=scontent-cdg2-1.cdninstagram.com'
@@ -294,6 +298,7 @@ class QueryRegexFinderTest extends TestCase
      */
     public function testQueryRegexInstagramProfile(): void
     {
+        $this->markTestSkipped('Test case depends on non-DFSG resource that was dropped.');
         $expected = 'https://scontent-cdg2-1.cdninstagram.com/v/t51.2885-19/s150x150/'
             . '11351823_506089142881765_717664936_a.jpg'
             . '?_nc_ht=scontent-cdg2-1.cdninstagram.com'
@@ -311,6 +316,7 @@ class QueryRegexFinderTest extends TestCase
      */
     public function testQueryRegexPinterestPicture(): void
     {
+        $this->markTestSkipped('Test case depends on non-DFSG resource that was dropped.');
         $expected = 'https://s-media-cache-ak0.pinimg.com/600x315/e0/7d/c0/e07dc09f93e12170fae7caa09329d815.jpg';
         $allRules = DataUtils::loadJson(FileUtils::RESOURCES_PATH . 'rules.json');
         $rules = $allRules['pinterest']['rules'];
@@ -325,6 +331,7 @@ class QueryRegexFinderTest extends TestCase
      */
     public function testQueryRegexPinterestProfile(): void
     {
+        $this->markTestSkipped('Test case depends on non-DFSG resource that was dropped.');
         $expected = 'https://s-media-cache-ak0.pinimg.com/avatars/sjoshua1_1367516806_140.jpg';
         $allRules = DataUtils::loadJson(FileUtils::RESOURCES_PATH . 'rules.json');
         $rules = $allRules['pinterest']['rules'];
@@ -339,6 +346,7 @@ class QueryRegexFinderTest extends TestCase
      */
     public function testQueryRegexTheOatmealComic(): void
     {
+        $this->markTestSkipped('Test case depends on non-DFSG resource that was dropped.');
         $expected = 'http://s3.amazonaws.com/theoatmeal-img/thumbnails/unhappy_big.png';
         $allRules = DataUtils::loadJson(FileUtils::RESOURCES_PATH . 'rules.json');
         $rules = $allRules['theoatmeal']['rules'];
@@ -353,6 +361,7 @@ class QueryRegexFinderTest extends TestCase
      */
     public function testQueryRegexTwitterNoMedia(): void
     {
+        $this->markTestSkipped('Test case depends on non-DFSG resource that was dropped.');
         $expected = 'https://pbs.twimg.com/profile_images/737009192758870016/I_p72JBK_400x400.jpg';
         $allRules = DataUtils::loadJson(FileUtils::RESOURCES_PATH . 'rules.json');
         $rules = $allRules['twitter']['rules'];
@@ -367,6 +376,7 @@ class QueryRegexFinderTest extends TestCase
      */
     public function testQueryRegexTwitterOneMedia(): void
     {
+        $this->markTestSkipped('Test case depends on non-DFSG resource that was dropped.');
         $expected = 'https://pbs.twimg.com/media/CvilUtwWgAAQ46n.jpg:large';
         $allRules = DataUtils::loadJson(FileUtils::RESOURCES_PATH . 'rules.json');
         $rules = $allRules['twitter']['rules'];
@@ -381,6 +391,7 @@ class QueryRegexFinderTest extends TestCase
      */
     public function testQueryRegexTwitterMultipleMedia(): void
     {
+        $this->markTestSkipped('Test case depends on non-DFSG resource that was dropped.');
         $expected = 'https://pbs.twimg.com/media/CuKCNVBVUAU332-.jpg:large';
         $allRules = DataUtils::loadJson(FileUtils::RESOURCES_PATH . 'rules.json');
         $rules = $allRules['twitter']['rules'];
@@ -395,6 +406,7 @@ class QueryRegexFinderTest extends TestCase
      */
     public function testQueryRegexYoutubeProfile(): void
     {
+        $this->markTestSkipped('Test case depends on non-DFSG resource that was dropped.');
         $expected = 'https://yt3.ggpht.com/-KLL2Lp8Zqso/AAAAAAAAAAI/AAAAAAAAAAA/Y0qd6h5C_jQ/'
             . 's900-c-k-no-mo-rj-c0xffffff/photo.jpg';
         $allRules = DataUtils::loadJson(FileUtils::RESOURCES_PATH . 'rules.json');
@@ -410,6 +422,7 @@ class QueryRegexFinderTest extends TestCase
      */
     public function testQueryRegexXkcdComic(): void
     {
+        $this->markTestSkipped('Test case depends on non-DFSG resource that was dropped.');
         $expected = '//imgs.xkcd.com/comics/movie_folder.png';
         $allRules = DataUtils::loadJson(FileUtils::RESOURCES_PATH . 'rules.json');
         $rules = $allRules['xkcd']['rules'];
diff --git a/tests/WebThumbnailerTest.php b/tests/WebThumbnailerTest.php
index 3ba3389..f17e09d 100644
--- a/tests/WebThumbnailerTest.php
+++ b/tests/WebThumbnailerTest.php
@@ -92,6 +92,7 @@ class WebThumbnailerTest extends TestCase
      */
     public function testOpenGraphImage(): void
     {
+        $this->markTestSkipped('Test case depends on non-DFSG resource that was dropped.');
         $image = 'default/le-monde.jpg';
         $this->regenerate($image);
         $expected = self::$regenerated . $image;
@@ -106,6 +107,7 @@ class WebThumbnailerTest extends TestCase
      */
     public function testOpenGraphImageAbsolute(): void
     {
+        $this->markTestSkipped('Test case depends on non-DFSG resource that was dropped.');
         $image = 'default/le-monde.png';
         $this->regenerate($image);
         mkdir(self::$tmp);
@@ -303,6 +305,7 @@ class WebThumbnailerTest extends TestCase
      */
     public function testHotlinkOpenGraph(): void
     {
+        $this->markTestSkipped('Test case depends on non-DFSG resource that was dropped.');
         $expected = 'https://img.lemde.fr/2016/10/21/107/0/1132/566/1440/720/60/0/fe3b107_3522-d2olbw.y93o25u3di.jpg';
         $url = self::LOCAL_SERVER . 'default/le-monde.html';
         $wt = new WebThumbnailer();
@@ -315,6 +318,7 @@ class WebThumbnailerTest extends TestCase
      */
     public function testHotlinkOpenGraphJsonConfig(): void
     {
+        $this->markTestSkipped('Test case depends on non-DFSG resource that was dropped.');
         $expected = 'https://img.lemde.fr/2016/10/21/107/0/1132/566/1440/720/60/0/fe3b107_3522-d2olbw.y93o25u3di.jpg';
         $url = self::LOCAL_SERVER . 'default/le-monde.html';
         $wt = new WebThumbnailer();
