Clarify storage limits and unify file metadata displays
This commit is contained in:
@@ -76,6 +76,13 @@ test('only the verified active hello account can view and mutate admin APIs; gue
|
||||
}
|
||||
assert.equal((await f.call(admin, '/auth/me')).json().account.administrator, true);
|
||||
assert.equal((await f.call(other, '/auth/me')).json().account.administrator, false);
|
||||
assert.deepEqual((await f.call(admin, '/admin/summary')).json().limits, {
|
||||
perFileBytes: f.cfg.maxFileBytes,
|
||||
accountBytes: f.cfg.userQuota,
|
||||
deviceBytes: f.cfg.guestQuota,
|
||||
devicesTotalBytes: f.cfg.totalGuestQuota,
|
||||
minDiskFreeBytes: f.cfg.minFreeBytes,
|
||||
});
|
||||
assert.equal((await f.call(caseAlias, '/auth/me')).json().account.administrator, false);
|
||||
assert.equal((await patch(f, other, { uploadsPaused: true })).statusCode, 403);
|
||||
assert.equal(
|
||||
|
||||
Reference in New Issue
Block a user