diff --git a/regression/storage.js b/regression/storage.js index 3816b9a4df4..c4ec247d047 100644 --- a/regression/storage.js +++ b/regression/storage.js @@ -259,6 +259,23 @@ describe('storage', function() { }); }); + describe('bucket metadata', function() { + it('should allow setting metadata on a bucket', function(done) { + var metadata = { + website: { + mainPageSuffix: 'http://fakeuri', + notFoundPage: 'http://fakeuri/404.html' + } + }; + + bucket.setMetadata(metadata, function(err, meta) { + assert.ifError(err); + assert.deepEqual(meta.website, metadata.website); + done(); + }); + }); + }); + describe('write, read, and remove files', function() { before(function(done) { var doneCalled = 0;