Skip to content

Add unit tests for JDBCAlarmQueryDAO SQL building#13795

Closed
currenjin wants to merge 1 commit intoapache:masterfrom
currenjin:test/jdbc-alarm-query-dao
Closed

Add unit tests for JDBCAlarmQueryDAO SQL building#13795
currenjin wants to merge 1 commit intoapache:masterfrom
currenjin:test/jdbc-alarm-query-dao

Conversation

@currenjin
Copy link
Copy Markdown
Contributor

Add unit tests for JDBCAlarmQueryDAO SQL building

Add tests to verify the SQL query construction in JDBCAlarmQueryDAO.buildSQL(), covering:

  • TABLE_COLUMN condition appears exactly once (regression guard)

  • Minimal query with no optional conditions

  • Optional conditions: scopeId, keyword (LIKE), duration (time bucket range)

  • Tag filtering with INNER JOIN (single and multiple tags)

  • limit + offset applied correctly

  • If this pull request closes/resolves/fixes an existing issue, replace the issue number. Closes #.

  • Update the CHANGES log.

@wu-sheng
Copy link
Copy Markdown
Member

wu-sheng commented Apr 6, 2026

Please merge all UTs into one PR to reduce CI resources.

@currenjin
Copy link
Copy Markdown
Contributor Author

Consolidated into #13800 as requested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants