Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
harshshah-db committed May 10, 2024
1 parent 8f607e3 commit fc89b5b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions settings/all_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
// 3. Add a new entry to the AllSettingsResources map below. The final resource name will be "databricks_<SETTING_NAME>_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),
}
}
2 changes: 1 addition & 1 deletion settings/resource_compliance_security_profile_setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ var complianceSecurityProfileSetting = workspaceSetting[settings.ComplianceSecur
}
return res.Etag, err
},
}
}
10 changes: 5 additions & 5 deletions settings/resource_compliance_security_profile_setting_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -45,15 +45,15 @@ func TestQueryCreateComplianceSecurityProfileSettingWithNoneStandard(t *testing.
Setting: settings.ComplianceSecurityProfileSetting{
Etag: "etag1",
ComplianceSecurityProfileWorkspace: settings.ComplianceSecurityProfile{
IsEnabled: true,
IsEnabled: true,
ComplianceStandards: []settings.ComplianceStandard{"NONE"},
},
SettingName: "default",
},
}).Return(&settings.ComplianceSecurityProfileSetting{
Etag: "etag2",
ComplianceSecurityProfileWorkspace: settings.ComplianceSecurityProfile{
IsEnabled: true,
IsEnabled: true,
ComplianceStandards: []settings.ComplianceStandard{"NONE"},
},
SettingName: "default",
Expand All @@ -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",
Expand All @@ -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"))
}
}

0 comments on commit fc89b5b

Please sign in to comment.