Skip to content

Commit

Permalink
Release v1.11.0 (#2056)
Browse files Browse the repository at this point in the history
  • Loading branch information
nfx committed Mar 1, 2023
1 parent ef5392e commit 5d55691
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 4 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Version changelog

### 1.11.0

* 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)).
* 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)).
* 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)).
* 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)).
* Make reflect resource utility friendly with Go SDK ([#2051](https://github.com/databricks/terraform-provider-databricks/pull/2051)).

Updated dependency versions:

* Bump github.com/stretchr/testify from 1.8.1 to 1.8.2 ([#2049](https://github.com/databricks/terraform-provider-databricks/pull/2049)).

### 1.10.1

* 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)).
Expand Down
2 changes: 1 addition & 1 deletion common/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package common
import "context"

var (
version = "1.10.1"
version = "1.11.0"
// ResourceName is resource name without databricks_ prefix
ResourceName contextKey = 1
// Provider is the current instance of provider
Expand Down
21 changes: 18 additions & 3 deletions internal/acceptance/user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,22 @@ func TestAccForceUserImport(t *testing.T) {
})
}

func TestAccUserHomeDeleteHasNoEffectInAccount(t *testing.T) {
username := qa.RandomEmail()
accountLevel(t, step{
Template: `
resource "databricks_user" "first" {
user_name = "` + username + `"
force_delete_home_dir = true
}`,
}, step{
Template: `
resource "databricks_user" "second" {
user_name = "{var.RANDOM}@example.com"
}`,
})
}

func TestAccUserHomeDelete(t *testing.T) {
username := qa.RandomEmail()
workspaceLevel(t, step{
Expand All @@ -54,9 +70,6 @@ func TestAccUserHomeDelete(t *testing.T) {
user_name = "` + username + `"
force_delete_home_dir = true
}`,
Check: func(s *terraform.State) error {
return nil
},
}, step{
Template: `
resource "databricks_user" "second" {
Expand All @@ -80,6 +93,7 @@ func TestAccUserHomeDelete(t *testing.T) {
},
})
}

func TestAccUserHomeDeleteNotDeleted(t *testing.T) {
username := qa.RandomEmail()
workspaceLevel(t, step{
Expand All @@ -106,6 +120,7 @@ func TestAccUserHomeDeleteNotDeleted(t *testing.T) {
},
})
}

func TestAccUserResource(t *testing.T) {
differentUsers := `
resource "databricks_user" "first" {
Expand Down

0 comments on commit 5d55691

Please sign in to comment.