From 35d09b246addc29c01bbb5f371d3c13727e27722 Mon Sep 17 00:00:00 2001 From: Haroon-Dweikat-Ntx Date: Tue, 10 Dec 2024 21:05:08 +0200 Subject: [PATCH] rename vmmv2 test case to TestAccV2Nutanix... --- ..._source_nutanix_image_placement_v2_test.go | 2 +- ...source_nutanix_image_placements_v2_test.go | 4 +-- .../data_source_nutanix_image_v2_test.go | 2 +- .../data_source_nutanix_images_v2_test.go | 4 +-- ...source_nutanix_ngt_configration_v2_test.go | 4 +-- .../data_source_nutanix_template_v2_test.go | 6 ++-- .../data_source_nutanix_templates_v2_test.go | 12 +++---- ..._source_nutanix_virtual_machine_v2_test.go | 8 ++--- ...source_nutanix_virtual_machines_v2_test.go | 6 ++-- ...esource_nutanix_image_placement_v2_test.go | 4 +-- .../vmmv2/resource_nutanix_image_v2_test.go | 10 +++--- ...resource_nutanix_ngt_insert_iso_v2_test.go | 8 ++--- ...source_nutanix_ngt_installation_v2_test.go | 10 +++--- .../resource_nutanix_ngt_upgrade_v2_test.go | 6 ++-- ...esource_nutanix_template_deploy_v2_test.go | 2 +- ...tanix_template_guest_os_actions_v2_test.go | 2 +- .../resource_nutanix_template_v2_test.go | 10 +++--- ...esource_nutanix_virtual_machine_v2_test.go | 34 +++++++++---------- ...e_nutanix_vm_cdrom_insert_eject_v2_test.go | 2 +- ..._from_recovery_points_replicate_v2_test.go | 2 +- .../resource_nutanix_vms_clone_v2_test.go | 4 +-- .../resource_nutanix_vms_gc_update_v2_test.go | 2 +- ...ix_vms_network_device_assign_ip_v2_test.go | 2 +- ...anix_vms_network_device_migrate_v2_test.go | 2 +- ...ce_nutanix_vms_shutdown_actions_v2_test.go | 4 +-- 25 files changed, 76 insertions(+), 76 deletions(-) diff --git a/nutanix/services/vmmv2/data_source_nutanix_image_placement_v2_test.go b/nutanix/services/vmmv2/data_source_nutanix_image_placement_v2_test.go index 73bac9606..2d72f40f9 100644 --- a/nutanix/services/vmmv2/data_source_nutanix_image_placement_v2_test.go +++ b/nutanix/services/vmmv2/data_source_nutanix_image_placement_v2_test.go @@ -11,7 +11,7 @@ import ( const datasourceNameImagePlacementPolicy = "data.nutanix_image_placement_policy_v2.test" -func TestAccNutanixImagePlacementV2DataSource_Basic(t *testing.T) { +func TestAccV2NutanixImagePlacementDatasource_Basic(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("test-ipp-%d", r) desc := "test ipp description" diff --git a/nutanix/services/vmmv2/data_source_nutanix_image_placements_v2_test.go b/nutanix/services/vmmv2/data_source_nutanix_image_placements_v2_test.go index e5a82225d..a2c894dce 100644 --- a/nutanix/services/vmmv2/data_source_nutanix_image_placements_v2_test.go +++ b/nutanix/services/vmmv2/data_source_nutanix_image_placements_v2_test.go @@ -11,7 +11,7 @@ import ( const datasourceNameImagePlacements = "data.nutanix_image_placement_policies_v2.test" -func TestAccNutanixImagePlacementsV2DataSource_Basic(t *testing.T) { +func TestAccV2NutanixImagePlacementsDatasource_Basic(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("test-ipp-%d", r) desc := "test ipp description" @@ -29,7 +29,7 @@ func TestAccNutanixImagePlacementsV2DataSource_Basic(t *testing.T) { }) } -func TestAccNutanixImagePlacementsV2DataSource_WithFilters(t *testing.T) { +func TestAccV2NutanixImagePlacementsDatasource_WithFilters(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("test-ipp-%d", r) desc := "test ipp description" diff --git a/nutanix/services/vmmv2/data_source_nutanix_image_v2_test.go b/nutanix/services/vmmv2/data_source_nutanix_image_v2_test.go index 280892548..669579bb2 100644 --- a/nutanix/services/vmmv2/data_source_nutanix_image_v2_test.go +++ b/nutanix/services/vmmv2/data_source_nutanix_image_v2_test.go @@ -11,7 +11,7 @@ import ( const datasourceNameImage = "data.nutanix_image_v2.test" -func TestAccNutanixImageV2DataSource_Basic(t *testing.T) { +func TestAccV2NutanixImageDatasource_Basic(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("test-image-%d", r) desc := "test image description" diff --git a/nutanix/services/vmmv2/data_source_nutanix_images_v2_test.go b/nutanix/services/vmmv2/data_source_nutanix_images_v2_test.go index e57291598..667dc72b8 100644 --- a/nutanix/services/vmmv2/data_source_nutanix_images_v2_test.go +++ b/nutanix/services/vmmv2/data_source_nutanix_images_v2_test.go @@ -11,7 +11,7 @@ import ( const datasourceNameImages = "data.nutanix_images_v2.test" -func TestAccNutanixImagesV2DataSource_Basic(t *testing.T) { +func TestAccV2NutanixImagesDatasource_Basic(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("test-image-%d", r) desc := "test image description" @@ -30,7 +30,7 @@ func TestAccNutanixImagesV2DataSource_Basic(t *testing.T) { }) } -func TestAccNutanixImagesV2DataSource_WithFilters(t *testing.T) { +func TestAccV2NutanixImagesDatasource_WithFilters(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("test-image-%d", r) desc := "test image description" diff --git a/nutanix/services/vmmv2/data_source_nutanix_ngt_configration_v2_test.go b/nutanix/services/vmmv2/data_source_nutanix_ngt_configration_v2_test.go index 01f28db9b..b77e23701 100644 --- a/nutanix/services/vmmv2/data_source_nutanix_ngt_configration_v2_test.go +++ b/nutanix/services/vmmv2/data_source_nutanix_ngt_configration_v2_test.go @@ -10,7 +10,7 @@ import ( const datasourceNameNGTConfiguration = "data.nutanix_ngt_configuration_v2.test" -func TestAccNutanixNGTConfigurationV2Datasource_GetNGTConfigurationForVM(t *testing.T) { +func TestAccV2NutanixNGTConfigurationDatasource_GetNGTConfigurationForVM(t *testing.T) { resource.Test(t, resource.TestCase{ PreCheck: func() { acc.TestAccFoundationPreCheck(t) }, Providers: acc.TestAccProviders, @@ -34,7 +34,7 @@ func TestAccNutanixNGTConfigurationV2Datasource_GetNGTConfigurationForVM(t *test }) } -func TestAccNutanixNGTConfigurationV4Datasource_GetNGTConfigurationForVM_NGTNotInstalled(t *testing.T) { +func TestAccV2NutanixNGTConfigurationV4Datasource_GetNGTConfigurationForVM_NGTNotInstalled(t *testing.T) { resource.Test(t, resource.TestCase{ PreCheck: func() { acc.TestAccFoundationPreCheck(t) }, Providers: acc.TestAccProviders, diff --git a/nutanix/services/vmmv2/data_source_nutanix_template_v2_test.go b/nutanix/services/vmmv2/data_source_nutanix_template_v2_test.go index dd021da8e..b677cd6ef 100644 --- a/nutanix/services/vmmv2/data_source_nutanix_template_v2_test.go +++ b/nutanix/services/vmmv2/data_source_nutanix_template_v2_test.go @@ -11,7 +11,7 @@ import ( const datasourceNameTemplate = "data.nutanix_template_v2.test" -func TestAccNutanixTemplateV2Datasource_Basic(t *testing.T) { +func TestAccV2NutanixTemplateDatasource_Basic(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("tf-test-vm-%d", r) desc := "test vm description" @@ -22,7 +22,7 @@ func TestAccNutanixTemplateV2Datasource_Basic(t *testing.T) { Providers: acc.TestAccProviders, Steps: []resource.TestStep{ { - Config: testTemplateV2DatasourceConfig(name, desc, templateName, templateDesc), + Config: testTemplateDatasourceConfig(name, desc, templateName, templateDesc), Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttrSet(datasourceNameTemplate, "ext_id"), resource.TestCheckResourceAttr(datasourceNameTemplate, "template_name", templateName), @@ -40,7 +40,7 @@ func TestAccNutanixTemplateV2Datasource_Basic(t *testing.T) { }) } -func testTemplateV2DatasourceConfig(name, desc, tempName, tempDesc string) string { +func testTemplateDatasourceConfig(name, desc, tempName, tempDesc string) string { return fmt.Sprintf(` data "nutanix_clusters_v2" "clusters" {} diff --git a/nutanix/services/vmmv2/data_source_nutanix_templates_v2_test.go b/nutanix/services/vmmv2/data_source_nutanix_templates_v2_test.go index b1ef2ae6b..a3e69b9e2 100644 --- a/nutanix/services/vmmv2/data_source_nutanix_templates_v2_test.go +++ b/nutanix/services/vmmv2/data_source_nutanix_templates_v2_test.go @@ -11,7 +11,7 @@ import ( const datasourceNameTemplates = "data.nutanix_templates_v2.test" -func TestAccNutanixTemplateV2Datasource_ListAllTemplates(t *testing.T) { +func TestAccV2NutanixTemplateDatasource_ListAllTemplates(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("tf-test-vm-%d", r) desc := "test vm description" @@ -22,7 +22,7 @@ func TestAccNutanixTemplateV2Datasource_ListAllTemplates(t *testing.T) { Providers: acc.TestAccProviders, Steps: []resource.TestStep{ { - Config: testTemplatesV2DatasourceConfig(name, desc, templateName, templateDesc), + Config: testTemplatesDatasourceConfig(name, desc, templateName, templateDesc), Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttrSet(datasourceNameTemplates, "templates.#"), ), @@ -31,7 +31,7 @@ func TestAccNutanixTemplateV2Datasource_ListAllTemplates(t *testing.T) { }) } -func TestAccNutanixTemplateV2Datasource_ListAllTemplatesWithFilter(t *testing.T) { +func TestAccV2NutanixTemplateDatasource_ListAllTemplatesWithFilter(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("tf-test-vm-%d", r) desc := "test vm description" @@ -42,7 +42,7 @@ func TestAccNutanixTemplateV2Datasource_ListAllTemplatesWithFilter(t *testing.T) Providers: acc.TestAccProviders, Steps: []resource.TestStep{ { - Config: testTemplatesV2DatasourceFilterConfig(name, desc, templateName, templateDesc), + Config: testTemplatesDatasourceFilterConfig(name, desc, templateName, templateDesc), Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttrSet(datasourceNameTemplates, "templates.#"), resource.TestCheckResourceAttrSet(datasourceNameTemplates, "templates.0.ext_id"), @@ -61,7 +61,7 @@ func TestAccNutanixTemplateV2Datasource_ListAllTemplatesWithFilter(t *testing.T) }) } -func testTemplatesV2DatasourceConfig(name, desc, tempName, tempDesc string) string { +func testTemplatesDatasourceConfig(name, desc, tempName, tempDesc string) string { return fmt.Sprintf(` data "nutanix_clusters_v2" "clusters" {} @@ -101,7 +101,7 @@ func testTemplatesV2DatasourceConfig(name, desc, tempName, tempDesc string) stri `, name, desc, tempName, tempDesc) } -func testTemplatesV2DatasourceFilterConfig(name, desc, tempName, tempDesc string) string { +func testTemplatesDatasourceFilterConfig(name, desc, tempName, tempDesc string) string { return fmt.Sprintf(` data "nutanix_clusters_v2" "clusters" {} diff --git a/nutanix/services/vmmv2/data_source_nutanix_virtual_machine_v2_test.go b/nutanix/services/vmmv2/data_source_nutanix_virtual_machine_v2_test.go index 7a82012e0..60b6af24b 100644 --- a/nutanix/services/vmmv2/data_source_nutanix_virtual_machine_v2_test.go +++ b/nutanix/services/vmmv2/data_source_nutanix_virtual_machine_v2_test.go @@ -11,7 +11,7 @@ import ( const datasourceNameVMs = "data.nutanix_virtual_machine_v2.test" -func TestAccNutanixVmsV2DataSource_Basic(t *testing.T) { +func TestAccV2NutanixVmsDatasource_Basic(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("tf-test-vm-%d", r) desc := "test vm description" @@ -37,7 +37,7 @@ func TestAccNutanixVmsV2DataSource_Basic(t *testing.T) { }) } -func TestAccNutanixVmsV2DataSource_WithConfig(t *testing.T) { +func TestAccV2NutanixVmsDatasource_WithConfig(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("tf-test-vm-%d", r) desc := "test vm description" @@ -68,7 +68,7 @@ func TestAccNutanixVmsV2DataSource_WithConfig(t *testing.T) { }) } -func TestAccNutanixVmsV2DataSource_WithCdromConfig(t *testing.T) { +func TestAccV2NutanixVmsDatasource_WithCdromConfig(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("tf-test-vm-%d", r) desc := "test vm description" @@ -102,7 +102,7 @@ func TestAccNutanixVmsV2DataSource_WithCdromConfig(t *testing.T) { }) } -func TestAccNutanixVmsV2DataSource_WithCdromBackingInfo(t *testing.T) { +func TestAccV2NutanixVmsDatasource_WithCdromBackingInfo(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("tf-test-vm-%d", r) desc := "test vm description" diff --git a/nutanix/services/vmmv2/data_source_nutanix_virtual_machines_v2_test.go b/nutanix/services/vmmv2/data_source_nutanix_virtual_machines_v2_test.go index a6636deb1..3ac9e435b 100644 --- a/nutanix/services/vmmv2/data_source_nutanix_virtual_machines_v2_test.go +++ b/nutanix/services/vmmv2/data_source_nutanix_virtual_machines_v2_test.go @@ -9,7 +9,7 @@ import ( const datasourceNameVM = "data.nutanix_virtual_machines_v2.test" -func TestAccNutanixVmsV2DataSource_List(t *testing.T) { +func TestAccV2NutanixVmsDatasource_List(t *testing.T) { resource.Test(t, resource.TestCase{ PreCheck: func() { acc.TestAccPreCheck(t) }, Providers: acc.TestAccProviders, @@ -24,7 +24,7 @@ func TestAccNutanixVmsV2DataSource_List(t *testing.T) { }) } -func TestAccNutanixVmsV2DataSource_ListWithFilters(t *testing.T) { +func TestAccV2NutanixVmsDatasource_ListWithFilters(t *testing.T) { resource.Test(t, resource.TestCase{ PreCheck: func() { acc.TestAccPreCheck(t) }, Providers: acc.TestAccProviders, @@ -40,7 +40,7 @@ func TestAccNutanixVmsV2DataSource_ListWithFilters(t *testing.T) { }) } -func TestAccNutanixVmsV2DataSource_ListWithFilterName(t *testing.T) { +func TestAccV2NutanixVmsDatasource_ListWithFilterName(t *testing.T) { resource.Test(t, resource.TestCase{ PreCheck: func() { acc.TestAccPreCheck(t) }, Providers: acc.TestAccProviders, diff --git a/nutanix/services/vmmv2/resource_nutanix_image_placement_v2_test.go b/nutanix/services/vmmv2/resource_nutanix_image_placement_v2_test.go index 654f7dfc9..6bd89fc87 100644 --- a/nutanix/services/vmmv2/resource_nutanix_image_placement_v2_test.go +++ b/nutanix/services/vmmv2/resource_nutanix_image_placement_v2_test.go @@ -11,7 +11,7 @@ import ( const resourceNameImagePlacementPolicy = "nutanix_image_placement_policy_v2.test" -func TestAccNutanixImagesPlacementPolicyV2Resource_Basic(t *testing.T) { +func TestAccV2NutanixImagesPlacementPolicyResource_Basic(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("test-ipp-%d", r) desc := "test ipp description" @@ -35,7 +35,7 @@ func TestAccNutanixImagesPlacementPolicyV2Resource_Basic(t *testing.T) { }) } -func TestAccNutanixImagesPlacementPolicyV2Resource_SuspendAndResume(t *testing.T) { +func TestAccV2NutanixImagesPlacementPolicyResource_SuspendAndResume(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("test-ipp-%d", r) desc := "test ipp description" diff --git a/nutanix/services/vmmv2/resource_nutanix_image_v2_test.go b/nutanix/services/vmmv2/resource_nutanix_image_v2_test.go index bb8d10444..130058de2 100644 --- a/nutanix/services/vmmv2/resource_nutanix_image_v2_test.go +++ b/nutanix/services/vmmv2/resource_nutanix_image_v2_test.go @@ -11,7 +11,7 @@ import ( const resourceNameImage = "nutanix_images_v2.test" -func TestAccNutanixImagesV2Resource_Basic(t *testing.T) { +func TestAccV2NutanixImagesResource_Basic(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("test-image-%d", r) desc := "test image description" @@ -36,7 +36,7 @@ func TestAccNutanixImagesV2Resource_Basic(t *testing.T) { }) } -func TestAccNutanixImagesV2Resource_WithUpdate(t *testing.T) { +func TestAccV2NutanixImagesResource_WithUpdate(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("test-image-%d", r) updatedName := fmt.Sprintf("test-image-updated-%d", r) @@ -76,7 +76,7 @@ func TestAccNutanixImagesV2Resource_WithUpdate(t *testing.T) { }) } -func TestAccNutanixImagesV2Resource_WithDisk(t *testing.T) { +func TestAccV2NutanixImagesResource_WithDisk(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("test-image-%d", r) desc := "test image description" @@ -101,7 +101,7 @@ func TestAccNutanixImagesV2Resource_WithDisk(t *testing.T) { }) } -func TestAccNutanixImagesV2Resource_WithVMDiskSource(t *testing.T) { +func TestAccV2NutanixImagesResource_WithVMDiskSource(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("test-image-%d", r) desc := "test image description" @@ -126,7 +126,7 @@ func TestAccNutanixImagesV2Resource_WithVMDiskSource(t *testing.T) { }) } -func TestAccNutanixImagesV2Resource_WithClusterExts(t *testing.T) { +func TestAccV2NutanixImagesResource_WithClusterExts(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("test-image-%d", r) desc := "test image description" diff --git a/nutanix/services/vmmv2/resource_nutanix_ngt_insert_iso_v2_test.go b/nutanix/services/vmmv2/resource_nutanix_ngt_insert_iso_v2_test.go index 3d60f527a..baf1fc7b2 100644 --- a/nutanix/services/vmmv2/resource_nutanix_ngt_insert_iso_v2_test.go +++ b/nutanix/services/vmmv2/resource_nutanix_ngt_insert_iso_v2_test.go @@ -16,7 +16,7 @@ const ( timeSleep = 2 * time.Minute ) -func TestAccNutanixNGTInsertIsoV2Resource_InsertNGTIsoIntoVmHaveNGT(t *testing.T) { +func TestAccV2NutanixNGTInsertIsoResource_InsertNGTIsoIntoVmHaveNGT(t *testing.T) { r := acctest.RandInt() vmName := fmt.Sprintf("tf-test-vm-ngt-%d", r) @@ -74,7 +74,7 @@ func TestAccNutanixNGTInsertIsoV2Resource_InsertNGTIsoIntoVmHaveNGT(t *testing.T }) } -func TestAccNutanixNGTInsertIsoV2Resource_InsertNGTIsoIntoVmHaveNGTIsConfigFalse(t *testing.T) { +func TestAccV2NutanixNGTInsertIsoResource_InsertNGTIsoIntoVmHaveNGTIsConfigFalse(t *testing.T) { r := acctest.RandInt() vmName := fmt.Sprintf("tf-test-vm-ngt-%d", r) @@ -132,7 +132,7 @@ func TestAccNutanixNGTInsertIsoV2Resource_InsertNGTIsoIntoVmHaveNGTIsConfigFalse }) } -func TestAccNutanixNGTInsertIsoV2Resource_InsertNGTIsoIntoVmDoseNotHaveNGT(t *testing.T) { +func TestAccV2NutanixNGTInsertIsoResource_InsertNGTIsoIntoVmDoseNotHaveNGT(t *testing.T) { r := acctest.RandInt() vmName := fmt.Sprintf("tf-test-vm-ngt-%d", r) @@ -167,7 +167,7 @@ func TestAccNutanixNGTInsertIsoV2Resource_InsertNGTIsoIntoVmDoseNotHaveNGT(t *te }) } -func TestAccNutanixNGTInsertIsoV2Resource_InsertNGTIsoIntoVmDoseNotHaveNGTIsConfigFalse(t *testing.T) { +func TestAccV2NutanixNGTInsertIsoResource_InsertNGTIsoIntoVmDoseNotHaveNGTIsConfigFalse(t *testing.T) { r := acctest.RandInt() vmName := fmt.Sprintf("tf-test-vm-ngt-%d", r) diff --git a/nutanix/services/vmmv2/resource_nutanix_ngt_installation_v2_test.go b/nutanix/services/vmmv2/resource_nutanix_ngt_installation_v2_test.go index 4a4693d42..09c88eb54 100644 --- a/nutanix/services/vmmv2/resource_nutanix_ngt_installation_v2_test.go +++ b/nutanix/services/vmmv2/resource_nutanix_ngt_installation_v2_test.go @@ -15,7 +15,7 @@ const ( resourceNameNGTInstallation = "nutanix_ngt_installation_v2.test" ) -func TestAccNutanixNGTInstallationV2Resource_InstallNGTWithRebootPreferenceSetToIMMEDIATE(t *testing.T) { +func TestAccV2NutanixNGTInstallationResource_InstallNGTWithRebootPreferenceSetToIMMEDIATE(t *testing.T) { r := acctest.RandInt() vmName := fmt.Sprintf("tf-test-vm-ngt-%d", r) @@ -67,7 +67,7 @@ func TestAccNutanixNGTInstallationV2Resource_InstallNGTWithRebootPreferenceSetTo }) } -func TestAccNutanixNGTInstallationV2Resource_InstallNGTWithRebootPreferenceSetToLATER(t *testing.T) { +func TestAccV2NutanixNGTInstallationResource_InstallNGTWithRebootPreferenceSetToLATER(t *testing.T) { r := acctest.RandInt() vmName := fmt.Sprintf("tf-test-vm-ngt-%d", r) @@ -101,7 +101,7 @@ func TestAccNutanixNGTInstallationV2Resource_InstallNGTWithRebootPreferenceSetTo }) } -func TestAccNutanixNGTInstallationV2Resource_InstallNGTWithRebootPreferenceSetToSKIP(t *testing.T) { +func TestAccV2NutanixNGTInstallationResource_InstallNGTWithRebootPreferenceSetToSKIP(t *testing.T) { r := acctest.RandInt() vmName := fmt.Sprintf("tf-test-vm-ngt-%d", r) @@ -133,7 +133,7 @@ func TestAccNutanixNGTInstallationV2Resource_InstallNGTWithRebootPreferenceSetTo }) } -func TestAccNutanixNGTInstallationV2Resource_WithNoVmExtId(t *testing.T) { +func TestAccV2NutanixNGTInstallationResource_WithNoVmExtId(t *testing.T) { resource.Test(t, resource.TestCase{ PreCheck: func() { acc.TestAccPreCheck(t) }, Providers: acc.TestAccProviders, @@ -146,7 +146,7 @@ func TestAccNutanixNGTInstallationV2Resource_WithNoVmExtId(t *testing.T) { }) } -func TestAccNutanixNGTInstallationV2Resource_UpdateNGT(t *testing.T) { +func TestAccV2NutanixNGTInstallationResource_UpdateNGT(t *testing.T) { r := acctest.RandInt() vmName := fmt.Sprintf("tf-test-vm-ngt-%d", r) diff --git a/nutanix/services/vmmv2/resource_nutanix_ngt_upgrade_v2_test.go b/nutanix/services/vmmv2/resource_nutanix_ngt_upgrade_v2_test.go index 775c38bee..cba001b2c 100644 --- a/nutanix/services/vmmv2/resource_nutanix_ngt_upgrade_v2_test.go +++ b/nutanix/services/vmmv2/resource_nutanix_ngt_upgrade_v2_test.go @@ -12,7 +12,7 @@ import ( const resourceNameNGTUpgrade = "nutanix_ngt_upgrade_v2.test" -func TestAccNutanixNGTUpgradeV2Resource_UpgradeNGTWithRebootPreferenceSetToIMMEDIATE(t *testing.T) { +func TestAccV2NutanixNGTUpgradeResource_UpgradeNGTWithRebootPreferenceSetToIMMEDIATE(t *testing.T) { t.Skip("This test case is skip since NGT upgrade is failing from v4 api: https://jira.nutanix.com/browse/ENG-665842") r := acctest.RandInt() vmName := fmt.Sprintf("tf-test-vm-ngt-%d", r) @@ -69,7 +69,7 @@ func TestAccNutanixNGTUpgradeV2Resource_UpgradeNGTWithRebootPreferenceSetToIMMED }) } -func TestAccNutanixNGTUpgradeV2Resource_UpgradeNGTWithRebootPreferenceSetToLATER(t *testing.T) { +func TestAccV2NutanixNGTUpgradeResource_UpgradeNGTWithRebootPreferenceSetToLATER(t *testing.T) { t.Skip("This test case is skip since NGT upgrade is failing from v4 api: https://jira.nutanix.com/browse/ENG-665842") r := acctest.RandInt() vmName := fmt.Sprintf("tf-test-vm-ngt-%d", r) @@ -126,7 +126,7 @@ func TestAccNutanixNGTUpgradeV2Resource_UpgradeNGTWithRebootPreferenceSetToLATER }) } -func TestAccNutanixNGTUpgradeV2Resource_UpgradeNGTWithRebootPreferenceSetToSKIP(t *testing.T) { +func TestAccV2NutanixNGTUpgradeResource_UpgradeNGTWithRebootPreferenceSetToSKIP(t *testing.T) { t.Skip("This test case is skip since NGT upgrade is failing from v4 api: https://jira.nutanix.com/browse/ENG-665842") r := acctest.RandInt() vmName := fmt.Sprintf("tf-test-vm-ngt-%d", r) diff --git a/nutanix/services/vmmv2/resource_nutanix_template_deploy_v2_test.go b/nutanix/services/vmmv2/resource_nutanix_template_deploy_v2_test.go index e970ca4c3..af0a8fe01 100644 --- a/nutanix/services/vmmv2/resource_nutanix_template_deploy_v2_test.go +++ b/nutanix/services/vmmv2/resource_nutanix_template_deploy_v2_test.go @@ -11,7 +11,7 @@ import ( const resourceNameTemplateDeploy = "nutanix_deploy_templates_v2.test" -func TestAccNutanixTemplateDeployV2Resource_Basic(t *testing.T) { +func TestAccV2NutanixTemplateDeployResource_Basic(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("tf-test-vm-%d", r) desc := "test vm description" diff --git a/nutanix/services/vmmv2/resource_nutanix_template_guest_os_actions_v2_test.go b/nutanix/services/vmmv2/resource_nutanix_template_guest_os_actions_v2_test.go index 115be6463..7807945e2 100644 --- a/nutanix/services/vmmv2/resource_nutanix_template_guest_os_actions_v2_test.go +++ b/nutanix/services/vmmv2/resource_nutanix_template_guest_os_actions_v2_test.go @@ -11,7 +11,7 @@ import ( const resourceNameTemplateActions = "nutanix_template_guest_os_actions_v2.test" -func TestAccNutanixTemplateActionsV2Resource_Basic(t *testing.T) { +func TestAccV2NutanixTemplateActionsResource_Basic(t *testing.T) { //t.Skip("Skipping test as it is not dependent on template") r := acctest.RandInt() name := fmt.Sprintf("tf-test-vm-%d", r) diff --git a/nutanix/services/vmmv2/resource_nutanix_template_v2_test.go b/nutanix/services/vmmv2/resource_nutanix_template_v2_test.go index 3ddb8bf7a..ff97c8491 100644 --- a/nutanix/services/vmmv2/resource_nutanix_template_v2_test.go +++ b/nutanix/services/vmmv2/resource_nutanix_template_v2_test.go @@ -15,7 +15,7 @@ import ( const resourceNameTemplate = "nutanix_template_v2.test" -func TestAccNutanixTemplateV2Resource_Basic(t *testing.T) { +func TestAccV2NutanixTemplateResource_Basic(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("tf-test-vm-%d", r) desc := "test vm description" @@ -94,7 +94,7 @@ func TestAccNutanixTemplateV2Resource_Basic(t *testing.T) { }) } -func TestAccNutanixTemplateV2Resource_RequiredVersionNameOnUpdate(t *testing.T) { +func TestAccV2NutanixTemplateResource_RequiredVersionNameOnUpdate(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("tf-test-vm-%d", r) desc := "test vm description" @@ -127,7 +127,7 @@ func TestAccNutanixTemplateV2Resource_RequiredVersionNameOnUpdate(t *testing.T) }) } -func TestAccNutanixTemplateV2Resource_RequiredVersionDescriptionOnUpdate(t *testing.T) { +func TestAccV2NutanixTemplateResource_RequiredVersionDescriptionOnUpdate(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("tf-test-vm-%d", r) desc := "test vm description" @@ -160,7 +160,7 @@ func TestAccNutanixTemplateV2Resource_RequiredVersionDescriptionOnUpdate(t *test }) } -func TestAccNutanixTemplateV2Resource_GuestCustomizationSysprep(t *testing.T) { +func TestAccV2NutanixTemplateResource_GuestCustomizationSysprep(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("tf-test-vm-%d", r) desc := "test vm description" @@ -193,7 +193,7 @@ func TestAccNutanixTemplateV2Resource_GuestCustomizationSysprep(t *testing.T) { }) } -func TestAccNutanixTemplateV2Resource_GuestCustomizationCloudInit(t *testing.T) { +func TestAccV2NutanixTemplateResource_GuestCustomizationCloudInit(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("tf-test-vm-%d", r) desc := "test vm description" diff --git a/nutanix/services/vmmv2/resource_nutanix_virtual_machine_v2_test.go b/nutanix/services/vmmv2/resource_nutanix_virtual_machine_v2_test.go index 8656fc560..6aebb6b4a 100644 --- a/nutanix/services/vmmv2/resource_nutanix_virtual_machine_v2_test.go +++ b/nutanix/services/vmmv2/resource_nutanix_virtual_machine_v2_test.go @@ -18,7 +18,7 @@ var ( filepath = path + "/../../../test_config_v2.json" ) -func TestAccNutanixVmsV2Resource_Basic(t *testing.T) { +func TestAccV2NutanixVmsResource_Basic(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("tf-test-vm-%d", r) desc := "test vm description" @@ -44,7 +44,7 @@ func TestAccNutanixVmsV2Resource_Basic(t *testing.T) { }) } -func TestAccNutanixVmsV2Resource_BasicUpdate(t *testing.T) { +func TestAccV2NutanixVmsResource_BasicUpdate(t *testing.T) { r := acctest.RandInt() desc := "test vm description" updatedDesc := "test vm updated description" @@ -86,7 +86,7 @@ func TestAccNutanixVmsV2Resource_BasicUpdate(t *testing.T) { }) } -func TestAccNutanixVmsV2Resource_WithDisk(t *testing.T) { +func TestAccV2NutanixVmsResource_WithDisk(t *testing.T) { r := acctest.RandInt() desc := "test vm description" resource.Test(t, resource.TestCase{ @@ -114,7 +114,7 @@ func TestAccNutanixVmsV2Resource_WithDisk(t *testing.T) { }) } -func TestAccNutanixVmsV2Resource_DiskWithDatasource(t *testing.T) { +func TestAccV2NutanixVmsResource_DiskWithDatasource(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("tf-test-vm-%d", r) desc := "test vm description" @@ -145,7 +145,7 @@ func TestAccNutanixVmsV2Resource_DiskWithDatasource(t *testing.T) { }) } -func TestAccNutanixVmsV2Resource_WithNic(t *testing.T) { +func TestAccV2NutanixVmsResource_WithNic(t *testing.T) { r := acctest.RandInt() desc := "test vm description" resource.Test(t, resource.TestCase{ @@ -176,7 +176,7 @@ func TestAccNutanixVmsV2Resource_WithNic(t *testing.T) { }) } -func TestAccNutanixVmsV2Resource_WithNicTrunk(t *testing.T) { +func TestAccV2NutanixVmsResource_WithNicTrunk(t *testing.T) { r := acctest.RandInt() desc := "test vm description" resource.Test(t, resource.TestCase{ @@ -208,7 +208,7 @@ func TestAccNutanixVmsV2Resource_WithNicTrunk(t *testing.T) { }) } -func TestAccNutanixVmsV2Resource_WithLegacyBootOrder(t *testing.T) { +func TestAccV2NutanixVmsResource_WithLegacyBootOrder(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("tf-test-vm-%d", r) desc := "test vm description" @@ -258,7 +258,7 @@ func TestAccNutanixVmsV2Resource_WithLegacyBootOrder(t *testing.T) { }) } -func TestAccNutanixVmsV2Resource_WithCdrom(t *testing.T) { +func TestAccV2NutanixVmsResource_WithCdrom(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("tf-test-vm-%d", r) desc := "test vm description" @@ -287,7 +287,7 @@ func TestAccNutanixVmsV2Resource_WithCdrom(t *testing.T) { }) } -func TestAccNutanixVmsV2Resource_WithCdromIDE(t *testing.T) { +func TestAccV2NutanixVmsResource_WithCdromIDE(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("tf-test-vm-%d", r) desc := "test vm description" @@ -316,7 +316,7 @@ func TestAccNutanixVmsV2Resource_WithCdromIDE(t *testing.T) { }) } -func TestAccNutanixVmsV2Resource_WithCdromBackingInfo(t *testing.T) { +func TestAccV2NutanixVmsResource_WithCdromBackingInfo(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("tf-test-vm-%d", r) desc := "test vm description" @@ -346,7 +346,7 @@ func TestAccNutanixVmsV2Resource_WithCdromBackingInfo(t *testing.T) { }) } -func TestAccNutanixVmsV2Resource_WithCloudInit(t *testing.T) { +func TestAccV2NutanixVmsResource_WithCloudInit(t *testing.T) { r := acctest.RandInt() desc := "test vm description" resource.Test(t, resource.TestCase{ @@ -377,7 +377,7 @@ func TestAccNutanixVmsV2Resource_WithCloudInit(t *testing.T) { }) } -func TestAccNutanixVmsV2Resource_WithCloudInitWithCustomKeys(t *testing.T) { +func TestAccV2NutanixVmsResource_WithCloudInitWithCustomKeys(t *testing.T) { t.Skip("Failing due to issue with cloud_init user_data & custom_keys") r := acctest.RandInt() desc := "test vm description" @@ -409,7 +409,7 @@ func TestAccNutanixVmsV2Resource_WithCloudInitWithCustomKeys(t *testing.T) { }) } -func TestAccNutanixVmsV2Resource_UpdateDiskNics(t *testing.T) { +func TestAccV2NutanixVmsResource_UpdateDiskNics(t *testing.T) { r := acctest.RandInt() desc := "test vm description" updatedDesc := "test vm updated description" @@ -465,7 +465,7 @@ func TestAccNutanixVmsV2Resource_UpdateDiskNics(t *testing.T) { }) } -func TestAccNutanixVmsV2Resource_WithLegacyBootDevice(t *testing.T) { +func TestAccV2NutanixVmsResource_WithLegacyBootDevice(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("tf-test-vm-%d", r) desc := "test vm description" @@ -496,7 +496,7 @@ func TestAccNutanixVmsV2Resource_WithLegacyBootDevice(t *testing.T) { }) } -func TestAccNutanixVmsV2Resource_WithCategories(t *testing.T) { +func TestAccV2NutanixVmsResource_WithCategories(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("tf-test-vm-%d", r) desc := "test vm description" @@ -540,7 +540,7 @@ func TestAccNutanixVmsV2Resource_WithCategories(t *testing.T) { }) } -func TestAccNutanixVmsV2Resource_WithSerialPorts(t *testing.T) { +func TestAccV2NutanixVmsResource_WithSerialPorts(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("tf-test-vm-%d", r) desc := "test vm description" @@ -585,7 +585,7 @@ func TestAccNutanixVmsV2Resource_WithSerialPorts(t *testing.T) { }) } -func TestAccNutanixVmsV2Resource_WithGpus(t *testing.T) { +func TestAccV2NutanixVmsResource_WithGpus(t *testing.T) { if testVars.VMM.GPUS[0].Vendor == "" && testVars.VMM.GPUS[0].Mode == "" && testVars.VMM.GPUS[0].DeviceID == 0 { t.Skip("Skipping test as no GPU devices found") } diff --git a/nutanix/services/vmmv2/resource_nutanix_vm_cdrom_insert_eject_v2_test.go b/nutanix/services/vmmv2/resource_nutanix_vm_cdrom_insert_eject_v2_test.go index ecfaa19ac..2ba8497ec 100644 --- a/nutanix/services/vmmv2/resource_nutanix_vm_cdrom_insert_eject_v2_test.go +++ b/nutanix/services/vmmv2/resource_nutanix_vm_cdrom_insert_eject_v2_test.go @@ -11,7 +11,7 @@ import ( const resourceNameVMCdromInsertEject = "nutanix_vm_cdrom_insert_eject_v2.test" -func TestAccNutanixVmsCdromInsertEjectV2Resource_Basic(t *testing.T) { +func TestAccV2NutanixVmsCdromInsertEjectResource_Basic(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("tf-test-vm-%d", r) desc := "test vm description" diff --git a/nutanix/services/vmmv2/resource_nutanix_vm_revert_from_recovery_points_replicate_v2_test.go b/nutanix/services/vmmv2/resource_nutanix_vm_revert_from_recovery_points_replicate_v2_test.go index 3fe8d5a11..041e56fb9 100644 --- a/nutanix/services/vmmv2/resource_nutanix_vm_revert_from_recovery_points_replicate_v2_test.go +++ b/nutanix/services/vmmv2/resource_nutanix_vm_revert_from_recovery_points_replicate_v2_test.go @@ -16,7 +16,7 @@ const ( resourceNameRevertVM = "nutanix_vm_revert_v2.test" ) -func TestAccNutanixRecoveryPointRestoreV2Resource_basic(t *testing.T) { +func TestAccV2NutanixRecoveryPointRestoreResource_basic(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("tf-test-recovery-point-%d", r) diff --git a/nutanix/services/vmmv2/resource_nutanix_vms_clone_v2_test.go b/nutanix/services/vmmv2/resource_nutanix_vms_clone_v2_test.go index 0e893a9d4..22fe14705 100644 --- a/nutanix/services/vmmv2/resource_nutanix_vms_clone_v2_test.go +++ b/nutanix/services/vmmv2/resource_nutanix_vms_clone_v2_test.go @@ -11,7 +11,7 @@ import ( const resourceNameVMClone = "nutanix_vm_clone_v2.test" -func TestAccNutanixVmsCloneV2Resource_Basic(t *testing.T) { +func TestAccV2NutanixVmsCloneResource_Basic(t *testing.T) { // t.Skip("Skipping test as it requires Clone") r := acctest.RandInt() name := fmt.Sprintf("tf-test-vm-%d", r) @@ -34,7 +34,7 @@ func TestAccNutanixVmsCloneV2Resource_Basic(t *testing.T) { }) } -func TestAccNutanixVmsCloneV2Resource_WithGuestCustomization(t *testing.T) { +func TestAccV2NutanixVmsCloneResource_WithGuestCustomization(t *testing.T) { // t.Skip("Skipping test as it requires Clone") r := acctest.RandInt() name := fmt.Sprintf("tf-test-vm-%d", r) diff --git a/nutanix/services/vmmv2/resource_nutanix_vms_gc_update_v2_test.go b/nutanix/services/vmmv2/resource_nutanix_vms_gc_update_v2_test.go index 4cd6d57cb..19e03d66d 100644 --- a/nutanix/services/vmmv2/resource_nutanix_vms_gc_update_v2_test.go +++ b/nutanix/services/vmmv2/resource_nutanix_vms_gc_update_v2_test.go @@ -11,7 +11,7 @@ import ( const resourceNameVMGCUpdate = "nutanix_vm_gc_update_v2.test" -func TestAccNutanixVmsGCUpdateV2Resource_Basic(t *testing.T) { +func TestAccV2NutanixVmsGCUpdateResource_Basic(t *testing.T) { // t.Skip("Skipping test as it requires GCUpdate") r := acctest.RandInt() vmName := fmt.Sprintf("tf-test-vm-%d", r) diff --git a/nutanix/services/vmmv2/resource_nutanix_vms_network_device_assign_ip_v2_test.go b/nutanix/services/vmmv2/resource_nutanix_vms_network_device_assign_ip_v2_test.go index f224caf34..4915ee664 100644 --- a/nutanix/services/vmmv2/resource_nutanix_vms_network_device_assign_ip_v2_test.go +++ b/nutanix/services/vmmv2/resource_nutanix_vms_network_device_assign_ip_v2_test.go @@ -11,7 +11,7 @@ import ( const resourceNameVMNetworkDeviceAssignIP = "nutanix_vm_network_device_assign_ip_v2.test" -func TestAccNutanixVmsNetworkDeviceAssignIpV2Resource_Basic(t *testing.T) { +func TestAccV2NutanixVmsNetworkDeviceAssignIpResource_Basic(t *testing.T) { r := acctest.RandInt() vmName := fmt.Sprintf("test-vm-%d", r) diff --git a/nutanix/services/vmmv2/resource_nutanix_vms_network_device_migrate_v2_test.go b/nutanix/services/vmmv2/resource_nutanix_vms_network_device_migrate_v2_test.go index ead09c7b0..d07a1ef2f 100644 --- a/nutanix/services/vmmv2/resource_nutanix_vms_network_device_migrate_v2_test.go +++ b/nutanix/services/vmmv2/resource_nutanix_vms_network_device_migrate_v2_test.go @@ -11,7 +11,7 @@ import ( const resourceNameVMNetworkDeviceMigrate = "nutanix_vm_network_device_migrate_v2.test" -func TestAccNutanixVmsNetworkDeviceMigrateV2Resource_Basic(t *testing.T) { +func TestAccV2NutanixVmsNetworkDeviceMigrateResource_Basic(t *testing.T) { r := acctest.RandInt() vmName := fmt.Sprintf("nic-vm-%d", r) resource.Test(t, resource.TestCase{ diff --git a/nutanix/services/vmmv2/resource_nutanix_vms_shutdown_actions_v2_test.go b/nutanix/services/vmmv2/resource_nutanix_vms_shutdown_actions_v2_test.go index 4675f7579..e863605ae 100644 --- a/nutanix/services/vmmv2/resource_nutanix_vms_shutdown_actions_v2_test.go +++ b/nutanix/services/vmmv2/resource_nutanix_vms_shutdown_actions_v2_test.go @@ -17,7 +17,7 @@ import ( const resourceNameVMShutdown = "data.nutanix_virtual_machine_v2.test" -func TestAccNutanixVmsShutdownV2Resource_Basic(t *testing.T) { +func TestAccV2NutanixVmsShutdownResource_Basic(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("tf-test-vm-%d", r) desc := "test vm power action " @@ -181,7 +181,7 @@ func testAccCheckNutanixVirtualMachineV2Destroy(s *terraform.State) error { return nil } -func TestAccNutanixVmsShutdownV2Resource_WithError(t *testing.T) { +func TestAccV2NutanixVmsShutdownResource_WithError(t *testing.T) { r := acctest.RandInt() name := fmt.Sprintf("tf-test-vm-%d", r) desc := "test vm description"