Skip to content

Commit

Permalink
wp: Fix app vars test.
Browse files Browse the repository at this point in the history
The # of variables has changed since `waypoint_application` is counted among the variables.
  • Loading branch information
paladin-devops committed Jun 4, 2024
1 parent 6d823c5 commit 470d078
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ func TestAccWaypoint_ApplicationInputVariables(t *testing.T) {
resource.TestCheckResourceAttr(resourceName, "application_input_variables.1.name", "vault_dweller_name"),
resource.TestCheckResourceAttr(resourceName, "application_input_variables.1.value", "courier"),
resource.TestCheckResourceAttr(resourceName, "application_input_variables.1.variable_type", "string"),
resource.TestCheckResourceAttr(resourceName, "template_input_variables.#", "1"),
resource.TestCheckResourceAttr(resourceName, "template_input_variables.0.name", "waypoint_application"),
),
},
},
Expand All @@ -89,13 +91,15 @@ func TestAccWaypoint_ApplicationInputVariables_OnTemplate(t *testing.T) {
testAccCheckWaypointApplicationName(t, &applicationModel, applicationName),
resource.TestCheckResourceAttr(resourceName, "name", applicationName),
resource.TestCheckResourceAttr(resourceName, "application_input_variables.#", "0"),
resource.TestCheckResourceAttr(resourceName, "template_input_variables.#", "2"),
resource.TestCheckResourceAttr(resourceName, "template_input_variables.#", "3"),
resource.TestCheckResourceAttr(resourceName, "template_input_variables.0.name", "faction"),
resource.TestCheckResourceAttr(resourceName, "template_input_variables.0.value", "brotherhood-of-steel"),
// resource.TestCheckResourceAttr(resourceName, "template_input_variables.0.variable_type", "string"),
resource.TestCheckResourceAttr(resourceName, "template_input_variables.1.name", "vault_dweller_name"),
resource.TestCheckResourceAttr(resourceName, "template_input_variables.1.value", "lone-wanderer"),
// resource.TestCheckResourceAttr(resourceName, "template_input_variables.1.variable_type", "string"),
resource.TestCheckResourceAttr(resourceName, "template_input_variables.2.name", "waypoint_application"),
resource.TestCheckResourceAttr(resourceName, "template_input_variables.2.value", applicationName),
),
},
},
Expand Down

0 comments on commit 470d078

Please sign in to comment.