diff options
author | Benjamin Brahmer <info@b-brahmer.de> | 2022-08-21 16:38:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-21 16:38:40 +0200 |
commit | 49f79101c314f760f36d1e6ef49758069622812c (patch) | |
tree | d509587880f83af7d45fd6f8c4e6e4f547a95e89 /tests/api/feeds.bats | |
parent | b1cbf80933658742c7794614b714fe6782441920 (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/api/feeds.bats')
-rw-r--r-- | tests/api/feeds.bats | 6 |
1 files changed, 3 insertions, 3 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" { |