@@ -99,7 +99,7 @@ func TestLoadingConfigStrict(t *testing.T) {
99
99
func TestLoadingConfigStrictLogs (t * testing.T ) {
100
100
101
101
testDataLogPropertiesInclude := & LogMatchProperties {
102
- LogMatchType : Strict ,
102
+ LogMatchType : strictType ,
103
103
ResourceAttributes : []filterconfig.Attribute {
104
104
{
105
105
Key : "should_include" ,
@@ -109,7 +109,7 @@ func TestLoadingConfigStrictLogs(t *testing.T) {
109
109
}
110
110
111
111
testDataLogPropertiesExclude := & LogMatchProperties {
112
- LogMatchType : Strict ,
112
+ LogMatchType : strictType ,
113
113
ResourceAttributes : []filterconfig.Attribute {
114
114
{
115
115
Key : "should_exclude" ,
@@ -131,7 +131,7 @@ func TestLoadingConfigStrictLogs(t *testing.T) {
131
131
ErrorMode : ottl .PropagateError ,
132
132
Logs : LogFilters {
133
133
Include : & LogMatchProperties {
134
- LogMatchType : Strict ,
134
+ LogMatchType : strictType ,
135
135
},
136
136
},
137
137
},
@@ -182,12 +182,12 @@ func TestLoadingConfigStrictLogs(t *testing.T) {
182
182
func TestLoadingConfigSeverityLogsStrict (t * testing.T ) {
183
183
184
184
testDataLogPropertiesInclude := & LogMatchProperties {
185
- LogMatchType : Strict ,
185
+ LogMatchType : strictType ,
186
186
SeverityTexts : []string {"INFO" },
187
187
}
188
188
189
189
testDataLogPropertiesExclude := & LogMatchProperties {
190
- LogMatchType : Strict ,
190
+ LogMatchType : strictType ,
191
191
SeverityTexts : []string {"DEBUG" , "DEBUG2" , "DEBUG3" , "DEBUG4" },
192
192
}
193
193
@@ -244,12 +244,12 @@ func TestLoadingConfigSeverityLogsStrict(t *testing.T) {
244
244
// TestLoadingConfigSeverityLogsRegexp tests loading testdata/config_logs_severity_regexp.yaml
245
245
func TestLoadingConfigSeverityLogsRegexp (t * testing.T ) {
246
246
testDataLogPropertiesInclude := & LogMatchProperties {
247
- LogMatchType : Regexp ,
247
+ LogMatchType : regexpType ,
248
248
SeverityTexts : []string {"INFO[2-4]?" },
249
249
}
250
250
251
251
testDataLogPropertiesExclude := & LogMatchProperties {
252
- LogMatchType : Regexp ,
252
+ LogMatchType : regexpType ,
253
253
SeverityTexts : []string {"DEBUG[2-4]?" },
254
254
}
255
255
@@ -307,12 +307,12 @@ func TestLoadingConfigSeverityLogsRegexp(t *testing.T) {
307
307
func TestLoadingConfigBodyLogsStrict (t * testing.T ) {
308
308
309
309
testDataLogPropertiesInclude := & LogMatchProperties {
310
- LogMatchType : Strict ,
310
+ LogMatchType : strictType ,
311
311
LogBodies : []string {"This is an important event" },
312
312
}
313
313
314
314
testDataLogPropertiesExclude := & LogMatchProperties {
315
- LogMatchType : Strict ,
315
+ LogMatchType : strictType ,
316
316
LogBodies : []string {"This event is not important" },
317
317
}
318
318
@@ -370,12 +370,12 @@ func TestLoadingConfigBodyLogsStrict(t *testing.T) {
370
370
func TestLoadingConfigBodyLogsRegexp (t * testing.T ) {
371
371
372
372
testDataLogPropertiesInclude := & LogMatchProperties {
373
- LogMatchType : Regexp ,
373
+ LogMatchType : regexpType ,
374
374
LogBodies : []string {"^IMPORTANT:" },
375
375
}
376
376
377
377
testDataLogPropertiesExclude := & LogMatchProperties {
378
- LogMatchType : Regexp ,
378
+ LogMatchType : regexpType ,
379
379
LogBodies : []string {"^MINOR:" },
380
380
}
381
381
0 commit comments