mirror of
https://github.com/caddyserver/caddy.git
synced 2025-02-28 09:43:31 +03:00

* 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
12 lines
222 B
Go
12 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)
|
|
}
|