Turns out /endpoints *is* paginated with links.
diff --git a/openstack/identity/v3/endpoints/requests_test.go b/openstack/identity/v3/endpoints/requests_test.go
index 7fa660c..f5705a0 100644
--- a/openstack/identity/v3/endpoints/requests_test.go
+++ b/openstack/identity/v3/endpoints/requests_test.go
@@ -92,30 +92,36 @@
testhelper.TestHeader(t, r, "X-Auth-Token", tokenID)
fmt.Fprintf(w, `
- [
- {
- "id": "12",
- "interface": "public",
- "links": {
- "self": "https://localhost:5000/v3/endpoints/12"
+ {
+ "endpoints": [
+ {
+ "id": "12",
+ "interface": "public",
+ "links": {
+ "self": "https://localhost:5000/v3/endpoints/12"
+ },
+ "name": "the-endiest-of-points",
+ "region": "underground",
+ "service_id": "asdfasdfasdfasdf",
+ "url": "https://1.2.3.4:9000/"
},
- "name": "the-endiest-of-points",
- "region": "underground",
- "service_id": "asdfasdfasdfasdf",
- "url": "https://1.2.3.4:9000/"
- },
- {
- "id": "13",
- "interface": "internal",
- "links": {
- "self": "https://localhost:5000/v3/endpoints/13"
- },
- "name": "shhhh",
- "region": "underground",
- "service_id": "asdfasdfasdfasdf",
- "url": "https://1.2.3.4:9001/"
+ {
+ "id": "13",
+ "interface": "internal",
+ "links": {
+ "self": "https://localhost:5000/v3/endpoints/13"
+ },
+ "name": "shhhh",
+ "region": "underground",
+ "service_id": "asdfasdfasdfasdf",
+ "url": "https://1.2.3.4:9001/"
+ }
+ ],
+ "links": {
+ "next": null,
+ "previous": null
}
- ]
+ }
`)
})