This is a subtask of T346301: AQS2.0: Editor Analytics Service : Create QA automation test suite
Goal
Define and implement all scenarios for the aggregate endpoint (editor-analytics) for the QA test suite
Scenarios to be done
- 200 OK varying project, editor-type, page-type, activity-level, granularity and dates
- metrics/editors/aggregate/sw.wikipedia/all-editor-types/all-page-types/all-activity-levels/daily/20210302/20210901
- metrics/editors/aggregate/sw.wikipedia.org/anonymous/content/1..4-edits/monthly/20210302/20210901
- metrics/editors/aggregate/www.sw.wikipedia.org/group-bot/non-content/5..24-edits/daily/20210302/20210901
- metrics/editors/aggregate/www.ab.wikipedia/name-bot/all-page-types/25..99-edits/daily/20190227/20211231
- metrics/editors/aggregate/sw.wikipedia/user/content/100..-edits/monthly/20210302/20210901
- metrics/editors/aggregate/sw.wikipedia/user/content/100..-edits/monthly/2021030200/20210901
- metrics/editors/aggregate/ab.wikipedia.org/user/content/100..-edits/monthly/20200302/2021090100
- 400 Bad request
- all-... filter not allowed for this endpoint
- metrics/editors/aggregate/all-projects/all-editor-types/content/1..4-edits/monthly/20210302/20210901
- metrics/editors/aggregate/all-wikipedia-projects/all-editor-types/content/1..4-edits/monthly/20210302/20210901
- invalid editor-type, page-type, activity-level and granularity
- metrics/editors/aggregate/sw.wikipedia/invalid-editor-type/all-page-types/all-activity-levels/daily/20210302/20210901
- metrics/editors/aggregate/sw.wikipedia/anonymous/invalid-page-type/1..4-edits/monthly/20210302/20210901
- metrics/editors/aggregate/sw.wikipedia/group-bot/non-content/invalid_activity_level/daily/20210302/20210901
- metrics/editors/aggregate/sw.wikipedia/name-bot/all-page-types/25..99-edits/invalid_granularity/20210302/20210901
- invalid dates: start date invalid, end date invalid, end before start and no full months
- metrics/editors/aggregate/sw.wikipedia/all-editor-types/all-page-types/all-activity-levels/daily/20210302333/20210901
- metrics/editors/aggregate/sw.wikipedia/all-editor-types/all-page-types/all-activity-levels/daily/20210302/20210901aaa
- metrics/editors/aggregate/sw.wikipedia/all-editor-types/all-page-types/all-activity-levels/daily/20210302/20200901
- metrics/editors/aggregate/sw.wikipedia/all-editor-types/all-page-types/all-activity-levels/monthly/20210302/20210401
- invalid characters (not implemented yet)
- metrics/editors/aggregate/sw.wi*kipedia/all-editor-types/all-page-types/all-activity-levels/daily/20210302/20210901
- all-... filter not allowed for this endpoint
- 404 Not Found
- non-existent project
- metrics/editors/aggregate/invalid_project/all-editor-types/content/1..4-edits/monthly/20210302/20210901
- no data found
- metrics/editors/aggregate/sw.wikipedia/all-editor-types/content/1..4-edits/monthly/20230302/20240901
- non-existent project
- 404 Invalid route
- metrics/editors/aggregate//sw.wikipedia/all-editor-types/content/1..4-edits/monthly/20210302/20210901