Page MenuHomePhabricator

AQS 2.0: Editor Analytics: QA test suite scenarios for the top-by-absolute-bytes-difference endpoint
Closed, ResolvedPublic

Description

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
  • 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
  • 404 Invalid route
    • metrics/editors/top-by-absolute-bytes-difference//sw.wikipedia/user/content/2020/12/31

Event Timeline

Sfaci triaged this task as Medium priority.
Sfaci moved this task from Sprint Backlog to In Process on the Data Products (Sprint 01) board.
Sfaci removed a subscriber: hnowlan.
Sfaci updated the task description. (Show Details)
Sfaci updated the task description. (Show Details)

I have pushed a new branch (https://gitlab.wikimedia.org/repos/generated-data-platform/aqs/aqs_tests/-/merge_requests/23) with all the scenarios included in the ticket's description for editor top-by-absolute-bytes-difference endpoint.