blob: 81d37ccc0ac1bc1fbd9e3cf6bf3fa3fbe25ca905 [file] [log] [blame]
Samuel A. Falvo II8a549ef2014-01-24 15:20:54 -08001package identity
2
3// Taken from: http://docs.openstack.org/api/openstack-identity-service/2.0/content/POST_authenticate_v2.0_tokens_.html
4const authResultsOK = `{
5 "access":{
6 "token":{
7 "id": "ab48a9efdfedb23ty3494",
8 "expires": "2010-11-01T03:32:15-05:00",
9 "tenant":{
10 "id": "t1000",
11 "name": "My Project"
12 }
13 },
14 "user":{
15 "id": "u123",
16 "name": "jqsmith",
17 "roles":[{
18 "id": "100",
19 "name": "compute:admin"
20 },
21 {
22 "id": "101",
23 "name": "object-store:admin",
24 "tenantId": "t1000"
25 }
26 ],
27 "roles_links":[]
28 },
29 "serviceCatalog":[{
30 "name": "Cloud Servers",
31 "type": "compute",
32 "endpoints":[{
33 "tenantId": "t1000",
34 "publicURL": "https://compute.north.host.com/v1/t1000",
35 "internalURL": "https://compute.north.internal/v1/t1000",
36 "region": "North",
37 "versionId": "1",
38 "versionInfo": "https://compute.north.host.com/v1/",
39 "versionList": "https://compute.north.host.com/"
40 },
41 {
42 "tenantId": "t1000",
43 "publicURL": "https://compute.north.host.com/v1.1/t1000",
44 "internalURL": "https://compute.north.internal/v1.1/t1000",
45 "region": "North",
46 "versionId": "1.1",
47 "versionInfo": "https://compute.north.host.com/v1.1/",
48 "versionList": "https://compute.north.host.com/"
49 }
50 ],
51 "endpoints_links":[]
52 },
53 {
54 "name": "Cloud Files",
55 "type": "object-store",
56 "endpoints":[{
57 "tenantId": "t1000",
58 "publicURL": "https://storage.north.host.com/v1/t1000",
59 "internalURL": "https://storage.north.internal/v1/t1000",
60 "region": "North",
61 "versionId": "1",
62 "versionInfo": "https://storage.north.host.com/v1/",
63 "versionList": "https://storage.north.host.com/"
64 },
65 {
66 "tenantId": "t1000",
67 "publicURL": "https://storage.south.host.com/v1/t1000",
68 "internalURL": "https://storage.south.internal/v1/t1000",
69 "region": "South",
70 "versionId": "1",
71 "versionInfo": "https://storage.south.host.com/v1/",
72 "versionList": "https://storage.south.host.com/"
73 }
74 ]
75 },
76 {
77 "name": "DNS-as-a-Service",
78 "type": "dnsextension:dns",
79 "endpoints":[{
80 "tenantId": "t1000",
81 "publicURL": "https://dns.host.com/v2.0/t1000",
82 "versionId": "2.0",
83 "versionInfo": "https://dns.host.com/v2.0/",
84 "versionList": "https://dns.host.com/"
85 }
86 ]
87 }
88 ]
89 }
90}`