Files
python-keystoneclient/tests/v2_0/client_fixtures.py
Morgan Fainberg 35deb1ae1b Fix License Headers and Enable Gating on H102
Add ASLv2 headers to files that were missing it.

fixes bug #1211587

Change-Id: Iede918e1ce84993cee4ecbb2d9c2606627fa412e
2013-08-27 00:04:03 -07:00

178 lines
6.9 KiB
Python

# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
UNSCOPED_TOKEN = {
u'access': {u'serviceCatalog': {},
u'token': {u'expires': u'2012-10-03T16:58:01Z',
u'id': u'3e2813b7ba0b4006840c3825860b86ed'},
u'user': {u'id': u'c4da488862bd435c9e6c0275a0d0e49a',
u'name': u'exampleuser',
u'roles': [],
u'roles_links': [],
u'username': u'exampleuser'}
}
}
PROJECT_SCOPED_TOKEN = {
u'access': {
u'serviceCatalog': [{
u'endpoints': [{
u'adminURL': u'http://admin:8776/v1/225da22d3ce34b15877ea70b2a575f58',
u'internalURL':
u'http://internal:8776/v1/225da22d3ce34b15877ea70b2a575f58',
u'publicURL':
u'http://public.com:8776/v1/225da22d3ce34b15877ea70b2a575f58',
u'region': u'RegionOne'
}],
u'endpoints_links': [],
u'name': u'Volume Service',
u'type': u'volume'},
{u'endpoints': [{
u'adminURL': u'http://admin:9292/v1',
u'internalURL': u'http://internal:9292/v1',
u'publicURL': u'http://public.com:9292/v1',
u'region': u'RegionOne'}],
u'endpoints_links': [],
u'name': u'Image Service',
u'type': u'image'},
{u'endpoints': [{
u'adminURL': u'http://admin:8774/v2/225da22d3ce34b15877ea70b2a575f58',
u'internalURL': u'http://internal:8774/v2/225da22d3ce34b15877ea70b2a575f58',
u'publicURL': u'http://public.com:8774/v2/225da22d3ce34b15877ea70b2a575f58',
u'region': u'RegionOne'}],
u'endpoints_links': [],
u'name': u'Compute Service',
u'type': u'compute'},
{u'endpoints': [{
u'adminURL': u'http://admin:8773/services/Admin',
u'internalURL': u'http://internal:8773/services/Cloud',
u'publicURL': u'http://public.com:8773/services/Cloud',
u'region': u'RegionOne'}],
u'endpoints_links': [],
u'name': u'EC2 Service',
u'type': u'ec2'},
{u'endpoints': [{
u'adminURL': u'http://admin:35357/v2.0',
u'internalURL': u'http://internal:5000/v2.0',
u'publicURL': u'http://public.com:5000/v2.0',
u'region': u'RegionOne'}],
u'endpoints_links': [],
u'name': u'Identity Service',
u'type': u'identity'}],
u'token': {u'expires': u'2012-10-03T16:53:36Z',
u'id': u'04c7d5ffaeef485f9dc69c06db285bdb',
u'tenant': {u'description': u'',
u'enabled': True,
u'id': u'225da22d3ce34b15877ea70b2a575f58',
u'name': u'exampleproject'}},
u'user': {u'id': u'c4da488862bd435c9e6c0275a0d0e49a',
u'name': u'exampleuser',
u'roles': [{u'id': u'edc12489faa74ee0aca0b8a0b4d74a74',
u'name': u'Member'}],
u'roles_links': [],
u'username': u'exampleuser'}
}
}
AUTH_RESPONSE_BODY = {
u'access': {
u'token': {
u'id': u'ab48a9efdfedb23ty3494',
u'expires': u'2010-11-01T03:32:15-05:00',
u'tenant': {
u'id': u'345',
u'name': u'My Project'
}
},
u'user': {
u'id': u'123',
u'name': u'jqsmith',
u'roles': [{
u'id': u'234',
u'name': u'compute:admin'
}, {
u'id': u'235',
u'name': u'object-store:admin',
u'tenantId': u'1'
}],
u'roles_links': []
},
u'serviceCatalog': [{
u'name': u'Cloud Servers',
u'type': u'compute',
u'endpoints': [{
u'tenantId': u'1',
u'publicURL': u'https://compute.north.host/v1/1234',
u'internalURL': u'https://compute.north.host/v1/1234',
u'region': u'North',
u'versionId': u'1.0',
u'versionInfo': u'https://compute.north.host/v1.0/',
u'versionList': u'https://compute.north.host/u'
}, {
u'tenantId': u'2',
u'publicURL': u'https://compute.north.host/v1.1/3456',
u'internalURL': u'https://compute.north.host/v1.1/3456',
u'region': u'North',
u'versionId': u'1.1',
u'versionInfo': u'https://compute.north.host/v1.1/',
u'versionList': u'https://compute.north.host/u'
}],
u'endpoints_links': []
}, {
u'name': u'Cloud Files',
u'type': u'object-store',
u'endpoints': [{
u'tenantId': u'11',
u'publicURL': u'https://swift.north.host/v1/blah',
u'internalURL': u'https://swift.north.host/v1/blah',
u'region': u'South',
u'versionId': u'1.0',
u'versionInfo': u'uri',
u'versionList': u'uri'
}, {
u'tenantId': u'2',
u'publicURL': u'https://swift.north.host/v1.1/blah',
u'internalURL': u'https://compute.north.host/v1.1/blah',
u'region': u'South',
u'versionId': u'1.1',
u'versionInfo': u'https://swift.north.host/v1.1/',
u'versionList': u'https://swift.north.host/'
}],
u'endpoints_links': [{
u'rel': u'next',
u'href': u'https://identity.north.host/v2.0/'
u'endpoints?marker=2'
}]
}, {
u'name': u'Image Servers',
u'type': u'image',
u'endpoints': [{
u'publicURL': u'https://image.north.host/v1/',
u'internalURL': u'https://image-internal.north.host/v1/',
u'region': u'North'
}, {
u'publicURL': u'https://image.south.host/v1/',
u'internalURL': u'https://image-internal.south.host/v1/',
u'region': u'South'
}],
u'endpoints_links': []
}],
u'serviceCatalog_links': [{
u'rel': u'next',
u'href': (u'https://identity.host/v2.0/endpoints?'
u'session=2hfh8Ar&marker=2')
}]
}
}