``googlestorage.project_id = (string, required)``
- This is the project number of the project you you created,
+ This is the project number of the project you created,
e.g. ``123456``. You can find this number in the Google Cloud Storage
section of the APIs console (the number following `x-goog-project-id`).
-``googlestorage.bucket_name = (string, required)``
+``googlestorage.bucket = (string, required)``
This controls which bucket (aka container) will be used to hold
shares. The Tahoe-LAFS storage server will only modify and access objects
"""
account_email = config.get_config("storage", "googlestorage.account_email")
private_key = config.get_private_config("googlestorage_private_key")
- bucket_name = config.get_config("storage", "googlestorage.bucket_name")
+ bucket_name = config.get_config("storage", "googlestorage.bucket")
# Only necessary if we do bucket creation/deletion, otherwise can be
# removed:
project_id = config.get_config("storage", "googlestorage.project_id")
def test_googlestorage_config_required(self):
"""
- account_email, bucket_name and project_id are all required by
+ account_email, bucket and project_id are all required by
googlestorage configuration.
"""
configs = ["googlestorage.account_email = u@example.com",
- "googlestorage.bucket_name = bucket",
+ "googlestorage.bucket = bucket",
"googlestorage.project_id = 456"]
for i in range(len(configs)):
basedir = self.mktemp()
"enabled = true\n" +
"backend = cloud.googlestorage\n" +
"googlestorage.account_email = u@example.com\n" +
- "googlestorage.bucket_name = bucket\n" +
+ "googlestorage.bucket = bucket\n" +
"googlestorage.project_id = 456\n")
self.failUnlessRaises(MissingConfigEntry, client.Client, basedir)
"enabled = true\n" +
"backend = cloud.googlestorage\n" +
"googlestorage.account_email = u@example.com\n" +
- "googlestorage.bucket_name = bucket\n" +
+ "googlestorage.bucket = bucket\n" +
"googlestorage.project_id = 456\n")
c = client.Client(basedir)
server = c.getServiceNamed("storage")