DEFAULT_AUTH_URLS = {
- "rackspace": "https://identity.api.rackspacecloud.com/v1.0",
- "rackspace-uk": "https://lon.identity.api.rackspacecloud.com/v1.0",
+ "rackspace.com": "https://identity.api.rackspacecloud.com/v1.0",
+ "rackspace.co.uk": "https://lon.identity.api.rackspacecloud.com/v1.0",
}
def configure_openstack_container(storedir, config):
api_key = config.get_or_create_private_config("openstack_api_key")
- provider = config.get_config("storage", "openstack.provider", "rackspace").lower()
+ provider = config.get_config("storage", "openstack.provider", "rackspace.com").lower()
if provider not in DEFAULT_AUTH_URLS:
raise InvalidValueError("[storage]openstack.provider %r is not recognized\n"
"Valid providers are: %s" % (provider, ", ".join(DEFAULT_AUTH_URLS.keys())))
"[storage]\n" +
"enabled = true\n" +
"backend = cloud.openstack\n" +
- "openstack.provider = rackspace\n" +
+ "openstack.provider = rackspace.com\n" +
"openstack.username = alex\n" +
"openstack.container = test\n")
fileutil.write(os.path.join(basedir, "tahoe.cfg"), config)
c = client.Client(basedir)
- mock_AuthenticationClient.assert_called_with("dummy", "rackspace",
+ mock_AuthenticationClient.assert_called_with("dummy", "rackspace.com",
"https://identity.api.rackspacecloud.com/v1.0",
"alex", 23*60*60)
container_call_args = mock_OpenStackContainer.call_args_list
"enabled = true\n" +
"readonly = true\n" +
"backend = cloud.openstack\n" +
- "openstack.provider = rackspace\n" +
+ "openstack.provider = rackspace.com\n" +
"openstack.username = alex\n" +
"openstack.container = test\n")
self.failUnlessRaises(InvalidValueError, client.Client, basedir)
"[storage]\n" +
"enabled = true\n" +
"backend = cloud.openstack\n" +
- "openstack.provider = rackspace\n" +
+ "openstack.provider = rackspace.com\n" +
"openstack.container = test\n")
self.failUnlessRaises(MissingConfigEntry, client.Client, basedir)
"[storage]\n" +
"enabled = true\n" +
"backend = cloud.openstack\n" +
- "openstack.provider = rackspace\n" +
+ "openstack.provider = rackspace.com\n" +
"openstack.username = alex\n")
self.failUnlessRaises(MissingConfigEntry, client.Client, basedir)
"[storage]\n" +
"enabled = true\n" +
"backend = cloud.openstack\n" +
- "openstack.provider = rackspace\n" +
+ "openstack.provider = rackspace.com\n" +
"openstack.username = alex\n" +
"openstack.container = test\n")
self.failUnlessRaises(MissingConfigEntry, client.Client, basedir)