Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 10 additions & 15 deletions system-test/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,22 +363,17 @@ describe('storage', () => {
]);
});

it('should make a bucket private', done => {
bucket.makePublic(err => {
assert.ifError(err);
bucket.makePrivate(err => {
assert.ifError(err);
bucket.acl.get({entity: 'allUsers'}, (err, aclObject) => {
assert.strictEqual((err as ApiError).code, 404);
assert.strictEqual(
(err as ApiError).errors![0].reason,
'notFound'
);
assert.strictEqual(aclObject, null);
done();
});
it('should make a bucket private', async () => {
try {
await bucket.makePublic();
await bucket.makePrivate();
assert.rejects(bucket.acl.get({entity: 'allUsers'}), err => {
assert.strictEqual((err as ApiError).code, 404);
assert.strictEqual((err as ApiError).errors![0].reason, 'notFound');
});
});
} catch (err) {
assert.ifError(err);
}
});

it('should make files private', async () => {
Expand Down