Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions common/src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ ignoreContains:
- '[PlugMan]'
- 'Metrics'
- 'For help, type "help"'
- 'HikariDataSource'
- 'TableUtils'
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ ignoreContains:
- '[PlugMan]'
- 'Metrics'
- 'For help, type "help"'
- 'HikariDataSource'
- 'TableUtils'

Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ ignoreContains:
- '[PlugMan]'
- Metrics
- For help, type "help"
- 'HikariDataSource'
- 'TableUtils'
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ ignoreContains:
- '[PlugMan]'
- 'Metrics'
- 'For help, type "help"'
- 'HikariDataSource'
- 'TableUtils'

Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ ignoreContains:
- '[PlugMan]'
- 'Metrics'
- 'For help, type "help"'
- 'HikariDataSource'
- 'TableUtils'

Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ ignoreContains:
- '[PlugMan]'
- 'Metrics'
- 'For help, type "help"'
- 'HikariDataSource'
- 'TableUtils'

Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ ignoreContains:
- '[PlugMan]'
- 'Metrics'
- 'For help, type "help"'
- 'HikariDataSource'
- 'TableUtils'
50 changes: 50 additions & 0 deletions e2e/tests/src/log-filtering.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,4 +231,54 @@ describeOrSkip('Log Filtering (ignoreContains)', () => {
console.log('Report command output correctly filtered')
}
}, 60000)

test('HikariDataSource messages are filtered from report logs', async () => {
const uniqueId = Date.now()
const hikariMessage = `HikariDataSource pool starting_${uniqueId}`
const normalMessage = `NormalMarkerHikari_${uniqueId}`
const logs = await captureLogsForReason(
'Testing HikariDataSource filter',
normalMessage,
async () => {
await sendCommand(`say ${hikariMessage}`)
await sendCommand(`say ${normalMessage}`)
}
)

expect(logs).not.toBeNull()
if (logs != null) {
const hikariFound = logs.some(log => log.message.includes(hikariMessage))
expect(hikariFound).toBe(false)

const normalFound = logs.some(log => log.message.includes(normalMessage))
expect(normalFound).toBe(true)

console.log('HikariDataSource messages correctly filtered')
}
}, 60000)

test('TableUtils messages are filtered from report logs', async () => {
const uniqueId = Date.now()
const tableUtilsMessage = `TableUtils creating table_${uniqueId}`
const normalMessage = `NormalMarkerTblUtils_${uniqueId}`
const logs = await captureLogsForReason(
'Testing TableUtils filter',
normalMessage,
async () => {
await sendCommand(`say ${tableUtilsMessage}`)
await sendCommand(`say ${normalMessage}`)
}
)

expect(logs).not.toBeNull()
if (logs != null) {
const tableUtilsFound = logs.some(log => log.message.includes(tableUtilsMessage))
expect(tableUtilsFound).toBe(false)

const normalFound = logs.some(log => log.message.includes(normalMessage))
expect(normalFound).toBe(true)

console.log('TableUtils messages correctly filtered')
}
}, 60000)
})
Loading