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-absolute-bytes-difference 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-absolute-bytes-difference/all-projects/user/content/2021/01/01
- metrics/editors/top-by-absolute-bytes-difference/all-wikipedia-projects/all-editor-types/content/2021/04/all-days
- metrics/editors/top-by-absolute-bytes-difference/all-wiktionary-projects/all-editor-types/content/2021/04/all-days
- metrics/editors/top-by-absolute-bytes-difference/ab.wikipedia/user/all-page-types/2021/04/all-days
- metrics/editors/top-by-absolute-bytes-difference/ab.wikipedia/user/content/2021/02/02
- metrics/editors/top-by-absolute-bytes-difference/www.ab.wikipedia.org/user/content/2021/02/02
- metrics/editors/top-by-absolute-bytes-difference/ro.wiktionary/user/non-content/2021/04/30
- metrics/editors/top-by-absolute-bytes-difference/sw.wikipedia/user/content/2020/12/31
- metrics/editors/top-by-absolute-bytes-difference/sw.wikipedia.org/user/content/2020/12/31
- 400 Bad request
- invalid editor-type and page-type
- metrics/editors/top-by-absolute-bytes-difference/sw.wikipedia/invalid-user/content/2020/12/31
- metrics/editors/top-by-absolute-bytes-difference/sw.wikipedia/user/invalid-content/2020/12/31
- invalid year, month and day
- metrics/editors/top-by-absolute-bytes-difference/sw.wikipedia/user/content/202/12/30
- metrics/editors/top-by-absolute-bytes-difference/sw.wikipedia/user/content/2020/13/30
- metrics/editors/top-by-absolute-bytes-difference/sw.wikipedia/user/content/2020/12/32
- metrics/editors/top-by-absolute-bytes-difference/sw.wikipedia/user/content/2020/12/01a
- invalid characters (not implemented yet)
- metrics/editors/top-by-absolute-bytes-difference/sw.wiki*pedia/user/content/2020/12/31
- invalid editor-type and page-type
- 404 Not Found
- when requesting a non-existent project
- metrics/editors/top-by-absolute-bytes-difference/nonexistentproject/user/content/2020/12/31
- when no data is found
- metrics/editors/top-by-absolute-bytes-difference/sw.wikipedia/user/content/2023/12/31
- when requesting a non-existent project
- 404 Invalid route
- metrics/editors/top-by-absolute-bytes-difference//sw.wikipedia/user/content/2020/12/31