fix(iwooos): query Wazuh coverage timestamp
Some checks failed
CD Pipeline / select-latest-carrier (push) Successful in 51s
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 8m50s
CD Pipeline / revalidate-deploy-carrier (push) Successful in 34s
CD Pipeline / revalidate-post-deploy-carrier (push) Has been cancelled
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled

This commit is contained in:
Your Name
2026-07-22 15:00:50 +08:00
parent 63b27152fa
commit 2017c71360
2 changed files with 3 additions and 3 deletions

View File

@@ -2527,7 +2527,7 @@ class IwoooSSecurityAssetControlPlaneService:
JOIN latest_run
ON latest_run.run_id = snapshot.run_id
WHERE snapshot.dimension = 'auto_monitoring'
ORDER BY snapshot.detected_at DESC,
ORDER BY snapshot.created_at DESC,
snapshot.snapshot_id DESC
LIMIT 1
),
@@ -2542,7 +2542,7 @@ class IwoooSSecurityAssetControlPlaneService:
JOIN latest_run
ON latest_run.run_id = snapshot.run_id
WHERE snapshot.dimension = 'auto_alerting'
ORDER BY snapshot.detected_at DESC,
ORDER BY snapshot.created_at DESC,
snapshot.snapshot_id DESC
LIMIT 1
),

View File

@@ -1144,7 +1144,7 @@ def test_service_bounds_source_concurrency_for_database_budget(monkeypatch) -> N
assert "lower(btrim(owner_team)) = 'aisoc'" in wazuh_asset_query
assert "auto_monitoring" in wazuh_asset_query
assert "auto_alerting" in wazuh_asset_query
assert "snapshot.detected_at DESC" in wazuh_asset_query
assert "snapshot.created_at DESC" in wazuh_asset_query
siem_query = next(
statement for statement in statements if "FROM alert_rule_catalog" in statement
)