diff options
author | diosmosis <benaka@piwik.pro> | 2014-12-08 08:58:59 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2014-12-08 08:58:59 +0300 |
commit | fe24bcc58633f65203275b79c911422913fab609 (patch) | |
tree | 1c681a2a7eb1a624c9fc937083020c60a9ff80cd /tests/PHPUnit/Fixtures/ManySitesImportedLogs.php | |
parent | fa367aa6dc0a65ea9f776fd04a23cacd8e8038f8 (diff) |
Refs #4707, add test for netscaler logs, support already present due to last commit.
Diffstat (limited to 'tests/PHPUnit/Fixtures/ManySitesImportedLogs.php')
-rw-r--r-- | tests/PHPUnit/Fixtures/ManySitesImportedLogs.php | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/tests/PHPUnit/Fixtures/ManySitesImportedLogs.php b/tests/PHPUnit/Fixtures/ManySitesImportedLogs.php index 326eded8b4..1249a57334 100644 --- a/tests/PHPUnit/Fixtures/ManySitesImportedLogs.php +++ b/tests/PHPUnit/Fixtures/ManySitesImportedLogs.php @@ -28,6 +28,7 @@ class ManySitesImportedLogs extends Fixture public $addSegments = false; public $includeIisWithCustom = false; + public $includeNetscaler = false; public static function createAccessInstance() { @@ -116,6 +117,10 @@ class ManySitesImportedLogs extends Fixture if ($this->includeIisWithCustom) { $this->logIisWithCustomFormat(); } + + if ($this->includeNetscaler) { + $this->logNetscaler(); + } } private function setupSegments() @@ -243,7 +248,19 @@ class ManySitesImportedLogs extends Fixture '--token-auth' => self::getTokenAuth(), '--iis-map-field' => array('date-local=date', 'time-local=time', 'cs(Host)=cs-host'), '--enable-http-errors' => false, - '--enable-http-redirects' => false,); + '--enable-http-redirects' => false); + + self::executeLogImporter($logFile, $opts); + } + + private function logNetscaler() + { + $logFile = PIWIK_INCLUDE_PATH . '/tests/resources/access-logs/fake_logs_netscaler.log'; + + $opts = array('--idsite' => $this->idSite, + '--token-auth' => self::getTokenAuth(), + '--iis-map-field' => array(), + '--enable-http-redirects' => false); self::executeLogImporter($logFile, $opts); } |