refactor(azurerm): remove arm from resources repo
parent
9350edc28a
commit
0cf7f8b4a0
|
@ -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 {
|
||||
|
|
|
@ -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"),
|
||||
|
|
Loading…
Reference in New Issue