Skip to content

feat: flavor_name/image_name migration, tests, CI, and examples#1

Merged
AkMo3 merged 4 commits intomainfrom
resolve-flavors-and-images
Apr 23, 2026
Merged

feat: flavor_name/image_name migration, tests, CI, and examples#1
AkMo3 merged 4 commits intomainfrom
resolve-flavors-and-images

Conversation

@AkMo3
Copy link
Copy Markdown
Member

@AkMo3 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

AkMo3 added 2 commits April 23, 2026 11:52
- 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
AkMo3 added 2 commits April 23, 2026 12:10
…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.
@AkMo3 AkMo3 merged commit d176a16 into main Apr 23, 2026
8 checks passed
@AkMo3 AkMo3 deleted the resolve-flavors-and-images branch April 23, 2026 06:51
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