move unit tests into 'testing' directories
diff --git a/openstack/compute/v2/extensions/bootfromvolume/testing/doc.go b/openstack/compute/v2/extensions/bootfromvolume/testing/doc.go
new file mode 100644
index 0000000..7603f83
--- /dev/null
+++ b/openstack/compute/v2/extensions/bootfromvolume/testing/doc.go
@@ -0,0 +1 @@
+package testing
diff --git a/openstack/compute/v2/extensions/bootfromvolume/requests_test.go b/openstack/compute/v2/extensions/bootfromvolume/testing/requests_test.go
similarity index 84%
rename from openstack/compute/v2/extensions/bootfromvolume/requests_test.go
rename to openstack/compute/v2/extensions/bootfromvolume/testing/requests_test.go
index d85070d..dca1105 100644
--- a/openstack/compute/v2/extensions/bootfromvolume/requests_test.go
+++ b/openstack/compute/v2/extensions/bootfromvolume/testing/requests_test.go
@@ -1,8 +1,9 @@
-package bootfromvolume
+package testing
import (
"testing"
+ "github.com/gophercloud/gophercloud/openstack/compute/v2/extensions/bootfromvolume"
"github.com/gophercloud/gophercloud/openstack/compute/v2/servers"
th "github.com/gophercloud/gophercloud/testhelper"
)
@@ -14,12 +15,12 @@
FlavorRef: "performance1-1",
}
- ext := CreateOptsExt{
+ ext := bootfromvolume.CreateOptsExt{
CreateOptsBuilder: base,
- BlockDevice: []BlockDevice{
- BlockDevice{
+ BlockDevice: []bootfromvolume.BlockDevice{
+ {
UUID: "123456",
- SourceType: Image,
+ SourceType: bootfromvolume.Image,
DestinationType: "volume",
VolumeSize: 10,
DeleteOnTermination: false,
@@ -58,30 +59,30 @@
FlavorRef: "performance1-1",
}
- ext := CreateOptsExt{
+ ext := bootfromvolume.CreateOptsExt{
CreateOptsBuilder: base,
- BlockDevice: []BlockDevice{
- BlockDevice{
+ BlockDevice: []bootfromvolume.BlockDevice{
+ {
BootIndex: 0,
DeleteOnTermination: true,
DestinationType: "local",
- SourceType: Image,
+ SourceType: bootfromvolume.Image,
UUID: "123456",
},
- BlockDevice{
+ {
BootIndex: -1,
DeleteOnTermination: true,
DestinationType: "local",
GuestFormat: "ext4",
- SourceType: Blank,
+ SourceType: bootfromvolume.Blank,
VolumeSize: 1,
},
- BlockDevice{
+ {
BootIndex: -1,
DeleteOnTermination: true,
DestinationType: "local",
GuestFormat: "ext4",
- SourceType: Blank,
+ SourceType: bootfromvolume.Blank,
VolumeSize: 1,
},
},