add s2i controller test

Signed-off-by: runzexia <runzexia@yunify.com>
This commit is contained in:
runzexia
2020-03-19 09:53:16 +08:00
parent 93461cfb0b
commit 6a7bf0a86f
5 changed files with 271 additions and 20 deletions

View File

@@ -17,8 +17,8 @@ func TestFakeS3(t *testing.T) {
if !ok {
t.Fatal("should have hello object")
}
if o.key != key || o.fileName != fileName {
t.Fatalf("key should be %s, fileName should be %s", key, fileName)
if o.Key != key || o.FileName != fileName {
t.Fatalf("Key should be %s, FileName should be %s", key, fileName)
}
url, err := s3.GetDownloadURL(key, fileName+"1")