Skip to content

Commit fb4a680

Browse files
committed
go-fmt cleanup
1 parent 3f56ba9 commit fb4a680

6 files changed

+61
-61
lines changed

databricks/mounts_test.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ import (
88

99
func TestValidateMountDirectory(t *testing.T) {
1010
testCases := []struct {
11-
directory string
12-
errorCount int
13-
}{
14-
{"", 0},
15-
{"/directory", 0},
16-
{"directory", 1},
17-
}
18-
for _, tc := range testCases {
19-
_, errs := ValidateMountDirectory(tc.directory, "key")
20-
21-
assert.Lenf(t, errs, tc.errorCount, "directory '%s' does not generate the expected error count", tc.directory)
22-
}
11+
directory string
12+
errorCount int
13+
}{
14+
{"", 0},
15+
{"/directory", 0},
16+
{"directory", 1},
17+
}
18+
for _, tc := range testCases {
19+
_, errs := ValidateMountDirectory(tc.directory, "key")
20+
21+
assert.Lenf(t, errs, tc.errorCount, "directory '%s' does not generate the expected error count", tc.directory)
22+
}
2323
}

databricks/resource_databricks_azure_adls_gen1_mount.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func resourceAzureAdlsGen1Mount() *schema.Resource {
3939
Optional: true,
4040
Computed: true,
4141
//Default: "/",
42-
ForceNew: true,
42+
ForceNew: true,
4343
ValidateFunc: ValidateMountDirectory,
4444
},
4545
"mount_name": {

databricks/resource_databricks_azure_adls_gen2_mount.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ func resourceAzureAdlsGen2Mount() *schema.Resource {
3232
ForceNew: true,
3333
},
3434
"directory": {
35-
Type: schema.TypeString,
36-
Optional: true,
37-
Computed: true,
38-
ForceNew: true,
35+
Type: schema.TypeString,
36+
Optional: true,
37+
Computed: true,
38+
ForceNew: true,
3939
ValidateFunc: ValidateMountDirectory,
4040
},
4141
"mount_name": {

databricks/resource_databricks_azure_blob_mount.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func resourceAzureBlobMount() *schema.Resource {
3737
Optional: true,
3838
Computed: true,
3939
//Default: "/",
40-
ForceNew: true,
40+
ForceNew: true,
4141
ValidateFunc: ValidateMountDirectory,
4242
},
4343
"mount_name": {

databricks/resource_databricks_job_aws_test.go

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -114,30 +114,30 @@ func testAwsJobValuesNewCluster(t *testing.T, job *model.Job) resource.TestCheck
114114
}
115115

116116
func testAwsJobResourceNewCluster() string {
117-
return fmt.Sprintf(`
118-
resource "databricks_job" "my_job" {
119-
new_cluster {
120-
autoscale {
121-
min_workers = 2
122-
max_workers = 3
123-
}
124-
spark_version = "6.4.x-scala2.11"
125-
aws_attributes {
126-
availability = "SPOT"
127-
zone_id = "us-east-1a"
128-
spot_bid_price_percent = "100"
129-
first_on_demand = 1
130-
ebs_volume_type = "GENERAL_PURPOSE_SSD"
131-
ebs_volume_count = 1
132-
ebs_volume_size = 32
133-
}
134-
node_type_id = "r3.xlarge"
135-
}
136-
notebook_path = "/Users/[email protected]/my-demo-notebook"
137-
name = "my-demo-notebook"
138-
timeout_seconds = 3600
139-
max_retries = 1
140-
max_concurrent_runs = 1
141-
}
142-
`)
117+
return `
118+
resource "databricks_job" "my_job" {
119+
new_cluster {
120+
autoscale {
121+
min_workers = 2
122+
max_workers = 3
123+
}
124+
spark_version = "6.4.x-scala2.11"
125+
aws_attributes {
126+
availability = "SPOT"
127+
zone_id = "us-east-1a"
128+
spot_bid_price_percent = "100"
129+
first_on_demand = 1
130+
ebs_volume_type = "GENERAL_PURPOSE_SSD"
131+
ebs_volume_count = 1
132+
ebs_volume_size = 32
133+
}
134+
node_type_id = "r3.xlarge"
135+
}
136+
notebook_path = "/Users/[email protected]/my-demo-notebook"
137+
name = "my-demo-notebook"
138+
timeout_seconds = 3600
139+
max_retries = 1
140+
max_concurrent_runs = 1
141+
}
142+
`
143143
}

databricks/resource_databricks_job_azure_test.go

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -106,21 +106,21 @@ func testAzureJobValuesNewCluster(t *testing.T, job *model.Job) resource.TestChe
106106
}
107107

108108
func testAzureJobResourceNewCluster() string {
109-
return fmt.Sprintf(`
110-
resource "databricks_job" "my_job" {
111-
new_cluster {
112-
autoscale {
113-
min_workers = 2
114-
max_workers = 3
115-
}
116-
spark_version = "6.4.x-scala2.11"
117-
node_type_id = "Standard_DS3_v2"
118-
}
119-
notebook_path = "/Users/[email protected]/my-demo-notebook"
120-
name = "my-demo-notebook"
121-
timeout_seconds = 3600
122-
max_retries = 1
123-
max_concurrent_runs = 1
124-
}
125-
`)
109+
return `
110+
resource "databricks_job" "my_job" {
111+
new_cluster {
112+
autoscale {
113+
min_workers = 2
114+
max_workers = 3
115+
}
116+
spark_version = "6.4.x-scala2.11"
117+
node_type_id = "Standard_DS3_v2"
118+
}
119+
notebook_path = "/Users/[email protected]/my-demo-notebook"
120+
name = "my-demo-notebook"
121+
timeout_seconds = 3600
122+
max_retries = 1
123+
max_concurrent_runs = 1
124+
}
125+
`
126126
}

0 commit comments

Comments
 (0)