summaryrefslogtreecommitdiff
path: root/test/test-ingest.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2025-12-20 15:16:25 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2025-12-20 15:16:25 +0000
commit30a9d45f5322a63c2adf1de7a248ba3a9a0c3903 (patch)
treea384473d3be0d5f3fc8c358c827b6cf158d187b3 /test/test-ingest.cpp
parentf8276d22b6501e3d6164f9b26df94d2d57f597e5 (diff)
downloadwebstat-30a9d45f5322a63c2adf1de7a248ba3a9a0c3903.tar.bz2
webstat-30a9d45f5322a63c2adf1de7a248ba3a9a0c3903.tar.xz
webstat-30a9d45f5322a63c2adf1de7a248ba3a9a0c3903.zip
Add job for puring old access log entries from the databaseHEADmain
Diffstat (limited to 'test/test-ingest.cpp')
-rw-r--r--test/test-ingest.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test-ingest.cpp b/test/test-ingest.cpp
index 7692234..9b77567 100644
--- a/test/test-ingest.cpp
+++ b/test/test-ingest.cpp
@@ -341,6 +341,11 @@ BOOST_AUTO_TEST_CASE(DiscardUnparsable)
BOOST_CHECK_EQUAL_COLLECTIONS(rows.begin(), rows.end(), EXPECTED.begin(), EXPECTED.end());
}
+BOOST_AUTO_TEST_CASE(PurgeOldJob)
+{
+ BOOST_CHECK_EQUAL(2, jobPurgeOldLogs());
+}
+
BOOST_AUTO_TEST_SUITE_END();
BOOST_AUTO_TEST_CASE(FetchRealUserAgentDetail, *boost::unit_test::disabled())