@@ -132,7 +132,8 @@ func TestNewSettingsNoConvertConfig(t *testing.T) {
132
132
"splunk.property:splunk.discovery.receiver.receiver-type/name.config.field.two=val.two" ,
133
133
}, settings .ResolverURIs ())
134
134
require .Equal (t , 2 , len (settings .ConfMapConverterFactories ()))
135
- require .Equal (t , []string {"--feature-gates" , "foo" , "--feature-gates" , "-bar" }, settings .ColCoreArgs ())
135
+ require .Equal (t , []string {"--feature-gates" , "foo" , "--feature-gates" , "-bar" , "--feature-gates" ,
136
+ "-confmap.strictlyTypedInput" , "--feature-gates" , "-confmap.unifyEnvVarExpansion" }, settings .ColCoreArgs ())
136
137
}
137
138
138
139
func TestNewSettingsConvertConfig (t * testing.T ) {
@@ -184,7 +185,8 @@ func TestNewSettingsWithValidate(t *testing.T) {
184
185
settings , err := New ([]string {"validate" })
185
186
require .NoError (t , err )
186
187
require .NotNil (t , settings )
187
- require .Equal (t , []string {"validate" }, settings .ColCoreArgs ())
188
+ require .Equal (t , []string {"--feature-gates" , "-confmap.strictlyTypedInput" , "--feature-gates" ,
189
+ "-confmap.unifyEnvVarExpansion" , "validate" }, settings .ColCoreArgs ())
188
190
}
189
191
190
192
func TestCheckRuntimeParams_Default (t * testing.T ) {
@@ -338,9 +340,15 @@ func TestSetDefaultEnvVarsSetsInterfaceFromConfigOption(t *testing.T) {
338
340
func TestSetDefaultFeatureGatesRespectsOverrides (t * testing.T ) {
339
341
t .Cleanup (setRequiredEnvVars (t ))
340
342
for _ , args := range [][]string {
341
- {"--feature-gates" , "some-gate" , "--feature-gates" , "telemetry.useOtelForInternalMetrics" , "--feature-gates" , "another-gate" },
342
- {"--feature-gates" , "some-gate" , "--feature-gates" , "+telemetry.useOtelForInternalMetrics" , "--feature-gates" , "another-gate" },
343
- {"--feature-gates" , "some-gate" , "--feature-gates" , "-telemetry.useOtelForInternalMetrics" , "--feature-gates" , "another-gate" },
343
+ {"--feature-gates" , "some-gate" , "--feature-gates" , "telemetry.useOtelForInternalMetrics" , "--feature-gates" ,
344
+ "another-gate" , "--feature-gates" , "-confmap.strictlyTypedInput" , "--feature-gates" ,
345
+ "-confmap.unifyEnvVarExpansion" },
346
+ {"--feature-gates" , "some-gate" , "--feature-gates" , "+telemetry.useOtelForInternalMetrics" ,
347
+ "--feature-gates" , "another-gate" , "--feature-gates" , "-confmap.strictlyTypedInput" , "--feature-gates" ,
348
+ "-confmap.unifyEnvVarExpansion" },
349
+ {"--feature-gates" , "some-gate" , "--feature-gates" , "-telemetry.useOtelForInternalMetrics" ,
350
+ "--feature-gates" , "another-gate" , "--feature-gates" , "-confmap.strictlyTypedInput" , "--feature-gates" ,
351
+ "-confmap.unifyEnvVarExpansion" },
344
352
} {
345
353
t .Run (strings .Join (args , " " ), func (t * testing.T ) {
346
354
settings , err := New (args )
0 commit comments