summaryrefslogtreecommitdiffstats
path: root/tests/integration/feeds.bats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/feeds.bats')
-rw-r--r--tests/integration/feeds.bats11
1 files changed, 11 insertions, 0 deletions
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}"