Skip to content

Commit

Permalink
Clean up: stick to camel case
Browse files Browse the repository at this point in the history
  • Loading branch information
alidaw committed Mar 20, 2024
1 parent ece4e4d commit 3f9ec51
Show file tree
Hide file tree
Showing 74 changed files with 310 additions and 309 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Run TestAccdataSourceGridscaleBackup_basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleBackup_basic'
- name: Run TestAccdataSourceGridscaleBackupBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleBackupBasic'

- name: Run TestAccdataSourceGridscaleBackupSchedule_basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleBackupSchedule_basic'
- name: Run TestAccdataSourceGridscaleBackupScheduleBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleBackupScheduleBasic'

- name: Run TestAccResourceGridscaleBackupSchedule_Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleBackupSchedule_Basic'
- name: Run TestAccResourceGridscaleBackupScheduleBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleBackupScheduleBasic'
4 changes: 2 additions & 2 deletions .github/workflows/filesystem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Run TestAccResourceGridscaleFilesystem_Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleFilesystem_Basic'
- name: Run TestAccResourceGridscaleFilesystemBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleFilesystemBasic'
8 changes: 4 additions & 4 deletions .github/workflows/firewall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Run TestAccdataSourceGridscaleFirewall_basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleFirewall_basic'
- name: Run TestAccdataSourceGridscaleFirewallBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleFirewallBasic'

- name: Run TestAccResourceGridscaleFirewall_Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleFirewall_Basic'
- name: Run TestAccResourceGridscaleFirewallBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleFirewallBasic'
16 changes: 8 additions & 8 deletions .github/workflows/ipv4_ipv6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Run TestAccdataSourceGridscaleIPv4_basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleIPv4_basic'
- name: Run TestAccdataSourceGridscaleIPv4Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleIPv4Basic'

- name: Run TestAccdataSourceGridscaleIPv6_basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleIPv6_basic'
- name: Run TestAccdataSourceGridscaleIPv6Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleIPv6Basic'

- name: Run TestAccResourceGridscaleIpv4_Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleIpv4_Basic'
- name: Run TestAccResourceGridscaleIpv4Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleIpv4Basic'

- name: Run TestAccResourceGridscaleIpv6_Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleIpv6_Basic'
- name: Run TestAccResourceGridscaleIpv6Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleIpv6Basic'
8 changes: 4 additions & 4 deletions .github/workflows/isoimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Run TestAccDataSourceISOImage_basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccDataSourceISOImage_basic'
- name: Run TestAccDataSourceISOImageBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccDataSourceISOImageBasic'

- name: Run TestAccResourceGridscaleISOImage_Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleISOImage_Basic'
- name: Run TestAccResourceGridscaleISOImageBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleISOImageBasic'
4 changes: 2 additions & 2 deletions .github/workflows/k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Run TestAccResourceGridscaleK8s_Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleK8s_Basic'
- name: Run TestAccResourceGridscaleK8sBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleK8sBasic'
4 changes: 2 additions & 2 deletions .github/workflows/loadbalancer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Run TestAccdataSourceGridscaleLoadBalancer_basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleLoadBalancer_basic'
- name: Run TestAccdataSourceGridscaleLoadBalancerBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleLoadBalancerBasic'

- name: Run TestAccResourceGridscaleLoadBalancerBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleLoadBalancerBasic'
4 changes: 2 additions & 2 deletions .github/workflows/mariadb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Run TestAccResourceGridscaleMariaDB_Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleMariaDB_Basic'
- name: Run TestAccResourceGridscaleMariaDBBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleMariaDBBasic'
12 changes: 6 additions & 6 deletions .github/workflows/marketplace_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Run TestAccdataSourceGridscaleMarketplaceApplication_basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleMarketplaceApplication_basic'
- name: Run TestAccdataSourceGridscaleMarketplaceApplicationBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleMarketplaceApplicationBasic'

- name: Run TestAccResourceGridscaleMarketplaceApplication_Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleMarketplaceApplication_Basic'
- name: Run TestAccResourceGridscaleMarketplaceApplicationBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleMarketplaceApplicationBasic'

