From 0cf7f8b4a0a98a13c5d81c171f2c327bcf615999 Mon Sep 17 00:00:00 2001 From: sundowndev Date: Mon, 4 Oct 2021 13:59:13 +0200 Subject: [PATCH] refactor(azurerm): remove arm from resources repo --- pkg/remote/azurerm/init.go | 4 ++-- pkg/remote/azurerm/repository/resources_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/remote/azurerm/init.go b/pkg/remote/azurerm/init.go index 76c59c9c..e3fc8e8f 100644 --- a/pkg/remote/azurerm/init.go +++ b/pkg/remote/azurerm/init.go @@ -43,7 +43,7 @@ func Init( storageAccountRepo := repository.NewStorageRepository(con, providerConfig, c) networkRepo := repository.NewNetworkRepository(con, providerConfig, c) - armResourcesRepo := repository.NewResourcesRepository(con, providerConfig, c) + resourcesRepo := repository.NewResourcesRepository(con, providerConfig, c) providerLibrary.AddProvider(terraform.AZURE, provider) @@ -51,7 +51,7 @@ func Init( remoteLibrary.AddEnumerator(NewAzurermStorageContainerEnumerator(storageAccountRepo, factory)) remoteLibrary.AddEnumerator(NewAzurermVirtualNetworkEnumerator(networkRepo, factory)) remoteLibrary.AddEnumerator(NewAzurermRouteTableEnumerator(networkRepo, factory)) - remoteLibrary.AddEnumerator(NewAzurermResourceGroupEnumerator(armResourcesRepo, factory)) + remoteLibrary.AddEnumerator(NewAzurermResourceGroupEnumerator(resourcesRepo, factory)) err = resourceSchemaRepository.Init(terraform.AZURE, provider.Version(), provider.Schema()) if err != nil { diff --git a/pkg/remote/azurerm/repository/resources_test.go b/pkg/remote/azurerm/repository/resources_test.go index f7a79f08..07b9cd07 100644 --- a/pkg/remote/azurerm/repository/resources_test.go +++ b/pkg/remote/azurerm/repository/resources_test.go @@ -12,7 +12,7 @@ import ( "github.com/stretchr/testify/mock" ) -func Test_ArmResources_ListAllResourceGroups(t *testing.T) { +func Test_Resources_ListAllResourceGroups(t *testing.T) { expectedResults := []*armresources.ResourceGroup{ { ID: to.StringPtr("/subscriptions/008b5f48-1b66-4d92-a6b6-d215b4c9b473/resourceGroups/elie-dev"),