summaryrefslogtreecommitdiffstats
path: root/tests/command/folders.bats
diff options
context:
space:
mode:
authorBenjamin Brahmer <info@b-brahmer.de>2022-08-08 19:23:42 +0200
committerGitHub <noreply@github.com>2022-08-08 19:23:42 +0200
commitd4450ebad2385058467580620272fc020f7dc3db (patch)
tree3ce5ef91cdd1ab800c5d2238755939cb8e0edaa0 /tests/command/folders.bats
parent496084d44733879750a1ac017577e225ded07393 (diff)
Change Autodiscover behaviour (#1860)
* change autodiscover behaviour to only run if the provided url is not already a feed * Execute feed check after the final url is found Signed-off-by: Benjamin Brahmer <info@b-brahmer.de> Co-authored-by: Sean Molenaar <SMillerDev@users.noreply.github.com>
Diffstat (limited to 'tests/command/folders.bats')
-rw-r--r--tests/command/folders.bats8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/command/folders.bats b/tests/command/folders.bats
index 48b15f05b..2568c13c9 100644
--- a/tests/command/folders.bats
+++ b/tests/command/folders.bats
@@ -5,10 +5,10 @@ load "helpers/settings"
TESTSUITE="Folders"
teardown() {
- ID=$(./occ news:folder:list 'admin' | grep "Something-${BATS_SUITE_TEST_NUMBER}" -1 | head -1 | grep -oE '[0-9]*')
- if [ -n "$ID" ]; then
- ./occ news:folder:delete "$user" "$ID"
- fi
+ ID_LIST=($(./occ news:feed:list 'admin' | grep -Po '"id": \K([0-9]+)' | tr '\n' ' '))
+ for ID in $ID_LIST; do
+ ./occ news:feed:delete "$user" "$ID"
+ done
}
@test "[$TESTSUITE] Create new" {