From 73b20a5f114a9dd85a57f74e0801c9aac0c041b1 Mon Sep 17 00:00:00 2001 From: jiawei Date: Tue, 21 Nov 2023 08:23:22 +0000 Subject: [PATCH] remove unused func --- ...est_linux_virtual_machine_resource_test.go | 27 ------------------- ...t_windows_virtual_machine_resource_test.go | 26 ------------------ 2 files changed, 53 deletions(-) diff --git a/internal/services/devtestlabs/dev_test_linux_virtual_machine_resource_test.go b/internal/services/devtestlabs/dev_test_linux_virtual_machine_resource_test.go index 5a50ca2f0789..bff50d475540 100644 --- a/internal/services/devtestlabs/dev_test_linux_virtual_machine_resource_test.go +++ b/internal/services/devtestlabs/dev_test_linux_virtual_machine_resource_test.go @@ -243,33 +243,6 @@ resource "azurerm_dev_test_linux_virtual_machine" "test" { `, template, data.RandomInteger) } -func (DevTestLinuxVirtualMachineResource) storage(data acceptance.TestData, storageType string) string { - template := DevTestLinuxVirtualMachineResource{}.template(data) - return fmt.Sprintf(` -%s - -resource "azurerm_dev_test_linux_virtual_machine" "test" { - name = "acctestvm-vm%d" - lab_name = azurerm_dev_test_lab.test.name - resource_group_name = azurerm_resource_group.test.name - location = azurerm_resource_group.test.location - size = "Standard_B1ms" - username = "acct5stU5er" - password = "Pa$w0rd1234!" - lab_virtual_network_id = azurerm_dev_test_virtual_network.test.id - lab_subnet_name = azurerm_dev_test_virtual_network.test.subnet[0].name - storage_type = "%s" - - gallery_image_reference { - publisher = "Canonical" - offer = "0001-com-ubuntu-server-jammy" - sku = "22_04-lts" - version = "latest" - } -} -`, template, data.RandomInteger, storageType) -} - func (DevTestLinuxVirtualMachineResource) template(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { diff --git a/internal/services/devtestlabs/dev_test_windows_virtual_machine_resource_test.go b/internal/services/devtestlabs/dev_test_windows_virtual_machine_resource_test.go index 0f33f22b9af1..6e2b4767891c 100644 --- a/internal/services/devtestlabs/dev_test_windows_virtual_machine_resource_test.go +++ b/internal/services/devtestlabs/dev_test_windows_virtual_machine_resource_test.go @@ -190,32 +190,6 @@ resource "azurerm_dev_test_windows_virtual_machine" "test" { `, r.template(data), data.RandomInteger%1000000) } -func (r DevTestVirtualMachineResource) storage(data acceptance.TestData, storageType string) string { - return fmt.Sprintf(` -%s - -resource "azurerm_dev_test_windows_virtual_machine" "test" { - name = "acctestvm%d" - lab_name = azurerm_dev_test_lab.test.name - resource_group_name = azurerm_resource_group.test.name - location = azurerm_resource_group.test.location - size = "Standard_B1ms" - username = "acct5stU5er" - password = "Pa$w0rd1234!" - lab_virtual_network_id = azurerm_dev_test_virtual_network.test.id - lab_subnet_name = azurerm_dev_test_virtual_network.test.subnet[0].name - storage_type = "%s" - - gallery_image_reference { - offer = "WindowsServer" - publisher = "MicrosoftWindowsServer" - sku = "2012-Datacenter" - version = "latest" - } -} -`, r.template(data), data.RandomInteger%1000000, storageType) -} - func (DevTestVirtualMachineResource) template(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" {