Skip to content

chore(ruleset): clean up data source state integration test data#199

Merged
musa-cf merged 1 commit intomainfrom
ruleset-datasource-cleanup
Feb 24, 2026
Merged

chore(ruleset): clean up data source state integration test data#199
musa-cf merged 1 commit intomainfrom
ruleset-datasource-cleanup

Conversation

@musa-cf
Copy link
Copy Markdown
Collaborator

@musa-cf musa-cf commented Feb 24, 2026

Test Output

internal/datasources/rulesets

=== RUN   TestV4ToV5Transformation
=== RUN   TestV4ToV5Transformation/ConfigTransformation
=== RUN   TestV4ToV5Transformation/ConfigTransformation/Basic_datasource_with_account_id_only
=== RUN   TestV4ToV5Transformation/ConfigTransformation/Datasource_with_zone_id
=== RUN   TestV4ToV5Transformation/ConfigTransformation/Remove_filter_block
=== RUN   TestV4ToV5Transformation/ConfigTransformation/Remove_include_rules_field
=== RUN   TestV4ToV5Transformation/ConfigTransformation/Remove_both_filter_and_include_rules
=== RUN   TestV4ToV5Transformation/ConfigTransformation/Variable_references_preserved
=== RUN   TestV4ToV5Transformation/ConfigTransformation/Multiple_datasources_in_one_file
=== RUN   TestV4ToV5Transformation/ConfigTransformation/Empty_filter_block
=== RUN   TestV4ToV5Transformation/ConfigTransformation/Complex_filter_with_all_fields
=== RUN   TestV4ToV5Transformation/ConfigTransformation/Filter_with_partial_fields
=== RUN   TestV4ToV5Transformation/ConfigTransformation/Include_rules_with_false_value
--- PASS: TestV4ToV5Transformation (0.00s)
    --- PASS: TestV4ToV5Transformation/ConfigTransformation (0.00s)
        --- PASS: TestV4ToV5Transformation/ConfigTransformation/Basic_datasource_with_account_id_only (0.00s)
        --- PASS: TestV4ToV5Transformation/ConfigTransformation/Datasource_with_zone_id (0.00s)
        --- PASS: TestV4ToV5Transformation/ConfigTransformation/Remove_filter_block (0.00s)
        --- PASS: TestV4ToV5Transformation/ConfigTransformation/Remove_include_rules_field (0.00s)
        --- PASS: TestV4ToV5Transformation/ConfigTransformation/Remove_both_filter_and_include_rules (0.00s)
        --- PASS: TestV4ToV5Transformation/ConfigTransformation/Variable_references_preserved (0.00s)
        --- PASS: TestV4ToV5Transformation/ConfigTransformation/Multiple_datasources_in_one_file (0.00s)
        --- PASS: TestV4ToV5Transformation/ConfigTransformation/Empty_filter_block (0.00s)
        --- PASS: TestV4ToV5Transformation/ConfigTransformation/Complex_filter_with_all_fields (0.00s)
        --- PASS: TestV4ToV5Transformation/ConfigTransformation/Filter_with_partial_fields (0.00s)
        --- PASS: TestV4ToV5Transformation/ConfigTransformation/Include_rules_with_false_value (0.00s)
=== RUN   TestV4ToV5TransformationState_Removed
    v4_to_v5_test.go:168: State transformation tests removed - state migration is now handled by provider's StateUpgraders
--- SKIP: TestV4ToV5TransformationState_Removed (0.00s)
PASS
ok  	github.com/cloudflare/tf-migrate/internal/datasources/rulesets

rulesets_datasource

TEST_RESOURCE=rulesets_datasource go test -v ./integration/v4_to_v5/ -run "TestSingleResource"

=== RUN   TestSingleResource
=== RUN   TestSingleResource/rulesets_datasource
--- PASS: TestSingleResource (0.78s)
    --- PASS: TestSingleResource/rulesets_datasource (0.78s)
PASS
ok  	github.com/cloudflare/tf-migrate/integration/v4_to_v5	1.170s

@musa-cf musa-cf self-assigned this Feb 24, 2026
@musa-cf musa-cf merged commit 9d91a2e into main Feb 24, 2026
9 checks passed
@musa-cf musa-cf deleted the ruleset-datasource-cleanup branch February 24, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants