Skip to content
This repository was archived by the owner on Jan 7, 2020. It is now read-only.
Open
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
11 changes: 11 additions & 0 deletions test/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,17 @@ describe('Access Container', () => {
});
})));

it.only('request permissons for other app\' own container', async () => {
const primaryAppInfo = { id: 'primary', vendor: '1' };
await createAuthenticatedTestApp(primaryAppInfo, {}, { own_container: true });
const perms = {
'apps/primary': ['Read']
};
const secondaryAppInfo = { id: 'secondary', vendor: '2' };
const secondApp = await createAuthenticatedTestApp(secondaryAppInfo, perms);
await secondApp.auth.getContainersPermissions();
});

it('returns empty object if no containers found for app', async () => {
const appWithNoContainers = await createAuthenticatedTestApp();
const noContainers = await appWithNoContainers.auth.getContainersPermissions();
Expand Down