test: add missing GetSystemMode method to mockDetectorProvider
Fixes compilation error in security tests by implementing the GetSystemMode() method that was added to the DetectorProvider interface.
This commit is contained in:
parent
d5a5b74e0c
commit
abaf070f47
1 changed files with 5 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ type mockDetectorProvider struct {
|
|||
activeAnomalies []*events.AnomalyEvent
|
||||
history []*events.AnomalyEvent
|
||||
modeChanges []analytics.SecurityMode
|
||||
systemMode events.SystemMode
|
||||
}
|
||||
|
||||
func (m *mockDetectorProvider) GetSecurityMode() analytics.SecurityMode {
|
||||
|
|
@ -67,6 +68,10 @@ func (m *mockDetectorProvider) CountAnomaliesSince(since time.Time) (int, error)
|
|||
return count, nil
|
||||
}
|
||||
|
||||
func (m *mockDetectorProvider) GetSystemMode() events.SystemMode {
|
||||
return m.systemMode
|
||||
}
|
||||
|
||||
func TestSecurityHandler_Status(t *testing.T) {
|
||||
tests := []struct {
|
||||
name string
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue