Skip to content

Commit a8ffd74

Browse files
committed
Add EventLogFile scratch feature option
1 parent 4783ee2 commit a8ffd74

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

command/login.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const (
2424
HealthCloudAddOn
2525
HealthCloudUser
2626
ApexUserModeWithPermset
27+
EventLogFile
2728
)
2829

2930
var ScratchFeatureIds = map[ScratchFeature][]string{
@@ -35,6 +36,7 @@ var ScratchFeatureIds = map[ScratchFeature][]string{
3536
HealthCloudAddOn: {"HealthCloudAddOn"},
3637
HealthCloudUser: {"HealthCloudUser"},
3738
ApexUserModeWithPermset: {"ApexUserModeWithPermset"},
39+
EventLogFile: {"EventLogFile"},
3840
}
3941

4042
type ScratchProduct enumflag.Flag
@@ -156,6 +158,7 @@ Available Features:
156158
HealthCloudAddOn - Enables Health Cloud add-on
157159
HealthCloudUser - Enables Health Cloud user licenses
158160
ApexUserModeWithPermset - Enables Apex code to run in user mode with a permission set session
161+
EventLogFile - Enables Event Log File
159162
PersonAccounts - Enables Person Accounts (B2C account model)
160163
StateAndCountryPicklist - Enables State and Country Picklists for standard address fields
161164

command/login_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,16 @@ func TestExpandProductsToFeatures_ApexUserModeWithPermset(t *testing.T) {
189189
}
190190
}
191191

192+
func TestExpandProductsToFeatures_EventLogFile(t *testing.T) {
193+
result := expandProductsToFeatures([]ScratchProduct{}, []ScratchFeature{EventLogFile}, map[string]string{})
194+
if len(result) != 1 {
195+
t.Fatalf("Expected 1 feature, got %d", len(result))
196+
}
197+
if result[0] != "EventLogFile" {
198+
t.Errorf("Expected EventLogFile, got %s", result[0])
199+
}
200+
}
201+
192202
func TestExpandProductsToSettings_NoProductsOrSettings(t *testing.T) {
193203
result := expandProductsToSettings([]ScratchProduct{}, []ScratchSetting{})
194204
if len(result) != 0 {

0 commit comments

Comments
 (0)