From 85d63e79da2beedd8367ff280c224b8e07383d7f Mon Sep 17 00:00:00 2001 From: Jack Francis Date: Fri, 22 Sep 2023 15:49:13 -0700 Subject: [PATCH] Azure: add ENV coverage to UT Signed-off-by: Jack Francis --- cluster-autoscaler/cloudprovider/azure/azure_manager_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cluster-autoscaler/cloudprovider/azure/azure_manager_test.go b/cluster-autoscaler/cloudprovider/azure/azure_manager_test.go index 130d79bae08b..bfcf0bb02f47 100644 --- a/cluster-autoscaler/cloudprovider/azure/azure_manager_test.go +++ b/cluster-autoscaler/cloudprovider/azure/azure_manager_test.go @@ -423,6 +423,8 @@ func TestCreateAzureManagerWithNilConfig(t *testing.T) { t.Setenv("ARM_CLOUD", "AzurePublicCloud") t.Setenv("LOCATION", "southeastasia") + t.Setenv("AZURE_TENANT_ID", "tenantId") + t.Setenv("AZURE_CLIENT_ID", "aadClientId") t.Setenv("ARM_SUBSCRIPTION_ID", "subscriptionId") t.Setenv("ARM_RESOURCE_GROUP", "resourceGroup") t.Setenv("ARM_TENANT_ID", "tenantId")