Skip to content

Commit ce577ff

Browse files
Fix Acceptance Tests (#2916)
* Fix Namespace Settings Test * Fix instance profile test
1 parent b2318d2 commit ce577ff

File tree

3 files changed

+20
-23
lines changed

3 files changed

+20
-23
lines changed

internal/acceptance/default_namespace_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ func TestAccDefaultNamespaceSetting(t *testing.T) {
3434
}),
3535
},
3636
step{
37+
Template: `resource "databricks_default_namespace_settings" "this" {
38+
namespace {
39+
value = "namespace_value"
40+
}
41+
}`,
3742
Destroy: true,
3843
Check: resourceCheck("databricks_default_namespace_settings.this", func(ctx context.Context, client *common.DatabricksClient, id string) error {
3944
ctx = context.WithValue(ctx, common.Api, common.API_2_1)

internal/acceptance/instance_profile_test.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,20 @@ func TestAccInstanceProfileIntegrationSuite(t *testing.T) {
3535
bucket_name = "{env.TEST_S3_BUCKET}"
3636
}
3737
}`,
38+
},
39+
// ServicePrincipal resource on Aws with role
40+
step{
41+
Template: `
42+
resource "databricks_service_principal" "this" {
43+
display_name = "SPN {var.RANDOM}"
44+
}
45+
resource "databricks_instance_profile" "this" {
46+
instance_profile_arn = "{env.DUMMY_EC2_INSTANCE_PROFILE}"
47+
}
48+
resource "databricks_service_principal_role" "this" {
49+
service_principal_id = databricks_service_principal.this.id
50+
role = databricks_instance_profile.this.id
51+
}
52+
`,
3853
})
3954
}

internal/acceptance/service_principal_role_test.go

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)