Skip to content
This repository has been archived by the owner on Dec 15, 2024. It is now read-only.

Commit

Permalink
agent: test case for Lockdown
Browse files Browse the repository at this point in the history
  • Loading branch information
shoenig committed Jan 14, 2023
1 parent 0d46750 commit d49115a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions agent/lockdown_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,15 @@ func Test_readable(t *testing.T) {
must.SliceContainsAll(t, tc.exp, result)
}
}

func Test_Lockdown(t *testing.T) {
t.Run("ok", func(t *testing.T) {
})

t.Run("does not exist", func(t *testing.T) {
err := Lockdown(&CoreConfig{
BlockFile: "/does/not/exist",
})
must.ErrorContains(t, err, "no such file")
})
}

0 comments on commit d49115a

Please sign in to comment.