Commit d698e73
committed
feat(e2e): add local provider support and update test expectations
Add ability to test migrations with locally built provider binary, and
update test data to reflect current provider behavior.
Changes:
- Add --provider flag to run-e2e-tests script for local provider testing
- Verifies provider binary exists before running tests
- Creates .terraformrc-tf-migrate with dev_overrides automatically
- Applies dev overrides only to v5 tests (v4 uses registry provider)
- Update zero_trust_gateway_policy migration logic for v5 schema changes
- Update test expectations for logpull_retention, zero_trust_gateway_policy,
and zero_trust_list to match current provider output
The --provider flag enables rapid iteration when fixing provider issues:
./scripts/run-e2e-tests --provider /path/to/cloudflare-terraform-next
This allows testing provider fixes during migration without waiting for
provider releases, while keeping v4 tests using stable registry versions.1 parent 4bd12f7 commit d698e73
File tree
15 files changed
+1434
-1482
lines changed- integration/v4_to_v5/testdata
- logpull_retention
- expected
- input
- zero_trust_gateway_policy
- expected
- input
- zero_trust_list
- expected
- input
- internal/resources/zero_trust_gateway_policy
- scripts
15 files changed
+1434
-1482
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | 8 | | |
| |||
0 commit comments