Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ngtests: add tests for fetching targets #1642

Closed
sechkova opened this issue Oct 27, 2021 · 0 comments · Fixed by #1728
Closed

ngtests: add tests for fetching targets #1642

sechkova opened this issue Oct 27, 2021 · 0 comments · Fixed by #1728
Assignees
Labels
backlog Issues to address with priority for current development goals testing
Milestone

Comments

@sechkova
Copy link
Contributor

Description of issue or feature request:
Add tests for updating delegated roles metadata following 5.7 from the specification. A preliminary list of expected test cases:

Fetch target with consistent targets on/off
- local target file exists
- target hashes/length match
Failure to fetch target
- Download errors
- Hashes and length mismatch
Caching

The tests should:

  • Use RepositorySimulator for serving test files in-memory.
  • If possible avoid duplicating test cases when toggling consistent targets
  • "black-box" Updater, don't look at its internals, check if files are downloaded as expected (or not downloaded as expected).
@sechkova sechkova added testing backlog Issues to address with priority for current development goals labels Oct 27, 2021
@sechkova sechkova self-assigned this Dec 8, 2021
@sechkova sechkova added this to the Sprint 14 milestone Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Issues to address with priority for current development goals testing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant