ExtractHeaders is no more.
diff --git a/acceptance/rackspace/objectstorage/v1/cdncontainers_test.go b/acceptance/rackspace/objectstorage/v1/cdncontainers_test.go
index 2765f00..4530a5b 100644
--- a/acceptance/rackspace/objectstorage/v1/cdncontainers_test.go
+++ b/acceptance/rackspace/objectstorage/v1/cdncontainers_test.go
@@ -16,20 +16,20 @@
raxClient, err := createClient(t, false)
th.AssertNoErr(t, err)
- headers, err := raxContainers.Create(raxClient, "gophercloud-test", nil).ExtractHeaders()
+ headers, err := raxContainers.Create(raxClient, "gophercloud-test", nil).Extract()
th.AssertNoErr(t, err)
t.Logf("Headers from Create Container request: %+v\n", headers)
defer func() {
- _, err := raxContainers.Delete(raxClient, "gophercloud-test").ExtractHeaders()
+ _, err := raxContainers.Delete(raxClient, "gophercloud-test").Extract()
th.AssertNoErr(t, err)
}()
raxCDNClient, err := createClient(t, true)
th.AssertNoErr(t, err)
- headers, err = raxCDNContainers.Enable(raxCDNClient, "gophercloud-test", raxCDNContainers.EnableOpts{CDNEnabled: true, TTL: 900}).ExtractHeaders()
- th.AssertNoErr(t, err)
- t.Logf("Headers from Enable CDN Container request: %+v\n", headers)
+ r := raxCDNContainers.Enable(raxCDNClient, "gophercloud-test", raxCDNContainers.EnableOpts{CDNEnabled: true, TTL: 900})
+ th.AssertNoErr(t, r.Err)
+ t.Logf("Headers from Enable CDN Container request: %+v\n", r.Header)
t.Logf("Container Names available to the currently issued token:")
count := 0
@@ -51,11 +51,11 @@
t.Errorf("No containers listed for your current token.")
}
- headers, err = raxCDNContainers.Update(raxCDNClient, "gophercloud-test", raxCDNContainers.UpdateOpts{CDNEnabled: false}).ExtractHeaders()
+ headers, err = raxCDNContainers.Update(raxCDNClient, "gophercloud-test", raxCDNContainers.UpdateOpts{CDNEnabled: false}).Extract()
th.AssertNoErr(t, err)
t.Logf("Headers from Update CDN Container request: %+v\n", headers)
- headers, err = raxCDNContainers.Get(raxCDNClient, "gophercloud-test").ExtractHeaders()
+ metadata, err := raxCDNContainers.Get(raxCDNClient, "gophercloud-test").ExtractMetadata()
th.AssertNoErr(t, err)
- t.Logf("Headers from Get CDN Container request (after update): %+v\n", headers)
+ t.Logf("Headers from Get CDN Container request (after update): %+v\n", metadata)
}