Skip to content

Commit

Permalink
fix networking test cases name from TestAccNutanix to TestAccV2Nutanix
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroon-Dweikat-Ntx committed Dec 10, 2024
1 parent 059f0dc commit 1f17760
Show file tree
Hide file tree
Showing 26 changed files with 53 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

const datasourceNameaddgrp = "data.nutanix_address_group_v2.test"

func TestAccNutanixAddressGroupV2DataSource_basic(t *testing.T) {
func TestAccV2NutanixAddressGroupDataSource_basic(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("test-service-%d", r)
desc := "test service description"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

const datasourceNameAddGroups = "data.nutanix_address_groups_v2.test"

func TestAccNutanixAddressGroupsV2DataSource_Basic(t *testing.T) {
func TestAccV2NutanixAddressGroupsDataSource_Basic(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("test-service-%d", r)
desc := "test service description"
Expand All @@ -30,7 +30,7 @@ func TestAccNutanixAddressGroupsV2DataSource_Basic(t *testing.T) {
})
}

func TestAccNutanixAddressGroupsV2DataSource_WithFilter(t *testing.T) {
func TestAccV2NutanixAddressGroupsDataSource_WithFilter(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("test-service-%d", r)
desc := "test service description"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

const datasourceNameFIP = "data.nutanix_floating_ip_v2.test"

func TestAccNutanixFloatingIPV2DataSource_basic(t *testing.T) {
func TestAccV2NutanixFloatingIPDataSource_basic(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("tf-test-fip-%d", r)
desc := "test fip description"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

const datasourceNameFIPps = "data.nutanix_floating_ips_v2.test"

func TestAccNutanixFloatingIPsV2DataSource_Basic(t *testing.T) {
func TestAccV2NutanixFloatingIPsDataSource_Basic(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("tf-test-fip-%d", r)
desc := "test fip description"
Expand All @@ -30,7 +30,7 @@ func TestAccNutanixFloatingIPsV2DataSource_Basic(t *testing.T) {
})
}

func TestAccNutanixFloatingIPsV2DataSource_WithFilter(t *testing.T) {
func TestAccV2NutanixFloatingIPsDataSource_WithFilter(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("tf-test-fip-%d", r)
desc := "test fip description"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

const datasourceNameNSPS = "data.nutanix_network_security_policies_v2.test"

func TestAccNutanixNSPsV2DataSource_Basic(t *testing.T) {
func TestAccV2NutanixNSPsDataSource_Basic(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("tf-test-nsp-%d", r)

Expand All @@ -30,7 +30,7 @@ func TestAccNutanixNSPsV2DataSource_Basic(t *testing.T) {
})
}

func TestAccNutanixNSPsV2DataSource_WithFilter(t *testing.T) {
func TestAccV2NutanixNSPsDataSource_WithFilter(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("tf-test-nsp-%d", r)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

const datasourceNameNsp = "data.nutanix_network_security_policy_v2.test"

func TestAccNutanixNSPV2DataSource_Basic(t *testing.T) {
func TestAccV2NutanixNSPDataSource_Basic(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("tf-test-nsp-%d", r)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

const datasourceNamePbr = "data.nutanix_pbr_v2.test"

func TestAccNutanixPbrV2DataSource_Basic(t *testing.T) {
func TestAccV2NutanixPbrDataSource_Basic(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("tf-test-fip-%d", r)
desc := "test fip description"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

const datasourceNamePbrs = "data.nutanix_pbrs_v2.test"

func TestAccNutanixPbrsV2DataSource_Basic(t *testing.T) {
func TestAccV2NutanixPbrsDataSource_Basic(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("tf-test-fip-%d", r)
desc := "test fip description"
Expand All @@ -30,7 +30,7 @@ func TestAccNutanixPbrsV2DataSource_Basic(t *testing.T) {
})
}

func TestAccNutanixPbrsV2DataSource_WithFilter(t *testing.T) {
func TestAccV2NutanixPbrsDataSource_WithFilter(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("tf-test-fip-%d", r)
desc := "test fip description"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

const datasourceNameRouteTable = "data.nutanix_route_table_v2.test"

func TestAccNutanixRouteTableV2DataSource_Basic(t *testing.T) {
func TestAccV2NutanixRouteTableDataSource_Basic(t *testing.T) {
r := acctest.RandInt()

//goland:noinspection ALL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

const datasourceNameRouteTables = "data.nutanix_route_tables_v2.test"

func TestAccNutanixRouteTablesV2DataSource_Basic(t *testing.T) {
func TestAccV2NutanixRouteTablesDataSource_Basic(t *testing.T) {
r := acctest.RandInt()

resource.Test(t, resource.TestCase{
Expand All @@ -28,7 +28,7 @@ func TestAccNutanixRouteTablesV2DataSource_Basic(t *testing.T) {
})
}

func TestAccNutanixRouteTablesV2DataSource_WithFilter(t *testing.T) {
func TestAccV2NutanixRouteTablesDataSource_WithFilter(t *testing.T) {
r := acctest.RandInt()

resource.Test(t, resource.TestCase{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

const datasourceNameRoute = "data.nutanix_route_v2.test"

func TestAccNutanixRouteV2DataSource_Basic(t *testing.T) {
func TestAccV2NutanixRouteDataSource_Basic(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("tf-test-route-%d", r)
desc := "test terraform route description"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

const datasourceNameRoutes = "data.nutanix_routes_v2.test"

func TestAccNutanixRoutesV2DataSource_Basic(t *testing.T) {
func TestAccV2NutanixRoutesDataSource_Basic(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("tf-test-route-%d", r)
desc := "test terraform route description"
Expand All @@ -31,7 +31,7 @@ func TestAccNutanixRoutesV2DataSource_Basic(t *testing.T) {
})
}

func TestAccNutanixRoutesV2DataSource_WithFilter(t *testing.T) {
func TestAccV2NutanixRoutesDataSource_WithFilter(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("tf-test-route-%d", r)
desc := "test terraform route description"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

const datasourceNameServiceGroup = "data.nutanix_service_group_v2.test"

func TestAccNutanixServiceGroupV2DataSource_Basic(t *testing.T) {
func TestAccV2NutanixServiceGroupDataSource_Basic(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("tf-test-service-%d", r)
desc := "test service description"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

const datasourceNameServiceGroups = "data.nutanix_service_groups_v2.test"

func TestAccNutanixServiceGroupsV2DataSource_Basic(t *testing.T) {
func TestAccV2NutanixServiceGroupsDataSource_Basic(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("tf-test-service-%d", r)
desc := "test service description"
Expand All @@ -30,7 +30,7 @@ func TestAccNutanixServiceGroupsV2DataSource_Basic(t *testing.T) {
})
}

func TestAccNutanixServiceGroupsV2DataSource_WithFilter(t *testing.T) {
func TestAccV2NutanixServiceGroupsDataSource_WithFilter(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("tf-test-service-%d", r)
desc := "test service description"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

const datasourceNameSubnet = "data.nutanix_subnet_v2.test"

func TestAccNutanixSubnetV2DataSource_Basic(t *testing.T) {
func TestAccV2NutanixSubnetDataSource_Basic(t *testing.T) {
resource.Test(t, resource.TestCase{
PreCheck: func() { acc.TestAccPreCheck(t) },
Providers: acc.TestAccProviders,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

const datasourceNameSubnets = "data.nutanix_subnets_v2.test"

func TestAccNutanixSubnetsV2DataSource_Basic(t *testing.T) {
func TestAccV2NutanixSubnetsDataSource_Basic(t *testing.T) {
resource.Test(t, resource.TestCase{
PreCheck: func() { acc.TestAccPreCheck(t) },
Providers: acc.TestAccProviders,
Expand All @@ -25,7 +25,7 @@ func TestAccNutanixSubnetsV2DataSource_Basic(t *testing.T) {
})
}

func TestAccNutanixSubnetsV2DataSource_WithFilter(t *testing.T) {
func TestAccV2NutanixSubnetsDataSource_WithFilter(t *testing.T) {
resource.Test(t, resource.TestCase{
PreCheck: func() { acc.TestAccPreCheck(t) },
Providers: acc.TestAccProviders,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

const datasourceNameVPC = "data.nutanix_vpc_v2.test"

func TestAccNutanixVpcV2DataSource_Basic(t *testing.T) {
func TestAccV2NutanixVpcDataSource_Basic(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("test-vpc-%d", r)
desc := "test vpc description"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

const datasourceNameVPCs = "data.nutanix_vpcs_v2.test"

func TestAccNutanixVpcsV2DataSource_Basic(t *testing.T) {
func TestAccV2NutanixVpcsDataSource_Basic(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("test-vpc-%d", r)
desc := "test vpc description"
Expand All @@ -30,7 +30,7 @@ func TestAccNutanixVpcsV2DataSource_Basic(t *testing.T) {
})
}

func TestAccNutanixVpcsV2DataSource_WithLimit(t *testing.T) {
func TestAccV2NutanixVpcsDataSource_WithLimit(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("test-vpc-%d", r)
desc := "test vpc description"
Expand All @@ -49,7 +49,7 @@ func TestAccNutanixVpcsV2DataSource_WithLimit(t *testing.T) {
})
}

func TestAccNutanixVpcsV2DataSource_WithFilter(t *testing.T) {
func TestAccV2NutanixVpcsDataSource_WithFilter(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("test-vpc-%d", r)
desc := "test vpc description"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

const resourceNameAddressGroup = "nutanix_address_groups_v2.test"

func TestAccNutanixAddressGroupV2Resource_Basic(t *testing.T) {
func TestAccV2NutanixAddressGroupResource_Basic(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("tf-test-address-group-%d", r)
desc := "test address group description"
Expand All @@ -34,7 +34,7 @@ func TestAccNutanixAddressGroupV2Resource_Basic(t *testing.T) {
})
}

func TestAccNutanixAddressGroupV2Resource_WithUpdate(t *testing.T) {
func TestAccV2NutanixAddressGroupResource_WithUpdate(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("tf-test-address-group-%d", r)
desc := "test address group description"
Expand Down Expand Up @@ -70,7 +70,7 @@ func TestAccNutanixAddressGroupV2Resource_WithUpdate(t *testing.T) {
})
}

func TestAccNutanixAddressGroupV2Resource_WithIPRanges(t *testing.T) {
func TestAccV2NutanixAddressGroupResource_WithIPRanges(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("test-address-group-%d", r)
desc := "test address group description"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

const resourceNameFIP = "nutanix_floating_ip_v2.test"

func TestAccNutanixFloatingIPV2Resource_Basic(t *testing.T) {
func TestAccV2NutanixFloatingIPResource_Basic(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("test-fip-%d", r)
desc := "test fip description"
Expand Down Expand Up @@ -45,7 +45,7 @@ func TestAccNutanixFloatingIPV2Resource_Basic(t *testing.T) {
})
}

func TestAccNutanixFloatingIPV2Resource_WithVmNICAssociation(t *testing.T) {
func TestAccV2NutanixFloatingIPResource_WithVmNICAssociation(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("test-fip-%d", r)
desc := "test fip description"
Expand All @@ -68,7 +68,7 @@ func TestAccNutanixFloatingIPV2Resource_WithVmNICAssociation(t *testing.T) {
})
}

func TestAccNutanixFloatingIPV2Resource_WithPrivateIpAssociation(t *testing.T) {
func TestAccV2NutanixFloatingIPResource_WithPrivateIpAssociation(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("test-fip-%d", r)
desc := "test fip description"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

const resourceNameNs = "nutanix_network_security_policy_v2.test"

func TestAccNutanixNetworkSecurityV2Resource_Basic(t *testing.T) {
func TestAccV2NutanixNetworkSecurityResource_Basic(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("tf-test-nsp-%d", r)
desc := "test nsp description"
Expand All @@ -34,7 +34,7 @@ func TestAccNutanixNetworkSecurityV2Resource_Basic(t *testing.T) {
})
}

func TestAccNutanixNetworkSecurityV2Resource_WithRules(t *testing.T) {
func TestAccV2NutanixNetworkSecurityResource_WithRules(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("tf-test-nsp-%d", r)
desc := "test nsp description"
Expand All @@ -59,7 +59,7 @@ func TestAccNutanixNetworkSecurityV2Resource_WithRules(t *testing.T) {
})
}

func TestAccNutanixNetworkSecurityV2Resource_WithMultiEnvIsolationRuleSpecRule(t *testing.T) {
func TestAccV2NutanixNetworkSecurityResource_WithMultiEnvIsolationRuleSpecRule(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("tf-test-nsp-%d", r)
desc := "test nsp description"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

const resourceNamePbr = "nutanix_pbr_v2.test"

func TestAccNutanixPbrV2Resource_Basic(t *testing.T) {
func TestAccV2NutanixPbrResource_Basic(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("tf-test-pbr-%d", r)
desc := "test pbr description"
Expand All @@ -35,7 +35,7 @@ func TestAccNutanixPbrV2Resource_Basic(t *testing.T) {
})
}

func TestAccNutanixPbrV2Resource_WithSourceDest(t *testing.T) {
func TestAccV2NutanixPbrResource_WithSourceDest(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("tf-test-pbr-%d", r)
desc := "test pbr description"
Expand All @@ -58,7 +58,7 @@ func TestAccNutanixPbrV2Resource_WithSourceDest(t *testing.T) {
})
}

func TestAccNutanixPbrV2Resource_ErrorWithPriority(t *testing.T) {
func TestAccV2NutanixPbrResource_ErrorWithPriority(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("tf-test-pbr-%d", r)
desc := "test pbr description"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
acc "github.com/terraform-providers/terraform-provider-nutanix/nutanix/acctest"
)

func TestAccNutanixRoutesV2Resource_Basic(t *testing.T) {
func TestAccV2NutanixRoutesResource_Basic(t *testing.T) {
r := acctest.RandInt()
name := fmt.Sprintf("terraform-test-route-%d", r)
desc := "test terraform route description"
Expand Down
Loading

0 comments on commit 1f17760

Please sign in to comment.