diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-02-03 08:52:18 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-02-03 08:52:18 -0500 |
commit | 75f412c4be81abfd99e2aed8c24dd15db9ae1068 (patch) | |
tree | 7e1aeb0ced8e02b8d6bed5bdce841d3f5b99f45e /store/sql_audit_store_test.go | |
parent | d479b08c997d3216938a3e92c3634a8b5afdb841 (diff) | |
parent | d153d661db7d4349d69824d318aa9ad571970606 (diff) | |
download | chat-75f412c4be81abfd99e2aed8c24dd15db9ae1068.tar.gz chat-75f412c4be81abfd99e2aed8c24dd15db9ae1068.tar.bz2 chat-75f412c4be81abfd99e2aed8c24dd15db9ae1068.zip |
Merge pull request #2049 from mattermost/plt-1856
PLT-1856 Add basic server audit tab to system console for EE
Diffstat (limited to 'store/sql_audit_store_test.go')
-rw-r--r-- | store/sql_audit_store_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/store/sql_audit_store_test.go b/store/sql_audit_store_test.go index b395631f1..841b79627 100644 --- a/store/sql_audit_store_test.go +++ b/store/sql_audit_store_test.go @@ -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) } |