Skip to content

Commit

Permalink
test: update rest e2e test with multiple paths to test policy slicing
Browse files Browse the repository at this point in the history
  • Loading branch information
yuth committed Jan 26, 2022
1 parent 55002b6 commit 640dd5f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/amplify-e2e-tests/src/__tests__/api_5.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,16 @@ describe('amplify add api (REST)', () => {
restrictAccess: true,
allowGuestUsers: false,
});

// add more paths to and test policy slicing
for (let i = 0; i < 15; i++) {
await addRestApi(projRoot, {
isFirstRestApi: false,
existingLambda: true,
restrictAccess: true,
allowGuestUsers: true,
});
}
await addRestApi(projRoot, { isFirstRestApi: false, existingLambda: true });
await updateAuthAddAdminQueries(projRoot, undefined, {});
await amplifyPushUpdate(projRoot);
Expand Down

0 comments on commit 640dd5f

Please sign in to comment.