trove/etc/tests/localhost.test.conf
Adam Gandelman 21fee8c3c5 Support string flavor IDs
This allows operating on Nova flavors with non-integer ids
by adding a new str_id field to the view that always contains the
unicode flavor id.  The current id field will now contain a value
only when the flavor's id can be cast to int, otherwise it will be
None.  Validation of flavor id when querying a flavor or creating an
instance has been updated to include non-empty strings in addition to
integers.

This will require a patch to python-troveclient to properly fallback
to str_id in absence of the integer id:

    https://review.openstack.org/#/c/123301/

Change-Id: Ie9cfefc6127bc76783cdf9668636342d7590b308
Closes-bug: #1333852
2014-12-23 12:56:19 -08:00

139 lines
3.1 KiB
Plaintext

{
"include-files":["core.test.conf"],
"fake_mode": true,
"dbaas_url":"http://localhost:8779/v1.0",
"version_url":"http://localhost:8779",
"nova_auth_url":"http://localhost:8779/v1.0/auth",
"trove_auth_url":"http://localhost:8779/v1.0/auth",
"trove_client_insecure":false,
"auth_strategy":"fake",
"trove_version":"v1.0",
"trove_api_updated":"2012-08-01T00:00:00Z",
"trove_dns_support":true,
"trove_dns_checker":"trove.tests.fakes.dns.FakeDnsChecker",
"trove_ip_support":false,
"nova_client": null,
"users": [
{
"auth_user":"admin",
"auth_key":"password",
"tenant":"admin-1000",
"tenant_id":"admin-1000",
"requirements": {
"is_admin":true,
"services": ["trove"]
}
},
{
"auth_user":"jsmith",
"auth_key":"password",
"tenant":"2500",
"tenant_id":"2500",
"requirements": {
"is_admin":false,
"services": ["trove"]
}
},
{
"auth_user":"hub_cap",
"auth_key":"password",
"tenant":"3000",
"tenant_id":"3000",
"requirements": {
"is_admin":false,
"services": ["trove"]
}
}
],
"flavors": [
{
"id": 1,
"name": "m1.tiny",
"ram": 512
},
{
"id": 2,
"name": "m1.small",
"ram": 2048
},
{
"id": 3,
"name": "m1.medium",
"ram": 4096
},
{
"id": 4,
"name": "m1.large",
"ram": 8192
},
{
"id": 5,
"name": "m1.xlarge",
"ram": 16384
},
{
"id": 6,
"name": "m1.nano",
"ram": 64
},
{
"id": 7,
"name": "m1.micro",
"ram": 128
},
{
"id": 8,
"name": "m1.rd-smaller",
"ram": 768
},
{
"id": 9,
"name": "tinier",
"ram": 506
},
{
"id": 10,
"name": "m1.rd-tiny",
"ram": 512
},
{
"id": 11,
"name": "eph.rd-tiny",
"ram": 512,
"local_storage": 1
},
{
"id": 12,
"name": "eph.rd-smaller",
"ram": 768,
"local_storage": 2
},
{
"id": "custom",
"name": "custom.small",
"ram": 512,
"local_storage": 1
}
],
"examples": {
"directory":"apidocs/src/samples",
"normal_user_name":"hub_cap",
"normal_user_tenant":"3000",
"admin_user_name":"admin",
"admin_user_tenant":"admin-1000",
"replace_host":"https://troveapi.org",
"replace_dns_hostname": "e09ad9a3f73309469cf1f43d11e79549caf9acf2.troveexampledb.com"
},
"sentinel": null
}