Skip to content

Bug: fix waypoint_template.variable_options when no options is included #1242

Merged
drewmullen merged 11 commits intomainfrom
bug-waypointtemplate-options
Apr 3, 2025
Merged

Bug: fix waypoint_template.variable_options when no options is included #1242
drewmullen merged 11 commits intomainfrom
bug-waypointtemplate-options

Conversation

@drewmullen
Copy link
Copy Markdown
Collaborator

@drewmullen drewmullen commented Mar 27, 2025

🛠️ Description

Closes: #1240, #1244

Instead of adding a new test I just modified the existing test to validate setting no options works. I'm not able to run acc tests without access to your env.

🏗️ Acceptance tests

  • Are there any feature flags that are required to use this functionality?
  • Have you added an acceptance test for the functionality being added?
  • Have you run the acceptance tests on this branch?

Output from acceptance testing:

See explanation above
...

@drewmullen drewmullen force-pushed the bug-waypointtemplate-options branch 2 times, most recently from b68d2c4 to b020f7b Compare March 31, 2025 13:03
@drewmullen drewmullen force-pushed the bug-waypointtemplate-options branch from b020f7b to c14899a Compare March 31, 2025 13:06
Copy link
Copy Markdown
Contributor

@HenryEstberg HenryEstberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I did some manual testing by pulling your branch which all looked good. As long as the acceptance tests are passing, this is good to go. Thanks for chasing this down!

Copy link
Copy Markdown
Member

@jasonpilz jasonpilz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻

@drewmullen drewmullen merged commit 54ea409 into main Apr 3, 2025
8 checks passed
@drewmullen drewmullen deleted the bug-waypointtemplate-options branch April 3, 2025 15:06
yuriikomarss pushed a commit to cargurus/terraform-provider-hcp that referenced this pull request Apr 29, 2025
…cluded (hashicorp#1242)

* Do not call ElementAs when parsing variable_options.options

* modify existing test to validate no `options` works

* changelog: waypoint_template bug fix

* changelog: waypoint_template bug fix

* update test to include new ncm variable

* using fun variable names out of positive peer pressure

* Add test changes to waypoint resources

* options not required for variablesets

* update docs to show options is optional

* fix test input

* include changelog entry for fix on addon_definition
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.

hcp_waypoint_template fails to create when setting variable_options without options sub parameter

3 participants