MCPcopy Create free account
hub / github.com/cloudwan/gohan / getAuthResponse

Function getAuthResponse

cli/client/client_test_utils.go:38–70  ·  view source on GitHub ↗
(gohanEndpointURL string)

Source from the content-addressed store, hash-verified

36}
37
38func 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
72func getCastleSchema() map[string]interface{} {
73 return map[string]interface{}{

Callers 1

client_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected