summaryrefslogtreecommitdiffstats
path: root/tests/command
diff options
context:
space:
mode:
authorBenjamin Brahmer <info@b-brahmer.de>2022-08-21 16:38:40 +0200
committerGitHub <noreply@github.com>2022-08-21 16:38:40 +0200
commit49f79101c314f760f36d1e6ef49758069622812c (patch)
treed509587880f83af7d45fd6f8c4e6e4f547a95e89 /tests/command
parentb1cbf80933658742c7794614b714fe6782441920 (diff)
try to speedup the api testing by hosting the feeds locally (#1874)
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Diffstat (limited to 'tests/command')
-rw-r--r--tests/command/feeds.bats5
-rw-r--r--tests/command/feeds/no_guid_feed.xml78
-rw-r--r--tests/command/helpers/settings.bash6
3 files changed, 6 insertions, 83 deletions
diff --git a/tests/command/feeds.bats b/tests/command/feeds.bats
index 97b4c27d1..7598ac345 100644
--- a/tests/command/feeds.bats
+++ b/tests/command/feeds.bats
@@ -39,8 +39,9 @@ teardown() {
}
@test "[$TESTSUITE] Favicon" {
- ./occ news:feed:add "$user" "$NC_FEED" --title "Something-${BATS_SUITE_TEST_NUMBER}"
- ./occ news:feed:add "$user" "$HEISE_FEED" --title "Something-${BATS_SUITE_TEST_NUMBER}"
+
+ ./occ news:feed:add "$user" "https://nextcloud.com/blog/static-feed/" --title "Something-${BATS_SUITE_TEST_NUMBER}"
+ ./occ news:feed:add "$user" "https://www.heise.de/rss/heise-atom.xml" --title "Something-${BATS_SUITE_TEST_NUMBER}"
run ./occ news:feed:list "$user"
assert_success
diff --git a/tests/command/feeds/no_guid_feed.xml b/tests/command/feeds/no_guid_feed.xml
deleted file mode 100644
index e27a1b07b..000000000
--- a/tests/command/feeds/no_guid_feed.xml
+++ /dev/null
@@ -1,78 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<rss version="2.0">
- <channel>
- <generator>RSS Builder by B!Soft</generator>
- <title>Joshua Wright Dot Net</title>
- <link>http://www.joshuawright.net</link>
- <description>This is a feed of the latest comic masterpiece from joshuawright.net</description>
- <language>en</language>
- <managingEditor>joshua.wright@live.com.au (Josh Wright)</managingEditor>
- <webMaster>joshua.wright@live.com.au (Josh Wright)</webMaster>
- <copyright>2016 JoshuaWright</copyright>
- <item>
- <title>Slack Wyrm 911 - Feeling better</title>
- <pubDate>Wed, 13 Apr 2022 09:07:01 +0100</pubDate>
- <link>https://joshuawright.net/slack-wyrm-911.html</link>
- <description><![CDATA[]]></description>
- </item>
- <item>
- <title>Slack Wyrm 910 - Cake trip</title>
- <pubDate>Mon, 11 Apr 2022 08:52:54 +0100</pubDate>
- <link>https://joshuawright.net/slack-wyrm-910.html</link>
- <description><![CDATA[]]></description>
- </item>
- <item>
- <title>Slack Wyrm 909 - Cake time</title>
- <pubDate>Fri, 8 Apr 2022 09:29:32 +0100</pubDate>
- <description><![CDATA[]]></description>
- </item>
- <item>
- <title>Slack Wyrm 908 - Dragons Lair</title>
- <pubDate>Wed, 6 Apr 2022 09:00:13 +0100</pubDate>
- <link>https://joshuawright.net/slack-wyrm-908.html</link>
- <description><![CDATA[]]></description>
- </item>
- <item>
- <title>Slack Wyrm 907 - Ten feet tall</title>
- <pubDate>Mon, 4 Apr 2022 15:12:51 +0100</pubDate>
- <link>https://joshuawright.net/slack-wyrm-907.html</link>
- <description><![CDATA[]]></description>
- </item>
- <item>
- <title>Slack Wyrm 906 - True self</title>
- <pubDate>Fri, 1 Apr 2022 09:28:06 +1100</pubDate>
- <link>https://joshuawright.net/slack-wyrm-906.html</link>
- <description><![CDATA[]]></description>
- </item>
- <item>
- <title>Slack Wyrm 905 - Drink up</title>
- <pubDate>Wed, 30 Mar 2022 11:07:49 +1100</pubDate>
- <link>https://joshuawright.net/slack-wyrm-905.html</link>
- <description><![CDATA[]]></description>
- </item>
- <item>
- <title>Slack Wyrm 904 - Marvellous medicine</title>
- <pubDate>Mon, 28 Mar 2022 09:02:44 +1100</pubDate>
- <link>https://joshuawright.net/slack-wyrm-904.html</link>
- <description><![CDATA[]]></description>
- </item>
- <item>
- <title>Slack Wyrm 903 - Golden still</title>
- <pubDate>Fri, 25 Mar 2022 09:48:06 +1100</pubDate>
- <link>https://joshuawright.net/slack-wyrm-903.html</link>
- <description><![CDATA[]]></description>
- </item>
- <item>
- <title>Slack Wyrm 902 - Janet the genius</title>
- <pubDate>Wed, 23 Mar 2022 09:30:47 +1100</pubDate>
- <link>https://joshuawright.net/slack-wyrm-902.html</link>
- <description><![CDATA[]]></description>
- </item>
- <item>
- <title>Slack Wyrm 901 - Bye bye Bucky</title>
- <pubDate>Mon, 21 Mar 2022 09:01:36 +1100</pubDate>
- <link>https://joshuawright.net/slack-wyrm-901.html</link>
- <description><![CDATA[]]></description>
- </item>
- </channel>
-</rss> \ No newline at end of file
diff --git a/tests/command/helpers/settings.bash b/tests/command/helpers/settings.bash
index d32924ceb..e2ddc70aa 100644
--- a/tests/command/helpers/settings.bash
+++ b/tests/command/helpers/settings.bash
@@ -1,4 +1,4 @@
user=admin
-NC_FEED="https://nextcloud.com/blog/static-feed/"
-HEISE_FEED="https://www.heise.de/rss/heise-atom.xml"
-NO_GUID_FEED="https://raw.githubusercontent.com/nextcloud/news/master/tests/command/feeds/no_guid_feed.xml"
+NC_FEED="http://localhost:8090/Nextcloud.rss"
+HEISE_FEED="http://localhost:8090/heise.xml"
+NO_GUID_FEED="http://localhost:8090/no_guid_feed.xml"