Commit 7fc9d20
committed
test: verify RDS index query template includes authFilter
Add a unit test that directly exercises RDSIndexVTLGenerator and asserts
the generated VTL contains ctx.stash.authFilter forwarding to the SQL
Lambda payload. This ensures the authorization bypass cannot regress.1 parent 201ffe5 commit 7fc9d20
1 file changed
Lines changed: 24 additions & 0 deletions
File tree
- packages/amplify-graphql-index-transformer/src/__tests__
packages/amplify-graphql-index-transformer/src/__tests__/amplify-graphql-index-transformer.test.ts
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1504 | 1504 | | |
1505 | 1505 | | |
1506 | 1506 | | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
1507 | 1531 | | |
1508 | 1532 | | |
1509 | 1533 | | |
| |||
0 commit comments