From 95ec3e96cb5062ec5accedf1abd76122005fd8ed Mon Sep 17 00:00:00 2001 From: Stephen Sawchuk Date: Thu, 15 Jun 2017 10:09:04 -0400 Subject: [PATCH] storage: tests: remove things the system tests account cannot do --- packages/storage/system-test/storage.js | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/packages/storage/system-test/storage.js b/packages/storage/system-test/storage.js index 3324e2e2a62..d15a12c8dc1 100644 --- a/packages/storage/system-test/storage.js +++ b/packages/storage/system-test/storage.js @@ -60,6 +60,13 @@ describe('storage', function() { }); after(function(done) { + if (env.projectId === 'long-door-651') { + // The system tests account is unable to delete files. + // RE: https://github.com/GoogleCloudPlatform/google-cloud-node/issues/2224 + done(); + return; + } + storage.getBuckets({ prefix: TESTS_PREFIX }, function(err, buckets) { @@ -537,15 +544,17 @@ describe('storage', function() { it('should test the iam permissions', function(done) { var testPermissions = [ 'storage.buckets.get', - 'storage.buckets.getIamPolicy' + + // Unable to test. + // RE: https://github.com/GoogleCloudPlatform/google-cloud-node/issues/2224 + // 'storage.buckets.getIamPolicy' ]; bucket.iam.testPermissions(testPermissions, function(err, permissions) { assert.ifError(err); assert.deepEqual(permissions, { - 'storage.buckets.get': true, - 'storage.buckets.getIamPolicy': true + 'storage.buckets.get': true }); done();