mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-26 02:09:47 +08:00
88a2811e2a
* Initial concept for pluggable storage (sans tests and docs) * Add TLS storage docs, test harness, and minor clean up from code review * Fix issue with caddymain's temporary moveStorage * Formatting improvement on struct array literal by removing struct name * Pluggable storage changes: * Change storage interface to persist all site or user data in one call * Add lock/unlock calls for renewal and cert obtaining * Key fields on composite literals
13 lines
222 B
Go
13 lines
222 B
Go
package storagetest
|
|
|
|
import "testing"
|
|
|
|
func TestMemoryStorage(t *testing.T) {
|
|
storage := NewInMemoryStorage()
|
|
storageTest := &StorageTest{
|
|
Storage: storage,
|
|
PostTest: storage.Clear,
|
|
}
|
|
storageTest.Test(t, false)
|
|
}
|