unit tests; consistency with the other OpenStack services
diff --git a/openstack/blockstorage/v1/volumes/urls_test.go b/openstack/blockstorage/v1/volumes/urls_test.go
index fac4033..a95270e 100644
--- a/openstack/blockstorage/v1/volumes/urls_test.go
+++ b/openstack/blockstorage/v1/volumes/urls_test.go
@@ -13,14 +13,32 @@
return &gophercloud.ServiceClient{Endpoint: endpoint}
}
-func TestVolumesURL(t *testing.T) {
- actual := volumesURL(endpointClient())
+func TestCreateURL(t *testing.T) {
+ actual := createURL(endpointClient())
expected := endpoint + "volumes"
th.AssertEquals(t, expected, actual)
}
-func TestVolumeURL(t *testing.T) {
- actual := volumeURL(endpointClient(), "foo")
+func TestListURL(t *testing.T) {
+ actual := listURL(endpointClient())
+ expected := endpoint + "volumes"
+ th.AssertEquals(t, expected, actual)
+}
+
+func TestDeleteURL(t *testing.T) {
+ actual := deleteURL(endpointClient(), "foo")
+ expected := endpoint + "volumes/foo"
+ th.AssertEquals(t, expected, actual)
+}
+
+func TestGetURL(t *testing.T) {
+ actual := getURL(endpointClient(), "foo")
+ expected := endpoint + "volumes/foo"
+ th.AssertEquals(t, expected, actual)
+}
+
+func TestUpdateURL(t *testing.T) {
+ actual := updateURL(endpointClient(), "foo")
expected := endpoint + "volumes/foo"
th.AssertEquals(t, expected, actual)
}