Skip to content

Commit 171848c

Browse files
committed
Add test changes to waypoint resources
1 parent 4d4c0bc commit 171848c

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

internal/provider/waypoint/resource_waypoint_add_on_test.go

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func TestAcc_Waypoint_AddOnInputVariables(t *testing.T) {
6666
testAccCheckWaypointAddOnExists(t, resourceName, &addOnModel),
6767
testAccCheckWaypointAddOnName(t, &addOnModel, addOnName),
6868
resource.TestCheckResourceAttr(resourceName, "name", addOnName),
69-
resource.TestCheckResourceAttr(resourceName, "add_on_input_variables.#", "2"),
69+
resource.TestCheckResourceAttr(resourceName, "add_on_input_variables.#", "3"),
7070
resource.TestCheckResourceAttr(resourceName, "add_on_input_variables.0.name", "faction"),
7171
resource.TestCheckResourceAttr(resourceName, "add_on_input_variables.0.value", "brotherhood-of-steel"),
7272
resource.TestCheckResourceAttr(resourceName, "add_on_input_variables.0.variable_type", "string"),
@@ -289,6 +289,11 @@ resource "hcp_waypoint_add_on_definition" "test_var_opts" {
289289
"institute"
290290
]
291291
},
292+
{
293+
name = "vault_dweller_shelter"
294+
variable_type = "string"
295+
user_editable = true
296+
}
292297
]
293298
}
294299
@@ -307,6 +312,11 @@ resource "hcp_waypoint_add_on" "test_var_opts" {
307312
name = "vault_dweller_name"
308313
variable_type = "string"
309314
value = "courier"
315+
},
316+
{
317+
name = "vault_dweller_shelter"
318+
variable_type = "string"
319+
user_editable = true
310320
}
311321
]
312322
}
@@ -365,6 +375,11 @@ resource "hcp_waypoint_add_on_definition" "test_var_opts" {
365375
"brotherhood-of-steel",
366376
]
367377
},
378+
{
379+
name = "vault_dweller_shelter"
380+
variable_type = "string"
381+
user_editable = true
382+
}
368383
]
369384
}
370385

internal/provider/waypoint/resource_waypoint_application_test.go

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func TestAcc_Waypoint_ApplicationInputVariables(t *testing.T) {
6161
testAccCheckWaypointApplicationExists(t, resourceName, &applicationModel),
6262
testAccCheckWaypointApplicationName(t, &applicationModel, applicationName),
6363
resource.TestCheckResourceAttr(resourceName, "name", applicationName),
64-
resource.TestCheckResourceAttr(resourceName, "application_input_variables.#", "2"),
64+
resource.TestCheckResourceAttr(resourceName, "application_input_variables.#", "3"),
6565
resource.TestCheckResourceAttr(resourceName, "application_input_variables.0.name", "faction"),
6666
resource.TestCheckResourceAttr(resourceName, "application_input_variables.0.value", "brotherhood-of-steel"),
6767
resource.TestCheckResourceAttr(resourceName, "application_input_variables.0.variable_type", "string"),
@@ -305,6 +305,11 @@ resource "hcp_waypoint_template" "test_var_opts" {
305305
"institute"
306306
]
307307
},
308+
{
309+
name = "vault_dweller_shelter"
310+
variable_type = "string"
311+
user_editable = true
312+
}
308313
]
309314
}
310315
@@ -322,6 +327,11 @@ resource "hcp_waypoint_application" "test_var_opts" {
322327
name = "vault_dweller_name"
323328
variable_type = "string"
324329
value = "courier"
330+
},
331+
{
332+
name = "vault_dweller_shelter"
333+
variable_type = "string"
334+
user_editable = true
325335
}
326336
]
327337
}`, tempName, appName)
@@ -358,6 +368,11 @@ resource "hcp_waypoint_template" "test_var_opts" {
358368
"brotherhood-of-steel",
359369
]
360370
},
371+
{
372+
name = "vault_dweller_shelter"
373+
variable_type = "string"
374+
user_editable = true
375+
}
361376
]
362377
}
363378

0 commit comments

Comments
 (0)