Skip to content

Commit

Permalink
change prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus committed Jun 23, 2017
1 parent ce01fa7 commit 8f9c8a1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/storage/system-test/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var Bucket = Storage.Bucket;
var File = Storage.File;

describe('storage', function() {
var TESTS_PREFIX = 'gcloud-test-';
var TESTS_PREFIX = 'gcloud-tests-';

var storage = new Storage(env);
var bucket = storage.bucket(generateName());
Expand Down Expand Up @@ -535,7 +535,14 @@ describe('storage', function() {

bucket.iam.setPolicy(policy, function(err, newPolicy) {
assert.ifError(err);
assert.deepEqual(newPolicy.bindings, policy.bindings);

var legacyBucketReaderBinding = newPolicy.bindings
.filter(function(binding) {
return binding.role === 'roles/storage.legacyBucketReader';
})[0];

assert(legacyBucketReaderBinding.members.includes('allUsers'));

done();
});
});
Expand Down

0 comments on commit 8f9c8a1

Please sign in to comment.