Use snake case for file names

This commit is contained in:
Lena Fuhrimann 2017-05-21 23:32:42 +02:00
parent 5007f6f169
commit 4c09b603e1
14 changed files with 6 additions and 3 deletions

View file

@ -50,8 +50,9 @@ func TestBucketsViewHandler(t *testing.T) {
handler := s3manager.BucketsViewHandler(tc.s3)
handler.ServeHTTP(rr, req)
resp := rr.Result()
assert.Equal(tc.expectedStatusCode, rr.Code, tcID)
assert.Equal(tc.expectedStatusCode, resp.StatusCode, tcID)
assert.Contains(rr.Body.String(), tc.expectedBodyContains, tcID)
}
}

View file

@ -56,8 +56,9 @@ func TestCreateBucketHandler(t *testing.T) {
handler := s3manager.CreateBucketHandler(tc.s3)
handler.ServeHTTP(rr, req)
resp := rr.Result()
assert.Equal(tc.expectedStatusCode, rr.Code, tcID)
assert.Equal(tc.expectedStatusCode, resp.StatusCode, tcID)
assert.Contains(rr.Body.String(), tc.expectedBodyContains, tcID)
}
}

View file

@ -40,8 +40,9 @@ func TestDeleteBucketHandler(t *testing.T) {
handler := s3manager.DeleteBucketHandler(tc.s3)
handler.ServeHTTP(rr, req)
resp := rr.Result()
assert.Equal(tc.expectedStatusCode, rr.Code, tcID)
assert.Equal(tc.expectedStatusCode, resp.StatusCode, tcID)
assert.Contains(rr.Body.String(), tc.expectedBodyContains, tcID)
}
}