Skip to content

Commit d698e73

Browse files
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

15 files changed

+1434
-1482
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
tf-migrate
22

3+
# Local provider dev overrides
4+
.terraformrc-tf-migrate
5+
36
# E2E test files
47
# Ignore v4 directory except provider.tf and backend.hcl
58
e2e/tf/v4/*

0 commit comments

Comments
 (0)