Reorganize packages
This commit is contained in:
17
honeypot/ssh/store/memory_test.go
Normal file
17
honeypot/ssh/store/memory_test.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package store_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.uio.no/torjus/apiary/honeypot/ssh/store"
|
||||
)
|
||||
|
||||
func TestMemoryStore(t *testing.T) {
|
||||
s := &store.MemoryStore{}
|
||||
testLoginAttemptStore(s, t)
|
||||
}
|
||||
func TestMemoryStoreWithCache(t *testing.T) {
|
||||
backend := &store.MemoryStore{}
|
||||
s := store.NewCachingStore(backend)
|
||||
testLoginAttemptStore(s, t)
|
||||
}
|
Reference in New Issue
Block a user