bulk delete; finish updating common.Result structs
diff --git a/acceptance/rackspace/objectstorage/v1/bulk_test.go b/acceptance/rackspace/objectstorage/v1/bulk_test.go
index fac3810..79013a5 100644
--- a/acceptance/rackspace/objectstorage/v1/bulk_test.go
+++ b/acceptance/rackspace/objectstorage/v1/bulk_test.go
@@ -3,18 +3,21 @@
package v1
import (
- "fmt"
- "testing"
+ "testing"
- "github.com/rackspace/gophercloud/rackspace/objectstorage/v1/bulk"
- th "github.com/rackspace/gophercloud/testhelper"
+ "github.com/rackspace/gophercloud/rackspace/objectstorage/v1/bulk"
+ th "github.com/rackspace/gophercloud/testhelper"
)
-func TestBulk(t *testing.T){
- c, err := createClient(t, false)
- th.AssertNoErr(t, err)
+func TestBulk(t *testing.T) {
+ c, err := createClient(t, false)
+ th.AssertNoErr(t, err)
- options := &bulk.DeleteOpts{"container/object1"}
- res := bulk.Delete(c, options)
- fmt.Printf("res: %+v\n", res)
+ var options bulk.DeleteOpts
+ options = append(options, "container/object1")
+ res := bulk.Delete(c, options)
+ th.AssertNoErr(t, res.Err)
+ body, err := res.ExtractBody()
+ th.AssertNoErr(t, err)
+ t.Logf("Response body from Bulk Delete Request: %+v\n", body)
}