From e164858120c1e220ff5e2aae5c34a9acd4b06b7f Mon Sep 17 00:00:00 2001 From: Stephen Sawchuk Date: Tue, 18 Nov 2014 12:39:35 -0500 Subject: [PATCH] add regression test for setMetadata https://github.com/GoogleCloudPlatform/gcloud-node/pull/304#discussion_r20521620 --- regression/storage.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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;