From 032d48ad7b180c80344a8fe64b2f9bfc81cef7b1 Mon Sep 17 00:00:00 2001 From: nextcloud486153 <78801830+nextcloud486153@users.noreply.github.com> Date: Mon, 18 Apr 2022 11:59:02 +0200 Subject: Fix malformed feeds (without GUIDs) stopping the update process (fixes #1738) Signed-off-by: nextcloud486153 <78801830+nextcloud486153@users.noreply.github.com> --- tests/integration/feeds.bats | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/integration/feeds.bats') diff --git a/tests/integration/feeds.bats b/tests/integration/feeds.bats index 1e60b5552..5ad52dc30 100644 --- a/tests/integration/feeds.bats +++ b/tests/integration/feeds.bats @@ -22,6 +22,17 @@ teardown() { fi } +@test "[$TESTSUITE] Add feed without GUIDs" { + run ./occ news:feed:add "$user" "$NO_GUID_FEED" + [ "$status" -ne 0 ] + + if ! echo "$output" | grep "No parser can handle this stream"; then + ret_status=$? + echo "Malformed feed exception wasn't properly caught" + return $ret_status + fi +} + @test "[$TESTSUITE] List all" { ./occ news:feed:add "$user" "$NC_FEED" --title "Something-${BATS_SUITE_TEST_NUMBER}" -- cgit v1.2.3