This is the account name (subdomain) you chose when creating the account,
e.g. ``mydomain``.
-``msazure.container_name = (string, required)``
+``msazure.container = (string, required)``
This controls which container will be used to hold shares. The Tahoe-LAFS
storage server will only modify and access objects in the configured
Configure the MS Azure storage container.
"""
account_name = config.get_config("storage", "msazure.account_name")
- container_name = config.get_config("storage", "msazure.container_name")
+ container_name = config.get_config("storage", "msazure.container")
account_key = config.get_private_config("msazure_account_key")
return MSAzureStorageContainer(account_name, account_key, container_name)
def test_msazure_config_required(self):
"""
- account_name and container_name are all required by MS Azure
- configuration.
+ account_name and container are all required by MS Azure configuration.
"""
configs = ["mszure.account_name = theaccount",
- "msazure.container_name = bucket"]
+ "msazure.container = bucket"]
for i in range(len(configs)):
basedir = self.mktemp()
os.mkdir(basedir)
"[storage]\n" +
"enabled = true\n" +
"backend = cloud.msazure\n" +
- "googlestorage.account_name = theaccount\n" +
- "googlestorage.container_name = bucket\n")
+ "msazure.account_name = theaccount\n" +
+ "msazure.container = bucket\n")
self.failUnlessRaises(MissingConfigEntry, client.Client, basedir)
@mock.patch('allmydata.storage.backends.cloud.msazure.msazure_container.MSAzureStorageContainer')
"enabled = true\n" +
"backend = cloud.msazure\n" +
"msazure.account_name = theaccount\n" +
- "msazure.container_name = bucket\n")
+ "msazure.container = bucket\n")
c = client.Client(basedir)
server = c.getServiceNamed("storage")
self.failUnless(isinstance(server.backend, CloudBackend), server.backend)