Reorganized volumes and volumeattach to move fixtures to subpackage
diff --git a/openstack/blockstorage/v1/volumes/requests_test.go b/openstack/blockstorage/v1/volumes/requests_test.go
index c484cf0..75c2bbc 100644
--- a/openstack/blockstorage/v1/volumes/requests_test.go
+++ b/openstack/blockstorage/v1/volumes/requests_test.go
@@ -3,6 +3,7 @@
import (
"testing"
+ fixtures "github.com/rackspace/gophercloud/openstack/blockstorage/v1/volumes/testing"
"github.com/rackspace/gophercloud/pagination"
th "github.com/rackspace/gophercloud/testhelper"
"github.com/rackspace/gophercloud/testhelper/client"
@@ -12,7 +13,7 @@
th.SetupHTTP()
defer th.TeardownHTTP()
- MockListResponse(t)
+ fixtures.MockListResponse(t)
count := 0
@@ -49,7 +50,7 @@
th.SetupHTTP()
defer th.TeardownHTTP()
- MockListResponse(t)
+ fixtures.MockListResponse(t)
allPages, err := List(client.ServiceClient(), &ListOpts{}).AllPages()
th.AssertNoErr(t, err)
@@ -75,7 +76,7 @@
th.SetupHTTP()
defer th.TeardownHTTP()
- MockGetResponse(t)
+ fixtures.MockGetResponse(t)
v, err := Get(client.ServiceClient(), "d32019d3-bc6e-4319-9c1d-6722fc136a22").Extract()
th.AssertNoErr(t, err)
@@ -89,7 +90,7 @@
th.SetupHTTP()
defer th.TeardownHTTP()
- MockCreateResponse(t)
+ fixtures.MockCreateResponse(t)
options := &CreateOpts{Size: 75}
n, err := Create(client.ServiceClient(), options).Extract()
@@ -103,7 +104,7 @@
th.SetupHTTP()
defer th.TeardownHTTP()
- MockDeleteResponse(t)
+ fixtures.MockDeleteResponse(t)
res := Delete(client.ServiceClient(), "d32019d3-bc6e-4319-9c1d-6722fc136a22")
th.AssertNoErr(t, res.Err)
@@ -113,7 +114,7 @@
th.SetupHTTP()
defer th.TeardownHTTP()
- MockUpdateResponse(t)
+ fixtures.MockUpdateResponse(t)
options := UpdateOpts{Name: "vol-002"}
v, err := Update(client.ServiceClient(), "d32019d3-bc6e-4319-9c1d-6722fc136a22", options).Extract()