This is a subtask of T346301: AQS2.0: Editor Analytics Service : Create QA automation test suite
Goal
Define and implement all scenarios for the top-by-edits endpoint (editor-analytics) for the QA test suite
Scenarios to be done
- 200 OK varying project (all-project, all-[family]-projects), editor-type, page-type and “all-days” as a valid day values
- metrics/editors/top-by-edits/all-projects/user/content/2021/01/01
- metrics/editors/top-by-edits/all-wikipedia-projects/all-editor-types/content/2021/04/all-days
- metrics/editors/top-by-edits/all-wiktionary-projects/all-editor-types/content/2021/04/all-days
- metrics/editors/top-by-edits/ab.wikipedia/user/all-page-types/2021/04/all-days
- metrics/editors/top-by-edits/ab.wikipedia/user/content/2021/02/02
- metrics/editors/top-by-edits/www.ab.wikipedia.org/user/content/2021/02/02
- metrics/editors/top-by-edits/ro.wiktionary/user/non-content/2021/04/30
- metrics/editors/top-by-edits/sw.wikipedia/user/content/2020/12/31
- metrics/editors/top-by-edits/sw.wikipedia.org/user/content/2020/12/31
- 400 Bad request
- invalid editor-type and page-type
- metrics/editors/top-by-edits/sw.wikipedia/invalid-user/content/2020/12/31
- metrics/editors/top-by-edits/sw.wikipedia/user/invalid-content/2020/12/31
- invalid year, month and day
- metrics/editors/top-by-edits/sw.wikipedia/user/content/202/12/30
- metrics/editors/top-by-edits/sw.wikipedia/user/content/2020/13/30
- metrics/editors/top-by-edits/sw.wikipedia/user/content/2020/12/32
- metrics/editors/top-by-edits/sw.wikipedia/user/content/2020/12/01a
- invalid characters (not implemented yet)
- metrics/editors/top-by-edits/sw.wiki*pedia/user/content/2020/12/31
- invalid editor-type and page-type
- 404 Not Found
- non-existent project
- metrics/editors/top-by-edits/nonexistentproject/user/content/2020/12/31
- no data found
- metrics/editors/top-by-edits/sw.wikipedia/user/content/2023/12/31
- non-existent project
- 404 Invalid route
- metrics/editors/top-by-edits//sw.wikipedia/user/content/2020/12/31