diff options
author | Benjamin Brahmer <info@b-brahmer.de> | 2023-03-20 14:08:52 +0100 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2023-08-22 09:47:11 +0200 |
commit | 17f0fc7f4a4ffeaa004227755c9926276904a9be (patch) | |
tree | 45dbc1691323a0849560a367f352be27cb29a193 /tests/command/update.bats | |
parent | ca9e07b3ba6969a45f98c710c3a137299ad93b01 (diff) |
Add a command to check the job status and reset it
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Diffstat (limited to 'tests/command/update.bats')
-rw-r--r-- | tests/command/update.bats | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/command/update.bats b/tests/command/update.bats new file mode 100644 index 000000000..d94c1cd28 --- /dev/null +++ b/tests/command/update.bats @@ -0,0 +1,21 @@ +#!/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 +}
\ No newline at end of file |