Adding initial test suites

This commit is contained in:
Frederick F. Kautz IV
2015-01-25 11:22:38 -08:00
parent 4b586a51cf
commit 82a69d3ab9
4 changed files with 101 additions and 5 deletions

View File

@@ -289,6 +289,14 @@ func (s *MySuite) TestShouldNotBeAbleToCreateObjectInNonexistantBucket(c *C) {
// TODO Implement
}
func (s *MySuite) TestHeadOnObject(c *C) {
// TODO
}
func (s *MySuite) TestDateFormat(c *C) {
// TODO
}
func verifyHeaders(c *C, header http.Header, date time.Time, size int, contentType string, etag string) {
// Verify date
c.Assert(header["Last-Modified"][0], Equals, date.Format(time.RFC1123))
@@ -302,7 +310,3 @@ func verifyHeaders(c *C, header http.Header, date time.Time, size int, contentTy
// verify etag
c.Assert(header["Etag"][0], Equals, etag)
}
// Test date format
// Test HEAD