0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-06-30 10:33:46 +00:00

chore(vm): add acc test for no cdrom by default (#1523)

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
This commit is contained in:
Pavel Boldyrev 2024-09-08 18:14:16 -04:00 committed by GitHub
parent 84d55cf569
commit 35b6571bf4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,6 +23,17 @@ func TestAccResourceVMCDROM(t *testing.T) {
name string
steps []resource.TestStep
}{
{"default no cdrom", []resource.TestStep{
{
Config: te.RenderConfig(`
resource "proxmox_virtual_environment_vm" "test_cdrom" {
node_name = "{{.NodeName}}"
started = false
name = "test-cdrom"
}`),
Check: NoResourceAttributesSet("proxmox_virtual_environment_vm.test_cdrom", []string{"cdrom.#"}),
},
}},
{"default cdrom", []resource.TestStep{
{
Config: te.RenderConfig(`