blob: 79013a564a91d8b2c58404e9b2a14e12831676d5 [file] [log] [blame]
Jon Perritt0ce24ad2014-10-20 21:59:45 -05001// +build acceptance rackspace objectstorage v1
2
3package v1
4
5import (
Jon Perritt260e0882014-10-20 23:31:23 -05006 "testing"
Jon Perritt0ce24ad2014-10-20 21:59:45 -05007
Jon Perritt260e0882014-10-20 23:31:23 -05008 "github.com/rackspace/gophercloud/rackspace/objectstorage/v1/bulk"
9 th "github.com/rackspace/gophercloud/testhelper"
Jon Perritt0ce24ad2014-10-20 21:59:45 -050010)
11
Jon Perritt260e0882014-10-20 23:31:23 -050012func TestBulk(t *testing.T) {
13 c, err := createClient(t, false)
14 th.AssertNoErr(t, err)
Jon Perritt0ce24ad2014-10-20 21:59:45 -050015
Jon Perritt260e0882014-10-20 23:31:23 -050016 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 Perritt0ce24ad2014-10-20 21:59:45 -050023}