Skip to content

Commit

Permalink
storage: tests: remove things the system tests account cannot do (#2394)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus authored Jun 15, 2017
1 parent 0a699d3 commit e6f2bb8
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions packages/storage/system-test/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit e6f2bb8

Please sign in to comment.