Test Create with only a TokenID.
diff --git a/openstack/identity/v3/tokens/requests_test.go b/openstack/identity/v3/tokens/requests_test.go
index a860751..f95e897 100644
--- a/openstack/identity/v3/tokens/requests_test.go
+++ b/openstack/identity/v3/tokens/requests_test.go
@@ -17,6 +17,7 @@
client := gophercloud.ServiceClient{
Endpoint: endpoint(),
Options: options,
+ TokenID: "12345abcdef",
}
mux.HandleFunc("/auth/tokens", func(w http.ResponseWriter, r *http.Request) {
@@ -90,3 +91,18 @@
}
`)
}
+
+func TestCreateTokenID(t *testing.T) {
+ authTokenPost(t, gophercloud.AuthOptions{}, nil, `
+ {
+ "auth": {
+ "identity": {
+ "methods": ["token"],
+ "token": {
+ "id": "12345abcdef"
+ }
+ }
+ }
+ }
+ `)
+}