hashicorp / terraform-provider-helm

Terraform Helm provider
https://www.terraform.io/docs/providers/helm/
Mozilla Public License 2.0
1.01k stars 371 forks source link

The current state of helm_template with test passing #1532

Open JaylonmcShan03 opened 1 week ago

JaylonmcShan03 commented 1 week ago

Description

Previously, helm_template failed in the entire test suite. After taking a look, a lot of the Read functions logic didn't address key points, or had logic in incorrect spots. This pr fixes those hiccups, and now we have 3/4 test passing, in the test suite now. The remaining failed test, I will debug and fix in a follow up pr!

The two test configs, needs the set attributes fixed! You might not see the test passing currently, due to me fixing the test config, in a previous pr!

Acceptance tests

Acceptance test:

2024-11-13T07:20:29.805-0600 [DEBUG] sdk.helper_resource: Finished TestCase: test_name=TestAccDataTemplate_kubeVersion
--- PASS: TestAccDataTemplate_kubeVersion (1.76s)
PASS
ok      [github.com/hashicorp/terraform-provider-helm/helm-framework/helm](http://github.com/hashicorp/terraform-provider-helm/helm-framework/helm)

2024-11-13T07:21:23.744-0600 [DEBUG] sdk.helper_resource: Finished TestCase: test_name=TestAccDataTemplate_basic
--- PASS: TestAccDataTemplate_basic (0.44s)
PASS
ok      github.com/hashicorp/terraform-provider-helm/helm-framework/helm        1.507s
jaylon.mcshan@jaylon terraform-provider-helm % 

2024-11-13T07:21:47.503-0600 [DEBUG] sdk.helper_resource: Finished TestCase: test_name=TestAccDataTemplate_templates
--- PASS: TestAccDataTemplate_templates (0.43s)
PASS
ok      github.com/hashicorp/terraform-provider-helm/helm-framework/helm        1.501s

Release Note

Release note for CHANGELOG:

...

References

Community Note