Add acceptance tests

This commit is contained in:
Daniel Siepmann 2020-04-21 15:55:29 +02:00
parent 660c9505bd
commit b8b1abe9d6

View file

@ -39,3 +39,14 @@ services:
arguments: arguments:
$queryBuilder: '@querybuilder.tx_tracking_pageview' $queryBuilder: '@querybuilder.tx_tracking_pageview'
$blackListedPages: [1, 11, 38] $blackListedPages: [1, 11, 38]
DanielSiepmann\Tracking\Middleware\Pageview:
public: true
arguments:
$rule: >
not (context.getAspect("backend.user").isLoggedIn())
and not (request.getHeader("User-Agent")[0] matches "/^TYPO3|TYPO3 linkvalidator/")
and not (request.getHeader("User-Agent")[0] matches "/^Codeception Testing/")
and not (request.getHeader("User-Agent")[0] matches "/Wget|curl|Go-http-client/")
and not (request.getHeader("User-Agent")[0] matches "/Googlebot|Bingbot|bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Sogou|Exabot|NextCloud-News|Feedly|XING FeedReader|CCBot|SemrushBot|SEOkicks|Twitterbot|Seekport Crawler|SemanticScholarBot|ia_archiver|PaperLiBot|TrendsmapResolver|AhrefsBot|Nuzzel/")
and not (request.getHeader("User-Agent")[0] matches "/mattermost|Slackbot|WhatsApp/")