| 36 | } |
| 37 | |
| 38 | func getAuthResponse(gohanEndpointURL string) interface{} { |
| 39 | return map[string]interface{}{ |
| 40 | "access": map[string]interface{}{ |
| 41 | "token": map[string]interface{}{ |
| 42 | "expires": "2014-01-31T15:30:58Z", |
| 43 | "id": "admin_token", |
| 44 | "issued_at": "2014-01-30T15:30:58.819584", |
| 45 | "tenant": map[string]interface{}{ |
| 46 | "description": nil, |
| 47 | "enabled": true, |
| 48 | "id": "fc394f2ab2df4114bde39905f800dc57", |
| 49 | "name": "admin", |
| 50 | }, |
| 51 | }, |
| 52 | "serviceCatalog": []map[string]interface{}{ |
| 53 | { |
| 54 | "endpoints": []map[string]interface{}{ |
| 55 | { |
| 56 | "adminURL": gohanEndpointURL, |
| 57 | "internalURL": gohanEndpointURL, |
| 58 | "publicURL": gohanEndpointURL, |
| 59 | "region": "RegionOne", |
| 60 | "id": "2dad48f09e2a447a9bf852bcd93548ef", |
| 61 | }, |
| 62 | }, |
| 63 | "endpoints_links": []interface{}{}, |
| 64 | "type": "gohan", |
| 65 | "name": "gohan", |
| 66 | }, |
| 67 | }, |
| 68 | }, |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | func getCastleSchema() map[string]interface{} { |
| 73 | return map[string]interface{}{ |