0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-07-05 13:33:58 +00:00

fix(ci): TestAccResourceVMNetwork acc test fails when run on CI (#1092)

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
This commit is contained in:
Pavel Boldyrev 2024-03-04 20:45:55 -05:00 committed by GitHub
parent cf5e0374b6
commit 61a0fcd936
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,12 +16,14 @@ import (
func TestAccResourceVM(t *testing.T) { func TestAccResourceVM(t *testing.T) {
t.Parallel() t.Parallel()
providerConfig := getProviderConfig(t)
tests := []struct { tests := []struct {
name string name string
step resource.TestStep step resource.TestStep
}{ }{
{"multiline description", resource.TestStep{ {"multiline description", resource.TestStep{
Config: ` Config: providerConfig + `
resource "proxmox_virtual_environment_vm" "test_vm1" { resource "proxmox_virtual_environment_vm" "test_vm1" {
node_name = "pve" node_name = "pve"
started = false started = false
@ -37,7 +39,7 @@ func TestAccResourceVM(t *testing.T) {
), ),
}}, }},
{"single line description", resource.TestStep{ {"single line description", resource.TestStep{
Config: ` Config: providerConfig + `
resource "proxmox_virtual_environment_vm" "test_vm2" { resource "proxmox_virtual_environment_vm" "test_vm2" {
node_name = "pve" node_name = "pve"
started = false started = false
@ -78,12 +80,14 @@ func TestAccResourceVM(t *testing.T) {
} }
func TestAccResourceVMNetwork(t *testing.T) { func TestAccResourceVMNetwork(t *testing.T) {
providerConfig := getProviderConfig(t)
tests := []struct { tests := []struct {
name string name string
step resource.TestStep step resource.TestStep
}{ }{
{"network interfaces", resource.TestStep{ {"network interfaces", resource.TestStep{
Config: ` Config: providerConfig + `
resource "proxmox_virtual_environment_file" "cloud_config" { resource "proxmox_virtual_environment_file" "cloud_config" {
content_type = "snippets" content_type = "snippets"
datastore_id = "local" datastore_id = "local"