- name: Run TestAccResourceGridscaleMarketplaceApplicationImport_Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleMarketplaceApplicationImport_Basic'
- name: Run TestAccResourceGridscaleMarketplaceApplicationImportBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleMarketplaceApplicationImportBasic'
4 changes: 2 additions & 2 deletions .github/workflows/memcached.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Run TestAccResourceGridscaleMemcached_Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleMemcached_Basic'
- name: Run TestAccResourceGridscaleMemcachedBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleMemcachedBasic'
4 changes: 2 additions & 2 deletions .github/workflows/mssql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Run TestAccResourceGridscaleMSSQLServer_Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleMSSQLServer_Basic'
- name: Run TestAccResourceGridscaleMSSQLServerBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleMSSQLServerBasic'
4 changes: 2 additions & 2 deletions .github/workflows/mysql8_0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Run TestAccResourceGridscaleMySQL8_0_Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleMySQL8_0_Basic'
- name: Run TestAccResourceGridscaleMySQL8_0Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleMySQL8_0Basic'
12 changes: 6 additions & 6 deletions .github/workflows/network.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Run TestAccdataSourceGridscaleNetwork_basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleNetwork_basic'
- name: Run TestAccdataSourceGridscaleNetworkBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleNetworkBasic'

- name: Run TestAccdataSourceGridscalePublicNetwork_basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscalePublicNetwork_basic'
- name: Run TestAccdataSourceGridscalePublicNetworkBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscalePublicNetworkBasic'

- name: Run TestAccResourceGridscaleNetwork_Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleNetwork_Basic'
- name: Run TestAccResourceGridscaleNetworkBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleNetworkBasic'
8 changes: 4 additions & 4 deletions .github/workflows/object_storage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Run TestAccdataSourceGridscaleObjectStorage_basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleObjectStorage_basic'
- name: Run TestAccdataSourceGridscaleObjectStorageBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleObjectStorageBasic'

- name: Run TestAccResourceGridscaleObjectStorage_Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleObjectStorage_Basic'
- name: Run TestAccResourceGridscaleObjectStorageBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleObjectStorageBasic'
8 changes: 4 additions & 4 deletions .github/workflows/paas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Run TestAccdataSourceGridscalePaaS_basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscalePaaS_basic'
- name: Run TestAccdataSourceGridscalePaaSBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscalePaaSBasic'

- name: Run TestAccResourceGridscalePaaS_Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscalePaaS_Basic'
- name: Run TestAccResourceGridscalePaaSBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscalePaaSBasic'
4 changes: 2 additions & 2 deletions .github/workflows/postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Run TestAccResourceGridscalePostgres_Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscalePostgres_Basic'
- name: Run TestAccResourceGridscalePostgresBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscalePostgresBasic'
8 changes: 4 additions & 4 deletions .github/workflows/redis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Run TestAccResourceGridscaleRedisStore_Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleRedisStore_Basic'
- name: Run TestAccResourceGridscaleRedisStoreBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleRedisStoreBasic'

- name: Run TestAccResourceGridscaleRedisCache_Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleRedisCache_Basic'
- name: Run TestAccResourceGridscaleRedisCacheBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleRedisCacheBasic'
8 changes: 4 additions & 4 deletions .github/workflows/server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Run TestAccdataSourceGridscaleServer_basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleServer_basic'
- name: Run TestAccdataSourceGridscaleServerBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleServerBasic'

- name: Run TestAccResourceGridscaleServer_Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleServer_Basic'
- name: Run TestAccResourceGridscaleServerBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleServerBasic'
16 changes: 8 additions & 8 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Run TestAccdataSourceGridscaleSnapshot_basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleSnapshot_basic'
- name: Run TestAccdataSourceGridscaleSnapshotBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleSnapshotBasic'

- name: Run TestAccdataSourceGridscaleSnapshotSchedule_basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleSnapshotSchedule_basic'
- name: Run TestAccdataSourceGridscaleSnapshotScheduleBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleSnapshotScheduleBasic'

- name: Run TestAccResourceGridscaleSnapshot_Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleSnapshot_Basic'
- name: Run TestAccResourceGridscaleSnapshotBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleSnapshotBasic'

