Skip to content

Commit 4e95cb2

Browse files
authored
Remove superfluous name prefix for integration tests (#2012)
## Changes Mechanical rename of "TestAcc" -> "Test" in the test name prefix. ## Tests n/a
1 parent c958702 commit 4e95cb2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+145
-145
lines changed

integration/assumptions/dashboard_assumptions_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919

2020
// Verify that importing a dashboard through the Workspace API retains the identity of the underying resource,
2121
// as well as properties exclusively accessible through the dashboards API.
22-
func TestAccDashboardAssumptions_WorkspaceImport(t *testing.T) {
22+
func TestDashboardAssumptions_WorkspaceImport(t *testing.T) {
2323
ctx, wt := acc.WorkspaceTest(t)
2424

2525
t.Parallel()

integration/bundle/artifacts_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func touchEmptyFile(t *testing.T, path string) {
3131
f.Close()
3232
}
3333

34-
func TestAccUploadArtifactFileToCorrectRemotePath(t *testing.T) {
34+
func TestUploadArtifactFileToCorrectRemotePath(t *testing.T) {
3535
ctx, wt := acc.WorkspaceTest(t)
3636
dir := t.TempDir()
3737
whlPath := filepath.Join(dir, "dist", "test.whl")
@@ -95,7 +95,7 @@ func TestAccUploadArtifactFileToCorrectRemotePath(t *testing.T) {
9595
)
9696
}
9797

98-
func TestAccUploadArtifactFileToCorrectRemotePathWithEnvironments(t *testing.T) {
98+
func TestUploadArtifactFileToCorrectRemotePathWithEnvironments(t *testing.T) {
9999
ctx, wt := acc.WorkspaceTest(t)
100100
dir := t.TempDir()
101101
whlPath := filepath.Join(dir, "dist", "test.whl")
@@ -159,7 +159,7 @@ func TestAccUploadArtifactFileToCorrectRemotePathWithEnvironments(t *testing.T)
159159
)
160160
}
161161

162-
func TestAccUploadArtifactFileToCorrectRemotePathForVolumes(t *testing.T) {
162+
func TestUploadArtifactFileToCorrectRemotePathForVolumes(t *testing.T) {
163163
ctx, wt := acc.WorkspaceTest(t)
164164

165165
if os.Getenv("TEST_METASTORE_ID") == "" {
@@ -228,7 +228,7 @@ func TestAccUploadArtifactFileToCorrectRemotePathForVolumes(t *testing.T) {
228228
)
229229
}
230230

231-
func TestAccUploadArtifactFileToVolumeThatDoesNotExist(t *testing.T) {
231+
func TestUploadArtifactFileToVolumeThatDoesNotExist(t *testing.T) {
232232
ctx, wt := acc.UcWorkspaceTest(t)
233233
w := wt.W
234234

@@ -265,7 +265,7 @@ func TestAccUploadArtifactFileToVolumeThatDoesNotExist(t *testing.T) {
265265
assert.Equal(t, "", stderr.String())
266266
}
267267

268-
func TestAccUploadArtifactToVolumeNotYetDeployed(t *testing.T) {
268+
func TestUploadArtifactToVolumeNotYetDeployed(t *testing.T) {
269269
ctx, wt := acc.UcWorkspaceTest(t)
270270
w := wt.W
271271

integration/bundle/basic_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/stretchr/testify/require"
1212
)
1313

14-
func TestAccBasicBundleDeployWithFailOnActiveRuns(t *testing.T) {
14+
func TestBasicBundleDeployWithFailOnActiveRuns(t *testing.T) {
1515
ctx, _ := acc.WorkspaceTest(t)
1616

1717
nodeTypeId := testutil.GetCloud(t).NodeTypeID()

integration/bundle/bind_resource_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"github.com/stretchr/testify/require"
1717
)
1818

19-
func TestAccBindJobToExistingJob(t *testing.T) {
19+
func TestBindJobToExistingJob(t *testing.T) {
2020
env := testutil.GetEnvOrSkipTest(t, "CLOUD_ENV")
2121
t.Log(env)
2222

@@ -81,7 +81,7 @@ func TestAccBindJobToExistingJob(t *testing.T) {
8181
require.Contains(t, job.Settings.Tasks[0].SparkPythonTask.PythonFile, "hello_world.py")
8282
}
8383

84-
func TestAccAbortBind(t *testing.T) {
84+
func TestAbortBind(t *testing.T) {
8585
env := testutil.GetEnvOrSkipTest(t, "CLOUD_ENV")
8686
t.Log(env)
8787

@@ -130,7 +130,7 @@ func TestAccAbortBind(t *testing.T) {
130130
require.Contains(t, job.Settings.Tasks[0].NotebookTask.NotebookPath, "test")
131131
}
132132

133-
func TestAccGenerateAndBind(t *testing.T) {
133+
func TestGenerateAndBind(t *testing.T) {
134134
env := testutil.GetEnvOrSkipTest(t, "CLOUD_ENV")
135135
t.Log(env)
136136

integration/bundle/clusters_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/stretchr/testify/require"
1212
)
1313

14-
func TestAccDeployBundleWithCluster(t *testing.T) {
14+
func TestDeployBundleWithCluster(t *testing.T) {
1515
ctx, wt := acc.WorkspaceTest(t)
1616

1717
if testutil.IsAWSCloud(wt) {

integration/bundle/dashboards_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"github.com/stretchr/testify/require"
1414
)
1515

16-
func TestAccDashboards(t *testing.T) {
16+
func TestDashboards(t *testing.T) {
1717
ctx, wt := acc.WorkspaceTest(t)
1818

1919
warehouseID := testutil.GetEnvOrSkipTest(t, "TEST_DEFAULT_WAREHOUSE_ID")

integration/bundle/deploy_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func setupUcSchemaBundle(t *testing.T, ctx context.Context, w *databricks.Worksp
8181
return bundleRoot
8282
}
8383

84-
func TestAccBundleDeployUcSchema(t *testing.T) {
84+
func TestBundleDeployUcSchema(t *testing.T) {
8585
ctx, wt := acc.UcWorkspaceTest(t)
8686
w := wt.W
8787

@@ -106,7 +106,7 @@ func TestAccBundleDeployUcSchema(t *testing.T) {
106106
assert.Equal(t, "SCHEMA_DOES_NOT_EXIST", apiErr.ErrorCode)
107107
}
108108

109-
func TestAccBundleDeployUcSchemaFailsWithoutAutoApprove(t *testing.T) {
109+
func TestBundleDeployUcSchemaFailsWithoutAutoApprove(t *testing.T) {
110110
ctx, wt := acc.UcWorkspaceTest(t)
111111
w := wt.W
112112

@@ -128,7 +128,7 @@ func TestAccBundleDeployUcSchemaFailsWithoutAutoApprove(t *testing.T) {
128128
assert.Contains(t, stdout.String(), "the deployment requires destructive actions, but current console does not support prompting. Please specify --auto-approve if you would like to skip prompts and proceed")
129129
}
130130

131-
func TestAccBundlePipelineDeleteWithoutAutoApprove(t *testing.T) {
131+
func TestBundlePipelineDeleteWithoutAutoApprove(t *testing.T) {
132132
ctx, wt := acc.WorkspaceTest(t)
133133
w := wt.W
134134

@@ -176,7 +176,7 @@ properties such as the 'catalog' or 'storage' are changed:
176176
assert.Contains(t, stdout.String(), "the deployment requires destructive actions, but current console does not support prompting. Please specify --auto-approve if you would like to skip prompts and proceed")
177177
}
178178

179-
func TestAccBundlePipelineRecreateWithoutAutoApprove(t *testing.T) {
179+
func TestBundlePipelineRecreateWithoutAutoApprove(t *testing.T) {
180180
ctx, wt := acc.UcWorkspaceTest(t)
181181
w := wt.W
182182
uniqueId := uuid.New().String()
@@ -215,7 +215,7 @@ properties such as the 'catalog' or 'storage' are changed:
215215
assert.Contains(t, stdout.String(), "the deployment requires destructive actions, but current console does not support prompting. Please specify --auto-approve if you would like to skip prompts and proceed")
216216
}
217217

218-
func TestAccDeployBasicBundleLogs(t *testing.T) {
218+
func TestDeployBasicBundleLogs(t *testing.T) {
219219
ctx, wt := acc.WorkspaceTest(t)
220220

221221
nodeTypeId := testutil.GetCloud(t).NodeTypeID()
@@ -245,7 +245,7 @@ func TestAccDeployBasicBundleLogs(t *testing.T) {
245245
assert.Equal(t, "", stdout)
246246
}
247247

248-
func TestAccDeployUcVolume(t *testing.T) {
248+
func TestDeployUcVolume(t *testing.T) {
249249
ctx, wt := acc.UcWorkspaceTest(t)
250250
w := wt.W
251251

integration/bundle/deploy_then_remove_resources_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/stretchr/testify/require"
1313
)
1414

15-
func TestAccBundleDeployThenRemoveResources(t *testing.T) {
15+
func TestBundleDeployThenRemoveResources(t *testing.T) {
1616
ctx, wt := acc.WorkspaceTest(t)
1717
w := wt.W
1818

integration/bundle/deploy_to_shared_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/stretchr/testify/require"
1111
)
1212

13-
func TestAccDeployBasicToSharedWorkspacePath(t *testing.T) {
13+
func TestDeployBasicToSharedWorkspacePath(t *testing.T) {
1414
ctx, wt := acc.WorkspaceTest(t)
1515

1616
nodeTypeId := testutil.GetCloud(t).NodeTypeID()

integration/bundle/deployment_state_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"github.com/stretchr/testify/require"
1414
)
1515

16-
func TestAccFilesAreSyncedCorrectlyWhenNoSnapshot(t *testing.T) {
16+
func TestFilesAreSyncedCorrectlyWhenNoSnapshot(t *testing.T) {
1717
env := testutil.GetEnvOrSkipTest(t, "CLOUD_ENV")
1818
t.Log(env)
1919

0 commit comments

Comments
 (0)