add s2irun controller test

Signed-off-by: runzexia <runzexia@yunify.com>
This commit is contained in:
runzexia
2020-03-19 10:35:15 +08:00
parent 6a7bf0a86f
commit 71898e59dd
5 changed files with 319 additions and 19 deletions

View File

@@ -13,7 +13,7 @@ type FakeS3 struct {
func NewFakeS3(objects ...*Object) *FakeS3 {
s3 := &FakeS3{Storage: map[string]*Object{}}
for _, object := range objects{
for _, object := range objects {
s3.Storage[object.Key] = object
}
return s3