summaryrefslogtreecommitdiff
path: root/test/fixtures
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2025-09-09 23:24:35 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2025-09-09 23:24:35 +0100
commit2eb8897706128f3590a5b4f9ee8f3e755b74f097 (patch)
tree818290b3be9525ce20c16c8489a225b2fa634259 /test/fixtures
parentbdaa314b7eacc7cd41dbf09f8f8ea6d742c3ea37 (diff)
downloadwebstat-2eb8897706128f3590a5b4f9ee8f3e755b74f097.tar.bz2
webstat-2eb8897706128f3590a5b4f9ee8f3e755b74f097.tar.xz
webstat-2eb8897706128f3590a5b4f9ee8f3e755b74f097.zip
Add test over mocked user agent fetch
Uses a file:// URL to curl fetch a local fixture.
Diffstat (limited to 'test/fixtures')
-rw-r--r--test/fixtures/userAgent.json14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/fixtures/userAgent.json b/test/fixtures/userAgent.json
new file mode 100644
index 0000000..a3a8fcb
--- /dev/null
+++ b/test/fixtures/userAgent.json
@@ -0,0 +1,14 @@
+{
+ "agent_type": "Browser",
+ "agent_name": "Chrome",
+ "agent_version": "140.0.0.0",
+ "os_type": "Linux",
+ "os_name": "Linux",
+ "os_versionName": "",
+ "os_versionNumber": "",
+ "os_producer": "",
+ "os_producerURL": "",
+ "linux_distibution": "Null",
+ "agent_language": "",
+ "agent_languageTag": ""
+}