summaryrefslogtreecommitdiff
path: root/test/test-ingest.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2025-09-13 13:24:23 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2025-09-13 13:24:23 +0100
commit84bd17328a4dc027e689ca7b2a85744d6e2b7cf5 (patch)
treee1d2e7c0f5b26500715c8cb17a12a391afc032b8 /test/test-ingest.cpp
parent55439681e7a45489e5a77c2d6169f4b722525c96 (diff)
downloadwebstat-84bd17328a4dc027e689ca7b2a85744d6e2b7cf5.tar.bz2
webstat-84bd17328a4dc027e689ca7b2a85744d6e2b7cf5.tar.xz
webstat-84bd17328a4dc027e689ca7b2a85744d6e2b7cf5.zip
Create and perform UA lookup curl op when new user agent is encountered
Diffstat (limited to 'test/test-ingest.cpp')
-rw-r--r--test/test-ingest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test-ingest.cpp b/test/test-ingest.cpp
index 3799aab..1ac6167 100644
--- a/test/test-ingest.cpp
+++ b/test/test-ingest.cpp
@@ -209,7 +209,7 @@ BOOST_AUTO_TEST_CASE(StoreLog, *boost::unit_test::depends_on("I/StoreLogLine"))
BOOST_AUTO_TEST_CASE(FetchMockUserAgentDetail)
{
- const auto uaDetailReq = WebStat::curlGetUserAgentDetail(
+ const auto uaDetailReq = WebStat::curlGetUserAgentDetail(0,
R"(Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36)",
userAgentAPI.c_str());
BOOST_REQUIRE(uaDetailReq);
@@ -226,7 +226,7 @@ BOOST_AUTO_TEST_SUITE_END();
BOOST_AUTO_TEST_CASE(FetchRealUserAgentDetail, *boost::unit_test::disabled())
{
- const auto uaDetailReq = WebStat::curlGetUserAgentDetail(
+ const auto uaDetailReq = WebStat::curlGetUserAgentDetail(0,
R"(Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36)",
"http://useragentstring.com");
BOOST_REQUIRE(uaDetailReq);