Skip to content

Commit 5d55691

Browse files
authored
Release v1.11.0 (#2056)
1 parent ef5392e commit 5d55691

File tree

3 files changed

+31
-4
lines changed

3 files changed

+31
-4
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Version changelog
22

3+
### 1.11.0
4+
5+
* Added `force_delete_home_dir` and `force_delete_repos` attributes to [databricks_user](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/user) and [databricks_service_principal](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/service_principal) resources ([#2032](https://github.com/databricks/terraform-provider-databricks/pull/2032)).
6+
* Added docs for `continuous` block in the [databricks_job](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/job) resource ([#2048](https://github.com/databricks/terraform-provider-databricks/pull/2048)).
7+
* Exporter: `databricks_permissions` for [databricks_notebook](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/notebook) & [databricks_directory](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/directory) ([#1908](https://github.com/databricks/terraform-provider-databricks/pull/1908)).
8+
* Improve error messages for [databricks_permissions](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/permissions) ([#2055](https://github.com/databricks/terraform-provider-databricks/pull/2055)).
9+
* Make reflect resource utility friendly with Go SDK ([#2051](https://github.com/databricks/terraform-provider-databricks/pull/2051)).
10+
11+
Updated dependency versions:
12+
13+
* Bump github.com/stretchr/testify from 1.8.1 to 1.8.2 ([#2049](https://github.com/databricks/terraform-provider-databricks/pull/2049)).
14+
315
### 1.10.1
416

517
* Migrated [databricks_catalogs](https://registry.terraform.io/providers/databricks/databricks/latest/docs/data-sources/catalogs) data to Go SDK ([#2038](https://github.com/databricks/terraform-provider-databricks/pull/2038)).

common/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package common
33
import "context"
44

55
var (
6-
version = "1.10.1"
6+
version = "1.11.0"
77
// ResourceName is resource name without databricks_ prefix
88
ResourceName contextKey = 1
99
// Provider is the current instance of provider

internal/acceptance/user_test.go

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,22 @@ func TestAccForceUserImport(t *testing.T) {
4646
})
4747
}
4848

49+
func TestAccUserHomeDeleteHasNoEffectInAccount(t *testing.T) {
50+
username := qa.RandomEmail()
51+
accountLevel(t, step{
52+
Template: `
53+
resource "databricks_user" "first" {
54+
user_name = "` + username + `"
55+
force_delete_home_dir = true
56+
}`,
57+
}, step{
58+
Template: `
59+
resource "databricks_user" "second" {
60+
user_name = "{var.RANDOM}@example.com"
61+
}`,
62+
})
63+
}
64+
4965
func TestAccUserHomeDelete(t *testing.T) {
5066
username := qa.RandomEmail()
5167
workspaceLevel(t, step{
@@ -54,9 +70,6 @@ func TestAccUserHomeDelete(t *testing.T) {
5470
user_name = "` + username + `"
5571
force_delete_home_dir = true
5672
}`,
57-
Check: func(s *terraform.State) error {
58-
return nil
59-
},
6073
}, step{
6174
Template: `
6275
resource "databricks_user" "second" {
@@ -80,6 +93,7 @@ func TestAccUserHomeDelete(t *testing.T) {
8093
},
8194
})
8295
}
96+
8397
func TestAccUserHomeDeleteNotDeleted(t *testing.T) {
8498
username := qa.RandomEmail()
8599
workspaceLevel(t, step{
@@ -106,6 +120,7 @@ func TestAccUserHomeDeleteNotDeleted(t *testing.T) {
106120
},
107121
})
108122
}
123+
109124
func TestAccUserResource(t *testing.T) {
110125
differentUsers := `
111126
resource "databricks_user" "first" {

0 commit comments

Comments
 (0)