summaryrefslogtreecommitdiffstats
path: root/tests/command/update.bats
blob: 29b1ae7636bd743085440fd5ebdcfc295ce80650 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
  
  [ "$status" -eq 0 -o "$status" -eq 2 ]
}

@test "[$TESTSUITE] Job reset" {
  run ./occ news:updater:job --reset
  
  assert_success
}