Implement endpoint.Update().
diff --git a/openstack/identity/v3/endpoints/requests_test.go b/openstack/identity/v3/endpoints/requests_test.go
index ed12c34..7fa660c 100644
--- a/openstack/identity/v3/endpoints/requests_test.go
+++ b/openstack/identity/v3/endpoints/requests_test.go
@@ -157,7 +157,7 @@
defer testhelper.TeardownHTTP()
testhelper.Mux.HandleFunc("/endpoints/12", func(w http.ResponseWriter, r *http.Request) {
- testhelper.TestMethod(t, r, "GET")
+ testhelper.TestMethod(t, r, "PATCH")
testhelper.TestHeader(t, r, "X-Auth-Token", tokenID)
testhelper.TestJSONRequest(t, r, `
{
@@ -194,7 +194,7 @@
t.Fatalf("Unexpected error from Update: %v", err)
}
- expected := Endpoint{
+ expected := &Endpoint{
ID: "12",
Interface: InterfacePublic,
Name: "renamed",