Jon Perritt | 0ce24ad | 2014-10-20 21:59:45 -0500 | [diff] [blame] | 1 | // +build acceptance rackspace objectstorage v1 |
| 2 | |
| 3 | package v1 |
| 4 | |
| 5 | import ( |
Jon Perritt | 260e088 | 2014-10-20 23:31:23 -0500 | [diff] [blame] | 6 | "testing" |
Jon Perritt | 0ce24ad | 2014-10-20 21:59:45 -0500 | [diff] [blame] | 7 | |
Jon Perritt | 260e088 | 2014-10-20 23:31:23 -0500 | [diff] [blame] | 8 | "github.com/rackspace/gophercloud/rackspace/objectstorage/v1/bulk" |
| 9 | th "github.com/rackspace/gophercloud/testhelper" |
Jon Perritt | 0ce24ad | 2014-10-20 21:59:45 -0500 | [diff] [blame] | 10 | ) |
| 11 | |
Jon Perritt | 260e088 | 2014-10-20 23:31:23 -0500 | [diff] [blame] | 12 | func TestBulk(t *testing.T) { |
| 13 | c, err := createClient(t, false) |
| 14 | th.AssertNoErr(t, err) |
Jon Perritt | 0ce24ad | 2014-10-20 21:59:45 -0500 | [diff] [blame] | 15 | |
Jon Perritt | 260e088 | 2014-10-20 23:31:23 -0500 | [diff] [blame] | 16 | var options bulk.DeleteOpts |
| 17 | options = append(options, "container/object1") |
| 18 | res := bulk.Delete(c, options) |
| 19 | th.AssertNoErr(t, res.Err) |
| 20 | body, err := res.ExtractBody() |
| 21 | th.AssertNoErr(t, err) |
| 22 | t.Logf("Response body from Bulk Delete Request: %+v\n", body) |
Jon Perritt | 0ce24ad | 2014-10-20 21:59:45 -0500 | [diff] [blame] | 23 | } |