Skip to content

Commit 96576e4

Browse files
docs(autoclaim): document the L2->L1 and L2->L2 e2e tests
The Testing section only listed the three L1->L2 e2e tests, predating S15-S19's TestAutoClaimL2ToL1AllowAll and TestAutoClaimL2ToL2AllowAll. Document both, including the AGGKIT_E2E_ENV=op-pp-2chains selector needed for the L2->L2 test's two-rollup environment.
1 parent 326eefb commit 96576e4

1 file changed

Lines changed: 17 additions & 4 deletions

File tree

docs/autoclaim.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -695,13 +695,26 @@ make lint
695695
make test-unit
696696
```
697697

698-
The focused end-to-end tests run against the dockerized e2e environment (see [End-to-end tests](./e2e_tests.md)):
698+
The focused end-to-end tests run against the dockerized e2e environment (see [End-to-end tests](./e2e_tests.md)).
699+
L1-to-L2 and L2-to-L1 run against the single-chain `op-pp` environment (the default):
699700

700701
```bash
701-
go test -v -run 'TestAutoClaimL1ToL2(AllowAll|APIApprove|BasicFilter)' -timeout 30m ./test/e2e
702+
go test -v -run 'TestAutoClaimL1ToL2(AllowAll|APIApprove|BasicFilter)|TestAutoClaimL2ToL1AllowAll' -timeout 30m ./test/e2e
702703
```
703704

704705
`TestAutoClaimL1ToL2AllowAll` exercises the fully automatic L1-to-L2 flow with the `allow-all` policy;
705706
`TestAutoClaimL1ToL2APIApprove` exercises the manual flow, approving the request through the API;
706-
`TestAutoClaimL1ToL2BasicFilter` exercises the `basic-filter` policy with target-chain gas simulation. Mocks for the
707-
interfaces in `autoclaim/types` are generated with `make generate-mocks`.
707+
`TestAutoClaimL1ToL2BasicFilter` exercises the `basic-filter` policy with target-chain gas simulation;
708+
`TestAutoClaimL2ToL1AllowAll` exercises the fully automatic L2-to-L1 flow (L2-to-Lx detector, `RollupPreparer`, an
709+
`NetworkID = 0` claimer).
710+
711+
L2-to-L2 requires the two-rollup `op-pp-2chains` environment, selected via `AGGKIT_E2E_ENV`:
712+
713+
```bash
714+
AGGKIT_E2E_ENV=op-pp-2chains go test -v -run 'TestAutoClaimL2ToL2AllowAll' -timeout 30m ./test/e2e
715+
```
716+
717+
`TestAutoClaimL2ToL2AllowAll` exercises the fully automatic L2-to-L2 flow end to end: the L2-to-Lx detector and
718+
`bridgeservicefinder` resolving both source networks, GER-injection gating on the destination L2, and the
719+
staleness leaf-proof refresh path. Mocks for the interfaces in `autoclaim/types` and the other touched packages are
720+
generated with `make generate-mocks`.

0 commit comments

Comments
 (0)