Skip to content
This repository has been archived by the owner on Jan 7, 2020. It is now read-only.

Commit

Permalink
chore/auth: MAID-2503 throw error if non-standard container is requested
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterlester committed Feb 13, 2018
1 parent a31b8a7 commit c5306f3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/auth.js
Expand Up @@ -19,6 +19,12 @@ describe('auth interface', () => {
.then((resp) => should(resp.uri).startWith('safe-auth:'));
});

it('should throw error if non-standard container is requested', () => {
const containersPermissions = { _app: ['Read', 'Insert', 'ManagePermissions'] };
const result = createAuthenticatedTestApp('_test_scope', containersPermissions, { own_container: true });
should(result).be.rejected();
});

it('is authenticated for testing', () => {
should(app.auth.registered).be.true();
});
Expand Down

0 comments on commit c5306f3

Please sign in to comment.