feat: working version
1. implemented filesystem storage, NATS object storage and saving to Vault. 2. Test coverage is fine for filesystem and Vault (and NATS object does not really require extensive tests)
This commit is contained in:
@@ -4,6 +4,8 @@ import (
|
||||
"bytes"
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"code.uint32.ru/tiny/storage/storageutil"
|
||||
)
|
||||
|
||||
func TestVaultStorage(t *testing.T) {
|
||||
@@ -25,7 +27,9 @@ func TestVaultStorage(t *testing.T) {
|
||||
t.Log(addr)
|
||||
t.Log(path)
|
||||
|
||||
st, err := Open(token, path, addr)
|
||||
client, err := storageutil.NewVaultApiClient(token, addr)
|
||||
|
||||
st := New(client, path)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user