- name: Run TestAccResourceGridscaleSnapshotSchedule_Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleSnapshotSchedule_Basic'
- name: Run TestAccResourceGridscaleSnapshotScheduleBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleSnapshotScheduleBasic'
8 changes: 4 additions & 4 deletions .github/workflows/sshkey.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Run TestAccdataSourceGridscaleSSHKey_basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleSSHKey_basic'
- name: Run TestAccdataSourceGridscaleSSHKeyBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleSSHKeyBasic'

- name: Run TestAccResourceGridscaleSshkey_Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleSshkey_Basic'
- name: Run TestAccResourceGridscaleSshkeyBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleSshkeyBasic'
8 changes: 4 additions & 4 deletions .github/workflows/sslcert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Run TestAccdataSourceGridscaleSSLCert_basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleSSLCert_basic'
- name: Run TestAccdataSourceGridscaleSSLCertBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleSSLCertBasic'

- name: Run TestAccResourceGridscaleSSLCert_Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleSSLCert_Basic'
- name: Run TestAccResourceGridscaleSSLCertBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleSSLCertBasic'
12 changes: 6 additions & 6 deletions .github/workflows/storage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Run TestAccdataSourceGridscaleStorage_basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleStorage_basic'
- name: Run TestAccdataSourceGridscaleStorageBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccdataSourceGridscaleStorageBasic'

- name: Run TestAccResourceGridscaleStorage_Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleStorage_Basic'
- name: Run TestAccResourceGridscaleStorageBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleStorageBasic'

- name: Run TestAccResourceGridscaleStorageClone_Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleStorageClone_Basic'
- name: Run TestAccResourceGridscaleStorageCloneBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleStorageCloneBasic'
8 changes: 4 additions & 4 deletions .github/workflows/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Run TestAccDataSourceTemplate_basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccDataSourceTemplate_basic'
- name: Run TestAccDataSourceTemplateBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccDataSourceTemplateBasic'

- name: Run TestAccResourceGridscaleTemplate_Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleTemplate_Basic'
- name: Run TestAccResourceGridscaleTemplateBasic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleTemplateBasic'
6 changes: 3 additions & 3 deletions gridscale/datasource_gridscale_backup_schedule_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)

func TestAccdataSourceGridscaleBackupSchedule_basic(t *testing.T) {
func TestAccdataSourceGridscaleBackupScheduleBasic(t *testing.T) {
name := fmt.Sprintf("object-%s", acctest.RandString(10))

resource.Test(t, resource.TestCase{
Expand All @@ -18,7 +18,7 @@ func TestAccdataSourceGridscaleBackupSchedule_basic(t *testing.T) {
Steps: []resource.TestStep{
{

Config: testAccCheckDataSourceBackupScheduleConfig_basic(name),
Config: testAccCheckDataSourceBackupScheduleConfigBasic(name),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttrSet("data.gridscale_backupschedule.foo", "id"),
resource.TestCheckResourceAttr("data.gridscale_backupschedule.foo", "name", name),
Expand All @@ -29,7 +29,7 @@ func TestAccdataSourceGridscaleBackupSchedule_basic(t *testing.T) {

}

func testAccCheckDataSourceBackupScheduleConfig_basic(name string) string {
func testAccCheckDataSourceBackupScheduleConfigBasic(name string) string {
return fmt.Sprintf(`
resource "gridscale_storage" "foo" {
Expand Down
6 changes: 3 additions & 3 deletions gridscale/datasource_gridscale_backup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)

func TestAccdataSourceGridscaleBackup_basic(t *testing.T) {
func TestAccdataSourceGridscaleBackupBasic(t *testing.T) {
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
Steps: []resource.TestStep{
{
Config: testAccCheckDataSourceBackupConfig_basic(),
Config: testAccCheckDataSourceBackupConfigBasic(),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttrSet("data.gridscale_backup_list.foo", "id"),
),
Expand All @@ -22,7 +22,7 @@ func TestAccdataSourceGridscaleBackup_basic(t *testing.T) {

}

func testAccCheckDataSourceBackupConfig_basic() string {
func testAccCheckDataSourceBackupConfigBasic() string {
return `
resource "gridscale_storage" "foo" {
name = "storage"
Expand Down
Loading

0 comments on commit 3f9ec51

Please sign in to comment.