rackspace.CreateOpts unifies Rackspace opts.
diff --git a/rackspace/compute/v2/servers/requests_test.go b/rackspace/compute/v2/servers/requests_test.go
new file mode 100644
index 0000000..999718b
--- /dev/null
+++ b/rackspace/compute/v2/servers/requests_test.go
@@ -0,0 +1,31 @@
+package servers
+
+import (
+ "testing"
+
+ "github.com/rackspace/gophercloud/openstack/compute/v2/extensions/diskconfig"
+ th "github.com/rackspace/gophercloud/testhelper"
+)
+
+func TestCreateOpts(t *testing.T) {
+ opts := CreateOpts{
+ Name: "createdserver",
+ ImageRef: "image-id",
+ FlavorRef: "flavor-id",
+ KeyPair: "mykey",
+ DiskConfig: diskconfig.Manual,
+ }
+
+ expected := `
+ {
+ "server": {
+ "name": "createdserver",
+ "imageRef": "image-id",
+ "flavorRef": "flavor-id",
+ "key_name": "mykey",
+ "OS-DCF:diskConfig": "MANUAL"
+ }
+ }
+ `
+ th.CheckJSONEquals(t, expected, opts.ToServerCreateMap())
+}