FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

tests: Add some initial tests for tuf.repository by jku · Pull Request #2651 · theupdateframework/python-tuf · GitHub

tests: Add some initial tests for tuf.repository - #2651

Merged
jku merged 1 commit into
theupdateframework:developfrom
jku:add-repository-tests
Jun 3, 2024
Merged

tests: Add some initial tests for tuf.repository#2651
jku merged 1 commit into
theupdateframework:developfrom
jku:add-repository-tests

Conversation

jku commented May 31, 2024
edited
Loading

Copy link
Copy Markdown
Member

Hard to tell how easy these are to understand for someone who did not write the module... but here's my attempt at testing the tuf.repository.Repository interface:

  • TestingRepository is an implementation of the interface (mostly a simplified copy of the repository example)
  • that implementation is used in some very simple tests, mostly of do_snapshot and do_timestamp
  • Two tests are marked expectedFailure because of repository: Tweak snapshot/timestamp triggers #2438

jku mentioned this pull request May 31, 2024
jku force-pushed the add-repository-tests branch from c7699b4 to 3448c3d Compare May 31, 2024 11:18

This comment was marked as outdated.

jku force-pushed the add-repository-tests branch from 3448c3d to 3f33e46 Compare June 3, 2024 06:46
jku requested a review from lukpueh June 3, 2024 06:47
jku marked this pull request as ready for review June 3, 2024 06:48

coveralls commented Jun 3, 2024
edited
Loading

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 9345843931

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.8%) to 96.787%

Totals
Change from base Build 9299080107: -0.8%
Covered Lines: 1541
Relevant Lines: 1578

💛 - Coveralls

This comment was marked as outdated.

These are pretty basic and do not test much about the content of the
repository... but it does check version numbers (and how many versions
have been published) in a couple of situations.

Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
jku force-pushed the add-repository-tests branch from 3f33e46 to 2b9cc1e Compare June 3, 2024 07:12

lukpueh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Looks great! I think the tests are reasonable and okay easy to understand. The repository is harder and maybe not so intuitive to implement.

jku merged commit bafab1e into theupdateframework:develop Jun 3, 2024
jku deleted the add-repository-tests branch December 30, 2024 09:16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL