1
0
mirror of https://github.com/chylex/Nextcloud-News.git synced 2024-11-24 04:42:46 +01:00
Nextcloud-News/tests/command/update.bats
Benjamin Brahmer 17f0fc7f4a Add a command to check the job status and reset it
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2023-08-22 09:47:11 +02:00

21 lines
352 B
Bash

#!/usr/bin/env bats
# This only works with NC 26
load "helpers/settings"
load "../test_helper/bats-support/load"
load "../test_helper/bats-assert/load"
TESTSUITE="Update"
@test "[$TESTSUITE] Job status" {
run ./occ news:updater:job
assert_success
}
@test "[$TESTSUITE] Job reset" {
run ./occ news:updater:job --reset
assert_success
}