Skip to content

feat: add Terraform resource name validation with tests (#1) - #6

Open
lb1192176991-lab wants to merge 8 commits into
123a-bcd:mainfrom
lb1192176991-lab:feat/terraform-validate-1
Open

feat: add Terraform resource name validation with tests (#1)#6
lb1192176991-lab wants to merge 8 commits into
123a-bcd:mainfrom
lb1192176991-lab:feat/terraform-validate-1

Conversation

@lb1192176991-lab

Copy link
Copy Markdown

Summary

Validate ResourceToImport.resource_name before terraform import. Reject hyphenated/invalid identifiers.

Changes

  1. tools/terraform_import.py — validate_resource_name(), filter_invalid_resources()
  2. backend/conftest.py + backend/.coveragerc + pytest.ini — test configuration
  3. 33 tests across 7 test classes

Testing

Covers valid names, hyphenated, empty, digit-start, special chars, unicode, CSV handling.

Checklist

  • Relevant modules build locally
  • Tests pass locally
  • Diagnostic build log committed
  • Documentation updated
  • Changes scoped to PR purpose

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.

1 participant