Use snake case for file names
This commit is contained in:
parent
5007f6f169
commit
4c09b603e1
14 changed files with 6 additions and 3 deletions
|
@ -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)
|
||||
}
|
||||
}
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue