Skip to content

Commit

Permalink
Fix auditor step in agent tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aalda committed Mar 8, 2019
1 parent ac4870a commit 82380e2
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/e2e/agents_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,11 @@ func TestAgentsPatchTampering(t *testing.T) {
time.Sleep(2 * time.Second)
})

// FIXME: auditor should not alert, at least conceptually.
// let("Check Auditor does not create any alert", func(t *testing.T) {
// alerts, err := getAlert()
// assert.NoError(t, err)
// assert.False(t, strings.Contains(string(alerts), "Unable to verify snapshot"), "Must not exist auditor alerts")
// })
let("Check Auditor does not create any alert", func(t *testing.T) {
alerts, err := getAlert()
assert.NoError(t, err)
assert.True(t, strings.Contains(string(alerts), "Unable to verify snapshot"), "Must exist auditor alerts")
})

let("Check Monitor alerts", func(t *testing.T) {
alerts, err := getAlert()
Expand Down

0 comments on commit 82380e2

Please sign in to comment.