From 02e173f1f2f0b0db3b59c475c637d991fa7ed139 Mon Sep 17 00:00:00 2001 From: Ieuan Byers Date: Fri, 6 Sep 2024 11:22:19 +0100 Subject: [PATCH] Add provider to tests --- tests/linux_vm_extensions.tftest.hcl | 7 +++++++ tests/linux_vmss_extensions.tftest.hcl | 7 +++++++ tests/windows_vm_extensions.tftest.hcl | 7 +++++++ tests/windows_vmss_extensions.tftest.hcl | 7 +++++++ 4 files changed, 28 insertions(+) diff --git a/tests/linux_vm_extensions.tftest.hcl b/tests/linux_vm_extensions.tftest.hcl index fd0a46c..f5d1b82 100644 --- a/tests/linux_vm_extensions.tftest.hcl +++ b/tests/linux_vm_extensions.tftest.hcl @@ -17,6 +17,13 @@ provider "azurerm" { skip_provider_registration = true } +provider "azurerm" { + alias = "dcr" + features {} + subscription_id = var.env=="prod" || var.env=="production" ? "8999dec3-0104-4a27-94ee-6588559729d1" : var.env=="sbox" || var.env=="sandbox" ? "bf308a5c-0624-4334-8ff8-8dca9fd43783" : "1c4f0704-a29e-403d-b719-b90c34ef14c9" + skip_provider_registration = true +} + # Default variables for this test variables { env = "nonprod" diff --git a/tests/linux_vmss_extensions.tftest.hcl b/tests/linux_vmss_extensions.tftest.hcl index 876b78a..0a0012f 100644 --- a/tests/linux_vmss_extensions.tftest.hcl +++ b/tests/linux_vmss_extensions.tftest.hcl @@ -17,6 +17,13 @@ provider "azurerm" { skip_provider_registration = true } +provider "azurerm" { + alias = "dcr" + features {} + subscription_id = var.env=="prod" || var.env=="production" ? "8999dec3-0104-4a27-94ee-6588559729d1" : var.env=="sbox" || var.env=="sandbox" ? "bf308a5c-0624-4334-8ff8-8dca9fd43783" : "1c4f0704-a29e-403d-b719-b90c34ef14c9" + skip_provider_registration = true +} + # Default variables for this test variables { env = "nonprod" diff --git a/tests/windows_vm_extensions.tftest.hcl b/tests/windows_vm_extensions.tftest.hcl index db68e75..903eacd 100644 --- a/tests/windows_vm_extensions.tftest.hcl +++ b/tests/windows_vm_extensions.tftest.hcl @@ -17,6 +17,13 @@ provider "azurerm" { skip_provider_registration = true } +provider "azurerm" { + alias = "dcr" + features {} + subscription_id = var.env=="prod" || var.env=="production" ? "8999dec3-0104-4a27-94ee-6588559729d1" : var.env=="sbox" || var.env=="sandbox" ? "bf308a5c-0624-4334-8ff8-8dca9fd43783" : "1c4f0704-a29e-403d-b719-b90c34ef14c9" + skip_provider_registration = true +} + # Default variables for this test variables { env = "nonprod" diff --git a/tests/windows_vmss_extensions.tftest.hcl b/tests/windows_vmss_extensions.tftest.hcl index e1cf907..570fe31 100644 --- a/tests/windows_vmss_extensions.tftest.hcl +++ b/tests/windows_vmss_extensions.tftest.hcl @@ -17,6 +17,13 @@ provider "azurerm" { skip_provider_registration = true } +provider "azurerm" { + alias = "dcr" + features {} + subscription_id = var.env=="prod" || var.env=="production" ? "8999dec3-0104-4a27-94ee-6588559729d1" : var.env=="sbox" || var.env=="sandbox" ? "bf308a5c-0624-4334-8ff8-8dca9fd43783" : "1c4f0704-a29e-403d-b719-b90c34ef14c9" + skip_provider_registration = true +} + # Default variables for this test variables { env = "nonprod"