Skip to content

Commit

Permalink
docs: add test customization VM
Browse files Browse the repository at this point in the history
  • Loading branch information
dmicheneau committed May 21, 2024
1 parent 37aa139 commit 7fe1204
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/testsacc/vm_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ func (r *VMResource) Tests(ctx context.Context) map[testsacc.TestName]func(ctx c
"guestinfo.hostname" = {{ get . "name" }}
}
customization = {
enabled = true
auto_generate_password = true
}
}
Expand Down Expand Up @@ -209,7 +210,7 @@ func (r *VMResource) Tests(ctx context.Context) map[testsacc.TestName]func(ctx c
resource.TestCheckResourceAttrSet(resourceName, "settings.affinity_rule_id"),
resource.TestCheckResourceAttrSet(resourceName, "settings.os_type"),

resource.TestCheckResourceAttr(resourceName, "settings.customization.enabled", "false"),
resource.TestCheckResourceAttr(resourceName, "settings.customization.enabled", "true"),
resource.TestCheckResourceAttr(resourceName, "settings.customization.allow_local_admin_password", "false"),
resource.TestCheckResourceAttr(resourceName, "settings.customization.change_sid", "false"),
resource.TestCheckResourceAttr(resourceName, "settings.customization.force", "false"),
Expand Down

0 comments on commit 7fe1204

Please sign in to comment.