Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2014-12-13 08:51:37 +0300
committerdiosmosis <benaka@piwik.pro>2014-12-15 06:30:25 +0300
commit04f64ac0a4939b0af0dbb049ebb35ec8f8d0f32b (patch)
tree500fd36cc5a08283dc474a33ba8e58a1037b16c5 /tests/PHPUnit/Fixtures/ManySitesImportedLogs.php
parent980676f0fc4b837ade23def7e5d52459ca59a886 (diff)
Adding support for parsing amazon cloudfront log files in log importer & making W3cExtendedFormat treat time-taken field as seconds by default (since that is what the W3C format specifies). Also add support for event tracking and cloudfront RTMP logs (which provide event logs). Also allow multiple spaces in between W3C extended log files. Allow derived classes of W3cExtendedFormat to define new custom field regexes.
Diffstat (limited to 'tests/PHPUnit/Fixtures/ManySitesImportedLogs.php')
-rw-r--r--tests/PHPUnit/Fixtures/ManySitesImportedLogs.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/PHPUnit/Fixtures/ManySitesImportedLogs.php b/tests/PHPUnit/Fixtures/ManySitesImportedLogs.php
index 7642befc16..0603ae4d4b 100644
--- a/tests/PHPUnit/Fixtures/ManySitesImportedLogs.php
+++ b/tests/PHPUnit/Fixtures/ManySitesImportedLogs.php
@@ -29,6 +29,8 @@ class ManySitesImportedLogs extends Fixture
public $addSegments = false;
public $includeIisWithCustom = false;
public $includeNetscaler = false;
+ public $includeCloudfront = false;
+ public $includeCloudfrontRtmp = false;
public static function createAccessInstance()
{
@@ -121,6 +123,14 @@ class ManySitesImportedLogs extends Fixture
if ($this->includeNetscaler) {
$this->logNetscaler();
}
+
+ if ($this->includeCloudfront) {
+ $this->logCloudfront();
+ }
+
+ if ($this->includeCloudfrontRtmp) {
+ $this->logCloudfrontRtmp();
+ }
}
private function setupSegments()
@@ -264,4 +274,24 @@ class ManySitesImportedLogs extends Fixture
return self::executeLogImporter($logFile, $opts);
}
+
+ private function logCloudfront()
+ {
+ $logFile = PIWIK_INCLUDE_PATH . '/tests/resources/access-logs/fake_logs_cloudfront.log';
+
+ $opts = array('--idsite' => $this->idSite,
+ '--token-auth' => self::getTokenAuth());
+
+ return self::executeLogImporter($logFile, $opts);
+ }
+
+ private function logCloudfrontRtmp()
+ {
+ $logFile = PIWIK_INCLUDE_PATH . '/tests/resources/access-logs/fake_logs_cloudfront_rtmp.log';
+
+ $opts = array('--idsite' => $this->idSite,
+ '--token-auth' => self::getTokenAuth());
+
+ return self::executeLogImporter($logFile, $opts);
+ }
} \ No newline at end of file