summaryrefslogtreecommitdiff
path: root/test/missing-expiration-date_test.bats
blob: 60e60fa6c5517811ae5002b644b76547e2673591 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bats

load test_helper

@test "it finds users missing an expiration date" {
  run ./bin/missing-expiration-date test/fixtures/shadow_with_missing_expiration_date

  assert_failure $'root: does not have an expiration date\nbin: does not have an expiration date'
}

@test "it does not find users with a missing expiration date" {
  run ./bin/missing-expiration-date test/fixtures/shadow

  assert_success
}