feat: flavor_name/image_name migration, tests, CI, and examples#1
Merged
feat: flavor_name/image_name migration, tests, CI, and examples#1
Conversation
Member
AkMo3
commented
Apr 23, 2026
- Replace flavor_id/image_id with flavor_name/image_name throughout
- Add comprehensive unit tests (variables_validation, network_logic, security_groups)
- Add acceptance test suite with Terratest and fixtures pinned to provider v0.3.1
- Add GitHub Actions CI workflow with fmt/validate/unit/acceptance stages
- Add Makefile with test-unit and test-acceptance-local targets
- Add .env.acceptance.example with guidance on quote-free env vars
- Expose public_ipv4/private_ipv4 as sensitive outputs
- Expand README with full usage docs, variable reference, and examples
- Update examples/basic to use flavor_name/image_name variables
- Replace flavor_id/image_id with flavor_name/image_name throughout - Add comprehensive unit tests (variables_validation, network_logic, security_groups) - Add acceptance test suite with Terratest and fixtures pinned to provider v0.3.1 - Add GitHub Actions CI workflow with fmt/validate/unit/acceptance stages - Add Makefile with test-unit and test-acceptance-local targets - Add .env.acceptance.example with guidance on quote-free env vars - Expose public_ipv4/private_ipv4 as sensitive outputs - Expand README with full usage docs, variable reference, and examples - Update examples/basic to use flavor_name/image_name variables
…0.3.1 Variable validation blocks cannot reference other variables in Terraform. Move the create_network/network_id cross-variable check from a validation block on var.network_id to a lifecycle precondition on the instance resource. Update the corresponding test expect_failures target from var.network_id to huddle_cloud_instance.this. Bump required provider version from 0.2.0 to 0.3.1.
terraform test requires the workspace to be initialized even when using mock_provider blocks. Add terraform init -backend=false to the unit-tests job before running terraform test.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.