diff --git a/settings/all_settings.go b/settings/all_settings.go index 8632dca230..47f3bc3fec 100644 --- a/settings/all_settings.go +++ b/settings/all_settings.go @@ -15,8 +15,8 @@ import ( // 3. Add a new entry to the AllSettingsResources map below. The final resource name will be "databricks__setting". func AllSettingsResources() map[string]common.Resource { return map[string]common.Resource{ - "default_namespace": makeSettingResource[settings.DefaultNamespaceSetting, *databricks.WorkspaceClient](defaultNamespaceSetting), - "restrict_workspace_admins": makeSettingResource[settings.RestrictWorkspaceAdminsSetting, *databricks.WorkspaceClient](restrictWsAdminsSetting), + "default_namespace": makeSettingResource[settings.DefaultNamespaceSetting, *databricks.WorkspaceClient](defaultNamespaceSetting), + "restrict_workspace_admins": makeSettingResource[settings.RestrictWorkspaceAdminsSetting, *databricks.WorkspaceClient](restrictWsAdminsSetting), "compliance_security_profile_workspace": makeSettingResource[settings.ComplianceSecurityProfileSetting, *databricks.WorkspaceClient](complianceSecurityProfileSetting), } } diff --git a/settings/resource_compliance_security_profile_setting.go b/settings/resource_compliance_security_profile_setting.go index 99cc005bbc..5ab07ddb86 100644 --- a/settings/resource_compliance_security_profile_setting.go +++ b/settings/resource_compliance_security_profile_setting.go @@ -32,4 +32,4 @@ var complianceSecurityProfileSetting = workspaceSetting[settings.ComplianceSecur } return res.Etag, err }, -} \ No newline at end of file +} diff --git a/settings/resource_compliance_security_profile_setting_test.go b/settings/resource_compliance_security_profile_setting_test.go index 4e2faba7da..5e4ee44895 100644 --- a/settings/resource_compliance_security_profile_setting_test.go +++ b/settings/resource_compliance_security_profile_setting_test.go @@ -23,7 +23,7 @@ func TestQueryCreateComplianceSecurityProfileSettingWithNoneStandard(t *testing. Setting: settings.ComplianceSecurityProfileSetting{ Etag: "", ComplianceSecurityProfileWorkspace: settings.ComplianceSecurityProfile{ - IsEnabled: true, + IsEnabled: true, ComplianceStandards: []settings.ComplianceStandard{"NONE"}, }, SettingName: "default", @@ -45,7 +45,7 @@ func TestQueryCreateComplianceSecurityProfileSettingWithNoneStandard(t *testing. Setting: settings.ComplianceSecurityProfileSetting{ Etag: "etag1", ComplianceSecurityProfileWorkspace: settings.ComplianceSecurityProfile{ - IsEnabled: true, + IsEnabled: true, ComplianceStandards: []settings.ComplianceStandard{"NONE"}, }, SettingName: "default", @@ -53,7 +53,7 @@ func TestQueryCreateComplianceSecurityProfileSettingWithNoneStandard(t *testing. }).Return(&settings.ComplianceSecurityProfileSetting{ Etag: "etag2", ComplianceSecurityProfileWorkspace: settings.ComplianceSecurityProfile{ - IsEnabled: true, + IsEnabled: true, ComplianceStandards: []settings.ComplianceStandard{"NONE"}, }, SettingName: "default", @@ -63,7 +63,7 @@ func TestQueryCreateComplianceSecurityProfileSettingWithNoneStandard(t *testing. }).Return(&settings.ComplianceSecurityProfileSetting{ Etag: "etag2", ComplianceSecurityProfileWorkspace: settings.ComplianceSecurityProfile{ - IsEnabled: true, + IsEnabled: true, ComplianceStandards: []settings.ComplianceStandard{"NONE"}, }, SettingName: "default", @@ -84,4 +84,4 @@ func TestQueryCreateComplianceSecurityProfileSettingWithNoneStandard(t *testing. assert.Equal(t, defaultSettingId, d.Id()) assert.Equal(t, "etag2", d.Get(etagAttrName).(string)) assert.Equal(t, true, d.Get("compliance_security_profile_workspace.0.is_enabled")) -} \ No newline at end of file +}