Adding GetObjectMetadata to donut

This commit is contained in:
Frederick F. Kautz IV
2015-03-22 12:36:51 -07:00
parent 703af6c3ce
commit 99cf484488
3 changed files with 22 additions and 1 deletions
+6
View File
@@ -7,6 +7,7 @@ import (
. "gopkg.in/check.v1"
"io"
"io/ioutil"
"log"
"os"
)
@@ -159,6 +160,11 @@ func (s *MySuite) TestNewObjectCanBeWritten(c *C) {
_, err = io.Copy(&actualData, reader)
c.Assert(err, IsNil)
c.Assert(actualData.Bytes(), DeepEquals, []byte(data))
actualMetadata, err := donut.GetObjectMetadata("foo", "obj")
c.Assert(err, IsNil)
log.Println(actualMetadata)
c.Assert(actualMetadata, DeepEquals, expectedMetadata)
}
func (s *MySuite) TestMultipleNewObjects(c *C) {