Skip to content

ngtests: Add tests for delegated roles metadata update #1641

Closed

Description

@sechkova

Description of issue or feature request:

Add tests for updating delegated roles metadata following 5.6.7 from the specification. A preliminary list of expected test cases:

  • Successful update finds target's metadata
  • Successful update does not find target's metadata
  • Not loading targets metadata twice when looking for a target file
  • TargetInfo is what was expected
  • Visited max number of roles
  • Terminating delegations

The tests should:

  • Use RepositorySimulator for serving test files in-memory.
  • "black-box" Updater, don't look at its internals, check if files are downloaded as expected (or not downloaded as expected).

Activity

  1. added
    backlog
    on Oct 27, 2021
  2. self-assigned this
    on Nov 10, 2021
  3. added this to the Sprint 12 milestone on Nov 10, 2021
  4. jku commented on Nov 15, 2021

    @jku
    Member

    Leaving a note here: once #1654 merges, let's mostly use the implicit refresh in this tests: it makes the code one line shorter and makes sure everything gets tested (as the explicit refresh is tested plenty in test_updater_top_level_update.py already)

  5. modified the milestones: Sprint 12, Sprint 13 on Nov 24, 2021
  6. modified the milestones: Sprint 13, Sprint 14 on Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

backlogtesting

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions