Skip to content

Commit

Permalink
remove unused func
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaweitao001 committed Nov 21, 2023
1 parent 3f951d4 commit 73b20a5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 73b20a5

Please sign in to comment.