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
path: root/tests
AgeCommit message (Collapse)Author
2018-09-07Make sure simple datatable metadata is serialized + some test case changes ↵diosmosis
(#13296) * Make DataTable metadata protected so it will be serialized in derived classes. * Allow SystemTestCase::runAnyApiTest to test any format and use a testSuffix. * Add test for metadata serialization & note about it in field docs.
2018-09-06Couple test related changes for tests that load multiple other plugins (#13319)diosmosis
* In tests:setup-fixture do not overwrite a Fixtures existing extra plugins to load. * Only uninstall plugins in test if dropDatabaseInTeardown is false. * Load fixture extra plugins in testing environment manipulator. * Handle test case fixture too.
2018-09-06Add [tests] config option to enable logging in tests. (#13335)diosmosis
* Add [tests] config option to enable logging in tests. * Allow tests:run/tests:run-ui commands to enable logging for individual runs + during tests only log to file. * Remove Fixture field * fix failing test * fixing build * Fix another failure. * Fix an other test.
2018-09-05Fix tests and move AutoSuggest test to API plugin to shorten system tests ↵diosmosis
build. (#13377) * Fix tests and move AutoSuggest test to API plugin to shorten system tests build. * Speed up system tests by clearing datatable manager cache before API call. * Fix stalled test. * Update log analytics submodule & VisitorGenerator submodule. * Update expected system test output (subtable IDs changed).
2018-09-04Use font icon for visitorlog instead of images (#13312)Stefan Giehl
* Use font icon for visitorlog instead of images * Update expected screenshots.
2018-09-01Fix capabilities weren't detected correctly (#13368)Thomas Steur
* Fix capabilities weren't detected correctly * added test
2018-08-31Use Python 2.7 for travis tests (#13282)Stefan Giehl
* use python 2.7 * adjust travis submodule
2018-08-30Adds UI tests for Custom Logos (#13311)Stefan Giehl
2018-08-29Single metric view fixes (#13352)diosmosis
* Make sure client side sparkline limits first date in range to min allowed date. * For goal metrics make sure sparkline in single metric view uses GOal.get w/ idGoal. * UI test tweak. * update ui screenshots * Fixing tests. * Fix caching in singlemetricview. * Update expected UI test. * Update screenshots.
2018-08-21Remove date & time in system tests.diosmosis
2018-08-17Always set Auth interface in DI to the correct plugin's Auth implementation ↵diosmosis
(#13279) * Make sure Auth interface is always set even if session auth succeeds. * Add failing test. * Fix FrontControllerTest * Put hash token authentication back since it is still in use in plugins.
2018-08-15update ui filessgiehl
2018-08-15Three small bug fixes (#13288)diosmosis
* Fix two bugs in users manager component (bulk actions were limited to 100 rows and cancel link spanned whole container length). * Add font styles to top of report link in email. * remove commas * Updated expected files. * update tests again * update test files again.
2018-08-13update UI filessgiehl
2018-08-13Add backtrace to exceptions treated as fatal errors w/ test, … (#13276)diosmosis
* Add backtrace to exceptions treated as fatal errors w/ test, and move partial backtrace reconstruction to FrontController so different safemodes can receive it. * Add missing file. * fixing tests * fix test finally * fix submodule
2018-08-11If warning/error log detected in console command exit w/ code = 1. (#13275)diosmosis
2018-08-11In piwik.updatePeriodParamsFromUrl() get period/date values from hash or ↵diosmosis
URL. (#13268) * In piwik.updatePeriodParamsFromUrl() get period/date values from hash or URL. * Remove date parameter from defaults in ajaxHelper, already handled properly below. * Remove .only * fixing tests & add new test for MultiSites * correct screenshot * upload screenshot + remove rejected change * Remove port in Url::isLocalHost().
2018-08-10Updates device detector to latest 3.11.1 (#13274)Stefan Giehl
* Updates device detector to latest 3.11.1 * update test
2018-08-09Add notification when report w/ segment has no data, but segment is ↵3.6.0-b4diosmosis
unprocessed (#12823) * When a report has no data, check if it is for an unprocessed segment and display an explanatory notification. * Remove transient notifications on reporting page change, allow datatable views to add notifications, use to display unprocessed segment message. * Update changelog. * Internationalize unprocessed segment message. * Parse notification divs in dashboardWidget.js when setting widget content. * Tweak message. * Change PR to use different approach: throw exception when no archives found and segment is used, then detect exception in new event. * Update changelog + document new event. * Unfinished review changes * more review fixes * Do not show notification w/ custom segments. * apply pr review * Apply review. * undo escaping since it was not needed & get test to pass * Different strategy + new test. * Fix tests. * Update two expected screenshots.
2018-08-07Fix ui tests (#13259)3.6.0-b3diosmosis
* Put generated @theme LESS variables before everything else so theme LESS can override them. * Update screenshots.
2018-08-07Scalable UX for user management (#13158)diosmosis
* Create empty components. * Mock up users list pagination. * Finish initial version of mockup. * Tweak to UI * More UI changes to new users manager screen. * More UI changes * Mock up user permission edits. * More tweaks to user permission editing (on both edit form & in users table). * add options * Another iteration on the UsersManager UI. * Update UsersManager UI again. * Implementing parts of the UI, fixing issue w/ overlapping material selects, creating dropdown directives for dropdown w/ submenu using materializecss, change bulk actions to be dropdown button. * Merge menu/submenu directives. * More superuser UI only functionality. * Fill out more logic of users manager UI + merging extra unneeded components/directives. * More users manager UI only changes. * Incomplete API method for new users list page. * Fill in server side pagination logic w/ tests & generally get to work in UI. * Make sure selects w/ placeholders can be unset. * Add loading state to users list + fix pagination issues + resize pagination in case the numbers are large. * Add last seen time to getUsersPlusAccessLevel() so it displays in UI. * Add permission edit pagination AJAX query + server side code. * Add "add access" button to user permission component. * Change permissions column to role + remove superuser checkbox & merge w/ Role column. * Delete user + bulk delete functionality. * Get delete users to work when entire search is selected. * Ask for confirmation before setting access in users list & implement access change logic. * Get bulk access functionality on users list to work (w/ tests). * Fix a bug in user table filtering + get permissions edit search to work. * Complete logic for permissions edit. * Change add user workflow so we do not have to save each permission edit in memory before saving whole user. * Add/edit user functionality. * Toggle superuser access functionality + some modal fixes. * in users list display ajax loading notification so counter is not changed visibly before rows are loaded. * initial review changes, disable functionality when viewing user is not superuser and some UI tweaks. * Redo top controls for user permission edit and add slide up toast notification for when a site is added. * Display warning in user permission edit if user has no access at all. * Do not reload users after going back from user edit form. * Force giving a new user access to a site when creating a user and make sure user list reloads if a user is modified, but does not realod if no user is modified. * Add form help to the non-straightforward fields. * Remove old usersmanager code & fix pagination bug. * Add help icon explaining roles to users list + permission edit. * Allow admin users to create other users + fix some regressions when making page-users-list not reload every time. * Apply self review changes. * Do not allow editing user details when an admin user edits a user. * Starting on UI tests. * Limit users displayed in page list to those that already have access to sites the current user is an admin of. * Refactor bulk/single AJAX calls & redraw component boundaries (users manager component owns user search state, paged users list owns table/control state). * Get add existing user modal to work. * write most UI tests + modify fixture * Fill out rest of UI test suite & get the rest to pass. * fix couple regressions * Get UI tests to pass and start on translation. * adding translations * try to fix some tests * Fixing API tests. * Fixing UsersManager tests. * Fix UI tests. * Add capabilities to new API output. * remove non-existant file references. * Add Write role to dropdowns. * Select from proper join. * tweak test * Updating UI tests. * Change styling of user permissions edit. * Update screenshots * Apply some PR feedback. * apply some review feedback * more review changes * update file headers * remove some TODOs * fix some tests * some more review fixes * update test files * Fix failing tests.
2018-08-06Updates omnifixture (#13249)Stefan Giehl
* updates geoip2 test db * updates omnifixture * update ui files
2018-08-06Fixing regressions causing UI tests to fail (#13252)diosmosis
* Request.initAuthenticationObject is not always called now so use different event. * default value for form field may not be JSON. * Add date parameter as default value in ajaxHelper in case it is needed. * update screenshot * Update screenshot. * Do not show default value when it is an array and only contains undefined values.
2018-08-03When consent explicitly given in JS tracker add &consent=1 to URL (#13230)diosmosis
* When consent explicitly given in JS tracker add &consent=1 to URL so apache logs will remember consent was given. * add parameter when sending the request * clarify condition for sending consent=1 param
2018-08-03Reconstruct partial stack traces for fatal errors. (#13238)diosmosis
* Reconstruct partial stack traces for fatal errors. * tweak to fatal error breadcrumb * Add docs + fix test. * Add fatal error test and improve fatal error stack trace a bit. * fix test on travis
2018-08-03Add reusable widget to display single metric w/ sparkline & evolution ↵diosmosis
percent (+ other changes) (#13101) * Add empty metric for single metric view. * Add new isReusable property to widget metadata & if set to true, do not grey out the widget in the dashboard manager, even if the widget is used in the dashboard. * Initial working version of single metric view. * Get single metric view widget to work and look correctly (no series picker). * Add series picker to single metric widget and add filter_last_period_evolution parameter. * Persist metric change through dashboard widget parameter saving. * Loading state for single metric view. * Make new evolution param work on processed reports + tweak component implementation. * Tweak CSS and make sure angular components are compiled in widget preview. * Make component work with widget preview and avoid unnecessary widget reloads when multiple widgets of the same type are shown. * Generalize JS lastN range period computing and use to create standalone sparkline angular component and get rid of need for "past-period" argument to single metric view. * Add format_metrics: "1" to API.get method. * Add escaping to _angularComponent.twig. * hacky fix for formatting revenue columns * Format past data values & allow evolution to be calculated for processed metrics. * filter evolution changes * Fix issue in subtable recursion for processed metric computation & metric formatting + add new processed metric compute hooks to fix bug in evolution calculation on subtables. * remove isReusable property. * attempting to change strategy * simpler solution that does not require backend changes * remove unneeded code + fix issue w/ formatted metrics * remove some more unneeded code * write UI test * add new screenshots * Add all goals to single metric view picker. * move category * fix test * fixing more tests * Fixing some UI tests. * Update more screenshots. * update two more screenshots
2018-08-03Allow emails to be themed. (#13223)diosmosis
* Allow emails to be themed. * Tweaks + remove manual test code. * Add brandNameLong to event & color links in email header. * update test files
2018-08-02Add privacy policy/terms and conditions settings and display in bottom of ↵diosmosis
certain pages. (#13219) * Add privacy policy/terms and conditions settings and display in bottom of certain pages. * tweak * simplify PrivacyManager::shouldRenderFooterLinks(). * Update system test files * removes typo * do not render view if no links available * Remove footer margin in embedded widget. * ensure footer margin doesn't change (for UI tests) * update ui files
2018-08-01Add removeEcommerceItem() and clearEcommerceCart() methods to JS tracker. ↵diosmosis
(#13228) * Add removeEcommerceItem() and clearEcommerceCart() methods to JS tracker. * jslint and changelog * minify JS * update test count * remove newlines
2018-07-31Updates device detector to latest version (#13237)Stefan Giehl
Updates device detector to 3.11.0
2018-07-27update screenshotsdiosmosis
2018-07-27Translate currency names (#13068)Christian Schmidt
* Translate currency names * Update tests * Fix more tests * Use plural form in config key name * Update screenshots
2018-07-27Sessions with more security (#12208)diosmosis
* Modifying "cookie authentication" to be more secure. Instead of authenticating by token auth if it exists in the cookie, validate an existing session. If the session has the user name stored as a session var, it has been authenticated. If the request has the same IP address and user agent as the request that created the session, the request is from the user that created the session. If both of these are true, then the session is valid, and we don't need a token auth to authenticate. If the session is deleted before the Piwik auth cookie expires (due to garbage collection), we attempt to re-authenticate using a secure hash of the token auth. We don't do this on every request since password_verify() will, at BEST, add 3.5ms to every request. * Invalidate existing sessions after user password change. Invalidation is accomplished w/o having to individually touch sessions by: 1. Using the password hash as the piwik_auth key secret, instead of the token auth. So when a password changes, existing piwik_auth keys are no longer valid. This affects session re-authentication. 2. Saving the session start time & the last time a user's password was modified, and checking that the session start time is always newer than the password modification time. * Set session.gc_maxlifetime to login_cookie_expire time so session data does not disappear, remove session re-auth functionality & tie cookie hash to password modified time instead of password hash to retain automatic session invalidation on password change. * In SessionInitializer, clear other cookie values so previously stored token auths will be removed. * Make sure anonymous user is still default user whan authenticating. * fixing test failures * Remove hash checking in piwik_auth cookie. piwik_auth cookie still required since it's presence indicates we should use SessionAuth instead of the normal authentication mechanism. Since there's always a session, even if you're not logged in, PIWIK_SESSID can't be used by itself to determine this. * Make sure session auth doesnt break in edge case where ts_password_modified column does not exist. * Clarify session destruction/invalidation logic in SessionAuth. * Make UsersManagerTest slightly more comprehensive. * Use Date::now()->getTimestampUTC() instead of time() in SessionFingerprint::initialize(). * Check getUser returns correct user info in SessionAuth for sanity. * Add SessionInitializer::getAuthCookie() back since it is @api. * Remove IP address from session auth info + check. * Refactor session start changes so it is started in one place only. * Remove SessionAuthCookieFactory & deprecate auth cookie INI config vars (still needed for SessionInitializer deprectaed method). * Make sure user can still login if ts_password_modified column is not present in database. * Rename ts_password_modified Update class. * Update comment in SessionAuth to include why Piwik tries to create another session. * Restore 3.x-dev SessionInitializer for BC (deprecated), move new SessionInitializer to core, add tests for both SessionInitializers. * Change update to 3.5 version. * Make sure normal auth implementation is used if sessionauth fails so anonymous user can be logged in. * On logout clear session fingerprint so same session cannot be used to login. * Change update name + bump version, and make sure Session::rememberMe() is called before session is started (otherwise it has no effect). * Fixing tests. * apply review fixes * remove test
2018-07-26update expected screenshotdiosmosis
2018-07-25Replace proxy redirect with rel=noreferrer (#12780)Christian Schmidt
* Replace proxy redirect with rel=noreferrer * Add noopener * Restore action=redirect for non-Matomo links * Wrap referring URLs * NO target on download link * Fix Github links * Fix whitespace * Fix tests * Revert change * Revert changes * Fix tests * Add noreferrer shim for MSIE 10 * Remove all action=redirect links * Restore noreferrer * Restore test * Fix one more occurrence * Update changelog * Combine if's * Fix changelog wording * Fix stray whitespace
2018-07-25Make CORS domains configurable in UI (#13174)Stefan Giehl
* Make CORS domain configureable in UI * Move trusted host settings to SystemSettings class * Use unique id for pluginSettings * Improve styling * Improve help text * improve code & naming * Implements new UI field array type * review adjustments * reorganize form demo * update UI files * update system test files * Improve handling of Config Settings
2018-07-25one last ui test updatediosmosis
2018-07-25update screenshotsdiosmosis
2018-07-25update screenshots for #13135diosmosis
2018-07-25fix glossary table of content style (#13145)Lukas Winkler
* fix glossary table of content style
2018-07-24Add segment for event value dimension. (#13090)diosmosis
* Add segment for event value dimension. * update some test files * subtable IDs updated
2018-07-24Adds system check for forced SSL connection (#13193)Stefan Giehl
* Adds system check for forced SSL connection * review adjustments * update screenshots * update screenshot
2018-07-24Renames console to Matomo (#13192)Stefan Giehl
and changes --piwik-domain option to --matomo-domain
2018-07-24Implements "Social network" as a new referrer type (#12993)Stefan Giehl
* Implements new referrer type for social networks * removes footer message from social report * Show social network referrers in Transitions * update / improve tests * Improves API code * use transient cache instead of static properties * remove debugging statement * updates changelog * cs * Update expected test files. * Update expected screenshots
2018-07-23Fix array table may not be joined correctly due to table sort issue (#13186)Thomas Steur
2018-07-19Add ability for Archivers to initiate archiving for other plugins & use in ↵diosmosis
Goals (#13105) * Add required segments for Goals.get to known segments to archive list. * Add test to ArchiveCronTest. * Allow archiving dependent archives in Goals Archiver. * Clean up last commit & use Segment::combine in more places. * skip dependent processing if same plugin/segment * Move ArchiveCronTest to CoreConsole plugin since it is rather long running. * Fixing tests. * Remove use statements. * Fix tests dependent on archive tables. * check w/ urlencoded/decoded segment/condition in Segment::combine(). * Another test fix * final test fix
2018-07-18Introducing a new role "write" and possibility to define capabilities (#13163)Thomas Steur
* started working on some ACL concept * acl implementation * add category * small tweaks * more tweaks * more api methods and fixes * cache capabilities * various enhancements, fixes, tweaks * more tweaks * added more tests and fixed some bugs * fix parameter * make sure to be BC * make sure to be BC * fix some tests * more apis, translations, changelog entry, ... * update db * correct error message * fix capabilities were not detected in tests * directly access provider * fix and add test * JS api to check capabilities, better structure for capabilities in tests * add ability to inject permissions * apply review changes * fix test
2018-07-17Refactor archivers to support multiple idsites (#13168)Thomas Steur
* refactor archivers to support multiple idsites * added a test to ensure multiple sites work * add comment
2018-07-17Ensure segmented visitor log numeration doesn't break (#13169)Stefan Giehl
* Ensure segmented visitor log numeration doesn't break * Update expected UI test.
2018-07-10Disables some more feature if internet features are disabled (#13076)Stefan Giehl
* Disable GeoIP update tasks if no internet connection available * Show GeoLocation Auto Updater UI only with enabled internet connection * Throw exception if Marketplace is used without enabled internet features * Hide Marketplace menu entry if internet is disabled * Implements new plugin class method requiresInternetConnection, to automatically unloaded plugins if required * Improve how plugins not working without internet connection are shown in plugin list * Adds UI test * typo 'whether'