diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-08-23 17:28:37 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-08-25 16:02:41 +0100 |
commit | 7ec58bf3f72fd7e0396a37f43ff023731697ff8a (patch) | |
tree | 067bea2150c1efc9423d06e784cd0a19f29f3397 /test/test-ingest.cpp | |
parent | b9b25dc52ad73f1be70f42d649b7b52bc4807208 (diff) | |
download | webstat-7ec58bf3f72fd7e0396a37f43ff023731697ff8a.tar.bz2 webstat-7ec58bf3f72fd7e0396a37f43ff023731697ff8a.tar.xz webstat-7ec58bf3f72fd7e0396a37f43ff023731697ff8a.zip |
Store log lines in full using entity ids
Diffstat (limited to 'test/test-ingest.cpp')
-rw-r--r-- | test/test-ingest.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/test-ingest.cpp b/test/test-ingest.cpp index af063f3..965f502 100644 --- a/test/test-ingest.cpp +++ b/test/test-ingest.cpp @@ -186,3 +186,15 @@ BOOST_DATA_TEST_CASE(ExtractFields, BOOST_REQUIRE(result); BOOST_CHECK_EQUAL(result->values(), expected); } + +BOOST_TEST_DECORATOR(*boost::unit_test::depends_on("ExtractFields")) + +BOOST_DATA_TEST_CASE(StoreLogLine, + boost::unit_test::data::make({ + LOGLINE1, + LOGLINE2, + }), + line) +{ + WebStat::Ingestor {"test-hostname", DB::MockDatabase::openConnectionTo("webstat")}.ingestLogLine(line); +} |