mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-06-30 18:42:58 +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:
parent
84d55cf569
commit
35b6571bf4
@ -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(`
|
||||
|
Loading…
Reference in New Issue
Block a user