don't put extension params in 'CreateOpts' if unset; working rackspace acceptance test
diff --git a/acceptance/rackspace/compute/v2/bootfromvolume_test.go b/acceptance/rackspace/compute/v2/bootfromvolume_test.go
index 7e500e8..591a137 100644
--- a/acceptance/rackspace/compute/v2/bootfromvolume_test.go
+++ b/acceptance/rackspace/compute/v2/bootfromvolume_test.go
@@ -5,7 +5,9 @@
import (
"testing"
- "github.com/rackspace/gophercloud/openstack/compute/v2/extensions/bootfromvolume"
+ osBFV "github.com/rackspace/gophercloud/openstack/compute/v2/extensions/bootfromvolume"
+ "github.com/rackspace/gophercloud/rackspace/compute/v2/bootfromvolume"
+ "github.com/rackspace/gophercloud/rackspace/compute/v2/servers"
th "github.com/rackspace/gophercloud/testhelper"
"github.com/smashwilson/gophercloud/acceptance/tools"
)
@@ -24,15 +26,19 @@
name := tools.RandomString("Gophercloud-", 8)
t.Logf("Creating server [%s].", name)
- bd := bootfromvolume.BlockDevice{
+ bd := osBFV.BlockDevice{
UUID: options.imageID,
SourceType: "image",
+ VolumeSize: 10,
}
- server, err := bootfromvolume.Create(client, bootfromvolume.CreateOptsExt{
+ server, err := bootfromvolume.Create(client, servers.CreateOpts{
Name: name,
+ FlavorRef: "performance1-1",
BlockDevice: bd,
}).Extract()
th.AssertNoErr(t, err)
- //defer deleteServer(t, client, server)
+ t.Logf("Created server: %+v\n", server)
+ defer deleteServer(t, client, server)
+ t.Logf("Deleting server [%s]...", name)
}