Skip to content

Add fastAPI test coverage for upstream_map_indexes in execution API #50541

Closed

Description

@amoghrajesh

Body

#49996 added support for returning upstream_map_indexes as response of the /run endpoint but there is no test coverage that checks if expected value is returned or not.

We should ideally cover it so that any regressions are caught.

Committer

  • I acknowledge that I am a maintainer/committer of the Apache Airflow project.

Activity

  1. added
    area:APIAirflow's REST/HTTP API
    kind:metaHigh-level information important to the community
    and removed
    kind:metaHigh-level information important to the community
    on May 13, 2025
  2. anasatzemoso commented on Sep 18, 2025

    @anasatzemoso
    Contributor

    Can I work on this issue ?

  3. anasatzemoso commented on Sep 19, 2025

    @anasatzemoso
    Contributor

    I looked into this and found that there’s already a parameterized test (test_ti_run) for the /execution/task-instances/{ti.id}/run endpoint. It patches _get_upstream_map_indexes and asserts that the upstream_map_indexes field is returned in the response with the expected structure across multiple scenarios (ints, lists, None, mixed types).

    This seems to cover the gap mentioned in the issue — verifying that the field is returned correctly in the API response. Could you confirm if this is the intended scope, or if there’s anything additional expected here?

  4. removed their assignment
    on Feb 20, 2026
  5. added a commit that references this issue on Feb 21, 2026
    ce073fd
  6. added 2 commits that reference this issue on Mar 4, 2026
    9b81330
    1baa508
  7. added a commit that references this issue on Mar 11, 2026
    f1cb407
  8. added a commit that references this issue on Mar 11, 2026
    9814fa4
  9. added a commit that references this issue on Mar 12, 2026
    923f3af
  10. added a commit that references this issue on Mar 13, 2026
    29daa70
  11. added a commit that references this issue on Aug 3, 2026
    d4312f6
  12. added a commit that references this issue on Sep 12, 2026
    8d74c30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions