Skip to content

Commit

Permalink
Fix Acceptance Tests (#2916)
Browse files Browse the repository at this point in the history
* Fix Namespace Settings Test

* Fix instance profile test
  • Loading branch information
hectorcast-db authored Nov 14, 2023
1 parent b2318d2 commit ce577ff
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 23 deletions.
5 changes: 5 additions & 0 deletions internal/acceptance/default_namespace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ func TestAccDefaultNamespaceSetting(t *testing.T) {
}),
},
step{
Template: `resource "databricks_default_namespace_settings" "this" {
namespace {
value = "namespace_value"
}
}`,
Destroy: true,
Check: resourceCheck("databricks_default_namespace_settings.this", func(ctx context.Context, client *common.DatabricksClient, id string) error {
ctx = context.WithValue(ctx, common.Api, common.API_2_1)
Expand Down
15 changes: 15 additions & 0 deletions internal/acceptance/instance_profile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,20 @@ func TestAccInstanceProfileIntegrationSuite(t *testing.T) {
bucket_name = "{env.TEST_S3_BUCKET}"
}
}`,
},
// ServicePrincipal resource on Aws with role
step{
Template: `
resource "databricks_service_principal" "this" {
display_name = "SPN {var.RANDOM}"
}
resource "databricks_instance_profile" "this" {
instance_profile_arn = "{env.DUMMY_EC2_INSTANCE_PROFILE}"
}
resource "databricks_service_principal_role" "this" {
service_principal_id = databricks_service_principal.this.id
role = databricks_instance_profile.this.id
}
`,
})
}
23 changes: 0 additions & 23 deletions internal/acceptance/service_principal_role_test.go

This file was deleted.

0 comments on commit ce577ff

Please sign in to comment.