Skip to content

Commit

Permalink
ParallelTest() -> Test() (#1176)
Browse files Browse the repository at this point in the history
  • Loading branch information
yamamoto-febc authored Oct 10, 2024
1 parent b76bb60 commit 3d8cf6a
Show file tree
Hide file tree
Showing 66 changed files with 107 additions and 107 deletions.
4 changes: 2 additions & 2 deletions sakuracloud/data_source_sakuracloud_archive_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (

func TestAccSakuraCloudDataSourceArchive_osType(t *testing.T) {
resourceName := "data.sakuracloud_archive.foobar"
resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
Expand All @@ -38,7 +38,7 @@ func TestAccSakuraCloudDataSourceArchive_osType(t *testing.T) {

func TestAccSakuraCloudDataSourceArchive_withTag(t *testing.T) {
resourceName := "data.sakuracloud_archive.foobar"
resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
Expand Down
2 changes: 1 addition & 1 deletion sakuracloud/data_source_sakuracloud_auto_scale_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func TestAccSakuraCloudDataSourceAutoScale_basic(t *testing.T) {
apiKeyId = "111111111111" // dummy
}

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
Expand Down
2 changes: 1 addition & 1 deletion sakuracloud/data_source_sakuracloud_bridge_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestAccSakuraCloudDataSourceBridge_basic(t *testing.T) {
resourceName := "data.sakuracloud_bridge.foobar"
rand := randomName()

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
Expand Down
2 changes: 1 addition & 1 deletion sakuracloud/data_source_sakuracloud_cdrom_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func TestAccSakuraCloudDataSourceCDROM_basic(t *testing.T) {
resourceName := "data.sakuracloud_cdrom.foobar"
rand := randomName()

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func TestAccSakuraCloudDataSourceCertificateAuthority_basic(t *testing.T) {
prefix := acctest.RandStringFromCharSet(60, acctest.CharSetAlpha)
password := randomPassword()

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func TestAccSakuraCloudDataSourceContainerRegistry_basic(t *testing.T) {
prefix := acctest.RandStringFromCharSet(60, acctest.CharSetAlpha)
password := randomPassword()

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
Expand Down
2 changes: 1 addition & 1 deletion sakuracloud/data_source_sakuracloud_database_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func TestAccSakuraCloudDataSourceDatabase_basic(t *testing.T) {
rand := randomName()
password := randomPassword()

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
Expand Down
2 changes: 1 addition & 1 deletion sakuracloud/data_source_sakuracloud_disk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestAccSakuraCloudDataSourceDisk_basic(t *testing.T) {
resourceName := "data.sakuracloud_disk.foobar"
rand := randomName()

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
Expand Down
2 changes: 1 addition & 1 deletion sakuracloud/data_source_sakuracloud_dns_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func TestAccSakuraCloudDataSourceDNS_basic(t *testing.T) {
resourceName := "data.sakuracloud_dns.foobar"
zone := fmt.Sprintf("%s.com", randomName())

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
Expand Down
2 changes: 1 addition & 1 deletion sakuracloud/data_source_sakuracloud_enhanced_db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func TestAccSakuraCloudDataSourceEnhancedDB_basic(t *testing.T) {
databaseName := acctest.RandStringFromCharSet(10, acctest.CharSetAlpha)
password := randomPassword()

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
Expand Down
2 changes: 1 addition & 1 deletion sakuracloud/data_source_sakuracloud_esme_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func TestAccSakuraCloudDataSourceESME_basic(t *testing.T) {
prefix := acctest.RandStringFromCharSet(60, acctest.CharSetAlpha)
password := randomPassword()

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
Expand Down
2 changes: 1 addition & 1 deletion sakuracloud/data_source_sakuracloud_gslb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestAccSakuraCloudDataSourceGSLB_basic(t *testing.T) {
resourceName := "data.sakuracloud_gslb.foobar"
rand := randomName()

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
Expand Down
2 changes: 1 addition & 1 deletion sakuracloud/data_source_sakuracloud_icon_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestAccSakuraCloudDataSourceIcon_basic(t *testing.T) {
resourceName := "data.sakuracloud_icon.foobar"
rand := randomName()

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
Expand Down
2 changes: 1 addition & 1 deletion sakuracloud/data_source_sakuracloud_internet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestAccSakuraCloudDataSourceInternet_basic(t *testing.T) {
resourceName := "data.sakuracloud_internet.foobar"
rand := randomName()

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
Expand Down
2 changes: 1 addition & 1 deletion sakuracloud/data_source_sakuracloud_load_balancer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func TestAccSakuraCloudDataSourceLoadBalancer_basic(t *testing.T) {
resourceName := "data.sakuracloud_load_balancer.foobar"
rand := randomName()

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
Expand Down
2 changes: 1 addition & 1 deletion sakuracloud/data_source_sakuracloud_local_router_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func TestAccSakuraCloudDataSourceLocalRouter_basic(t *testing.T) {
resourceName := "data.sakuracloud_local_router.foobar"
rand := randomName()

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
Expand Down
2 changes: 1 addition & 1 deletion sakuracloud/data_source_sakuracloud_nfs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestAccSakuraCloudDataSourceNFS_basic(t *testing.T) {
resourceName := "data.sakuracloud_nfs.foobar"
rand := randomName()

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
Expand Down
2 changes: 1 addition & 1 deletion sakuracloud/data_source_sakuracloud_note_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestAccSakuraCloudDataSourceNote_Basic(t *testing.T) {
resourceName := "data.sakuracloud_note.foobar"
rand := randomName()

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
Expand Down
2 changes: 1 addition & 1 deletion sakuracloud/data_source_sakuracloud_packet_filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestAccSakuraCloudDataSourcePacketFilter_basic(t *testing.T) {
resourceName := "data.sakuracloud_packet_filter.foobar"
rand := randomName()

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
Expand Down
2 changes: 1 addition & 1 deletion sakuracloud/data_source_sakuracloud_private_host_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func TestAccSakuraCloudDataSourcePrivateHost_basic(t *testing.T) {

resourceName := "data.sakuracloud_private_host.foobar"
rand := randomName()
resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
Expand Down
2 changes: 1 addition & 1 deletion sakuracloud/data_source_sakuracloud_proxylb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func TestAccSakuraCloudDataSourceProxyLB_basic(t *testing.T) {
ip0 := os.Getenv(envProxyLBRealServerIP0)
ip1 := os.Getenv(envProxyLBRealServerIP1)

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
Expand Down
2 changes: 1 addition & 1 deletion sakuracloud/data_source_sakuracloud_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestAccSakuraCloudDataSourceServer_basic(t *testing.T) {
resourceName := "data.sakuracloud_server.foobar"
rand := randomName()

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestAccSakuraCloudDataSourceServerVNCInfo_basic(t *testing.T) {
resourceName := "data.sakuracloud_server_vnc_info.foobar"
rand := randomName()

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
Expand Down
2 changes: 1 addition & 1 deletion sakuracloud/data_source_sakuracloud_simple_monitor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func TestAccSakuraCloudDataSourceSimpleMonitor_basic(t *testing.T) {
resourceName := "data.sakuracloud_simple_monitor.foobar"
target := fmt.Sprintf("%s.com", randomName())

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
Expand Down
2 changes: 1 addition & 1 deletion sakuracloud/data_source_sakuracloud_ssh_key_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestAccSakuraCloudDataSourceSSHKey_basic(t *testing.T) {
resourceName := "data.sakuracloud_ssh_key.foobar"
rand := randomName()

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
Expand Down
2 changes: 1 addition & 1 deletion sakuracloud/data_source_sakuracloud_subnet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestAccSakuraCloudSubnetDataSource_basic(t *testing.T) {
resourceName := "data.sakuracloud_subnet.foobar"
rand := randomName()

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
Expand Down
2 changes: 1 addition & 1 deletion sakuracloud/data_source_sakuracloud_switch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestAccSakuraCloudDataSourceSwitch_basic(t *testing.T) {
resourceName := "data.sakuracloud_switch.foobar"
rand := randomName()

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
Expand Down
2 changes: 1 addition & 1 deletion sakuracloud/data_source_sakuracloud_vpc_router_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestAccSakuraCloudDataSourceVPCRouter_Basic(t *testing.T) {
resourceName := "data.sakuracloud_vpc_router.foobar"
rand := randomName()

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
Expand Down
4 changes: 2 additions & 2 deletions sakuracloud/data_source_sakuracloud_webaccel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func TestAccSakuraCloudDataSourceWebAccel_ByName(t *testing.T) {

regexpNotEmpty := regexp.MustCompile(".+")

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -76,7 +76,7 @@ func TestAccSakuraCloudDataSourceWebAccel_ByDomain(t *testing.T) {

regexpNotEmpty := regexp.MustCompile(".+")

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
Expand Down
2 changes: 1 addition & 1 deletion sakuracloud/data_source_sakuracloud_zone_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (

func TestAccSakuraCloudDataSourceZone_basic(t *testing.T) {
resourceName := "data.sakuracloud_zone.foobar"
resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
Steps: []resource.TestStep{
Expand Down
2 changes: 1 addition & 1 deletion sakuracloud/resource_sakuracloud_archive_share_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func TestAccSakuraCloudArchiveShare_basic(t *testing.T) {
resourceName := "sakuracloud_archive_share.foobar"
rand := randomName()

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
CheckDestroy: resource.ComposeTestCheckFunc(
Expand Down
8 changes: 4 additions & 4 deletions sakuracloud/resource_sakuracloud_archive_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func TestAccSakuraCloudArchive_basic(t *testing.T) {
rand := randomName()

var archive iaas.Archive
resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
CheckDestroy: resource.ComposeTestCheckFunc(
Expand Down Expand Up @@ -78,7 +78,7 @@ func TestAccSakuraCloudArchive_defaultSize(t *testing.T) {
resourceName := "sakuracloud_archive.foobar"
rand := randomName()

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
CheckDestroy: resource.ComposeTestCheckFunc(
Expand All @@ -103,7 +103,7 @@ func TestAccSakuraCloudArchive_transfer(t *testing.T) {
rand := randomName()

var archive iaas.Archive
resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
CheckDestroy: resource.ComposeTestCheckFunc(
Expand Down Expand Up @@ -141,7 +141,7 @@ func TestAccSakuraCloudArchive_fromShared(t *testing.T) {
rand := randomName()

var archive iaas.Archive
resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
CheckDestroy: resource.ComposeTestCheckFunc(
Expand Down
4 changes: 2 additions & 2 deletions sakuracloud/resource_sakuracloud_auto_backup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func TestAccSakuraCloudAutoBackup_basic(t *testing.T) {
rand := randomName()

var autoBackup iaas.AutoBackup
resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
CheckDestroy: resource.ComposeTestCheckFunc(
Expand Down Expand Up @@ -160,7 +160,7 @@ func TestAccImportSakuraCloudAutoBackup_basic(t *testing.T) {

resourceName := "sakuracloud_auto_backup.foobar"

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
CheckDestroy: resource.ComposeTestCheckFunc(
Expand Down
8 changes: 4 additions & 4 deletions sakuracloud/resource_sakuracloud_auto_scale_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func TestAccSakuraCloudAutoScale_basic(t *testing.T) {
}

var autoScale iaas.AutoScale
resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
CheckDestroy: resource.ComposeTestCheckFunc(
Expand Down Expand Up @@ -111,7 +111,7 @@ func TestAccSakuraCloudAutoScale_withRouter(t *testing.T) {
}

var autoScale iaas.AutoScale
resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
CheckDestroy: resource.ComposeTestCheckFunc(
Expand Down Expand Up @@ -150,7 +150,7 @@ func TestAccSakuraCloudAutoScale_withScheduleTrigger(t *testing.T) {
}

var autoScale iaas.AutoScale
resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
CheckDestroy: resource.ComposeTestCheckFunc(
Expand Down Expand Up @@ -269,7 +269,7 @@ func TestAccImportSakuraCloudAutoScale_basic(t *testing.T) {

resourceName := "sakuracloud_auto_scale.foobar"

resource.ParallelTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
CheckDestroy: resource.ComposeTestCheckFunc(
Expand Down
Loading

0 comments on commit 3d8cf6a

Please sign in to comment.