Add basic server audit tab to system console for EE

Этот коммит содержится в:
JoramWilander
2016-02-02 16:49:27 -05:00
родитель f28486c455
Коммит d153d661db
15 изменённых файлов: 910 добавлений и 589 удалений

Просмотреть файл

@@ -45,6 +45,14 @@ func TestSqlAuditStore(t *testing.T) {
t.Fatal("Should have returned empty because user_id is missing")
}
c = store.Audit().Get("", 100)
result = <-c
audits = result.Data.(model.Audits)
if len(audits) <= 4 {
t.Fatal("Failed to save and retrieve 4 audit logs")
}
if r2 := <-store.Audit().PermanentDeleteByUser(audit.UserId); r2.Err != nil {
t.Fatal(r2.Err)
}