2021-07-30 13:30:40 +02:00
|
|
|
package s3_test
|
2021-07-26 17:48:20 +02:00
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
|
2021-07-30 14:09:58 +02:00
|
|
|
"dev.sum7.eu/genofire/golang-lib/web/file"
|
|
|
|
"dev.sum7.eu/genofire/golang-lib/web/file/s3"
|
2021-07-26 17:48:20 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
// TODO: actually test, either using little dummies or using sth like play.min.io
|
|
|
|
|
|
|
|
func TestTypes(t *testing.T) {
|
|
|
|
assert := assert.New(t)
|
|
|
|
|
2021-07-30 13:30:40 +02:00
|
|
|
var fstore file.FS
|
|
|
|
fstore, err := s3.New("127.0.0.1", false, "", "", "", "")
|
|
|
|
_ = fstore
|
2021-07-26 17:48:20 +02:00
|
|
|
assert.Error(err)
|
|
|
|
}
|
|
|
|
|
|
|
|
func ExampleNew() {
|
2021-07-30 13:30:40 +02:00
|
|
|
s3.New("play.min.io", true, "Q3AM3UQ867SPQQA43P2F", "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG", "file-store", "")
|
2021-07-26 17:48:20 +02:00
|
|
|
}
|