This commit is contained in:
Harshavardhana
2015-04-08 13:58:25 -07:00
parent 076d115046
commit 5dd77e770f
+1 -1
View File
@@ -56,7 +56,7 @@ var tc *s3Client
func TestParseBuckets(t *testing.T) {
res := "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ListAllMyBucketsResult xmlns=\"http://s3.amazonaws.com/doc/2006-03-01/\"><Owner><ID>ownerIDField</ID><DisplayName>bobDisplayName</DisplayName></Owner><Buckets><Bucket><Name>bucketOne</Name><CreationDate>2006-06-21T07:04:31.000Z</CreationDate></Bucket><Bucket><Name>bucketTwo</Name><CreationDate>2006-06-21T07:04:32.000Z</CreationDate></Bucket></Buckets></ListAllMyBucketsResult>"
buckets, err := parseListAllMyBuckets(strings.NewReader(res))
buckets, err := listAllMyBuckets(strings.NewReader(res))
if err != nil {
t.Fatal(err)
}