summaryrefslogtreecommitdiffstats
path: root/tests/api
diff options
context:
space:
mode:
Diffstat (limited to 'tests/api')
-rw-r--r--tests/api/feeds.bats6
-rw-r--r--tests/api/folders.bats4
-rw-r--r--tests/api/helpers/settings.bash4
-rw-r--r--tests/api/items.bats4
4 files changed, 9 insertions, 9 deletions
diff --git a/tests/api/feeds.bats b/tests/api/feeds.bats
index d789a554f..6d0d1ae8f 100644
--- a/tests/api/feeds.bats
+++ b/tests/api/feeds.bats
@@ -16,13 +16,13 @@ teardown() {
# delete all feeds
ID_LIST=($(http --ignore-stdin -b -a ${user}:${user} GET ${BASE_URLv1}/feeds | grep -Po '"id":\K([0-9]+)' | tr '\n' ' '))
for i in $ID_LIST; do
- http --ignore-stdin -b -a ${user}:${user} DELETE ${BASE_URLv1}/feeds/$i
+ http --ignore-stdin -b -a ${user}:${user} DELETE ${BASE_URLv1}/feeds/$i > /dev/null
done
# delete all folders
ID_LIST=($(http --ignore-stdin -b -a ${user}:${user} GET ${BASE_URLv1}/folders | grep -Po '"id":\K([0-9]+)' | tr '\n' ' '))
for i in $ID_LIST; do
- http --ignore-stdin -b -a ${user}:${user} DELETE ${BASE_URLv1}/folders/$i
+ http --ignore-stdin -b -a ${user}:${user} DELETE ${BASE_URLv1}/folders/$i > /dev/null
done
}
@@ -37,7 +37,7 @@ teardown() {
# run is not working here.
output=$(http --ignore-stdin -b -a ${user}:${user} POST ${BASE_URLv1}/feeds url=$NC_FEED | jq '.feeds | .[0].url')
- assert_output '"https://nextcloud.com/blog/static-feed/"'
+ assert_output '"http://localhost:8090/Nextcloud.rss"'
}
@test "[$TESTSUITE] Create new inside folder" {
diff --git a/tests/api/folders.bats b/tests/api/folders.bats
index 710b7d2a3..111b69867 100644
--- a/tests/api/folders.bats
+++ b/tests/api/folders.bats
@@ -17,13 +17,13 @@ teardown() {
# delete all feeds
FEED_IDS=($(http --ignore-stdin -b -a ${user}:${user} GET ${BASE_URLv1}/feeds | grep -Po '"id":\K([0-9]+)' | tr '\n' ' '))
for i in $FEED_IDS; do
- http --ignore-stdin -b -a ${user}:${user} DELETE ${BASE_URLv1}/feeds/$i
+ http --ignore-stdin -b -a ${user}:${user} DELETE ${BASE_URLv1}/feeds/$i > /dev/null
done
# delete all folders
FOLDER_IDS=($(http --ignore-stdin -b -a ${user}:${user} GET ${BASE_URLv1}/folders | grep -Po '"id":\K([0-9]+)' | tr '\n' ' '))
for i in $FOLDER_IDS; do
- http --ignore-stdin -b -a ${user}:${user} DELETE ${BASE_URLv1}/folders/$i
+ http --ignore-stdin -b -a ${user}:${user} DELETE ${BASE_URLv1}/folders/$i > /dev/null
done
}
diff --git a/tests/api/helpers/settings.bash b/tests/api/helpers/settings.bash
index 3b31fba4c..b0eff1a68 100644
--- a/tests/api/helpers/settings.bash
+++ b/tests/api/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"
+NC_FEED="http://localhost:8090/Nextcloud.rss"
+HEISE_FEED="http://localhost:8090/heise.xml"
BASE_URLv1="http://localhost:8080/index.php/apps/news/api/v1-2" \ No newline at end of file
diff --git a/tests/api/items.bats b/tests/api/items.bats
index 349678966..edad6f4db 100644
--- a/tests/api/items.bats
+++ b/tests/api/items.bats
@@ -16,13 +16,13 @@ teardown() {
# delete all feeds
FEED_IDS=($(http --ignore-stdin -b -a ${user}:${user} GET ${BASE_URLv1}/feeds | grep -Po '"id":\K([0-9]+)' | tr '\n' ' '))
for i in $FEED_IDS; do
- http --ignore-stdin -b -a ${user}:${user} DELETE ${BASE_URLv1}/feeds/$i
+ http --ignore-stdin -b -a ${user}:${user} DELETE ${BASE_URLv1}/feeds/$i > /dev/null
done
# delete all folders
FOLDER_IDS=($(http --ignore-stdin -b -a ${user}:${user} GET ${BASE_URLv1}/folders | grep -Po '"id":\K([0-9]+)' | tr '\n' ' '))
for i in $FOLDER_IDS; do
- http --ignore-stdin -b -a ${user}:${user} DELETE ${BASE_URLv1}/folders/$i
+ http --ignore-stdin -b -a ${user}:${user} DELETE ${BASE_URLv1}/folders/$i > /dev/null
done
}