Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Add trusted metadata set tests #56

Merged
merged 3 commits into from
Aug 23, 2023

Conversation

ivanayov
Copy link
Contributor

This change adds test coverage of 92.5% for trusted metadata set
corresponding to the python-tuf trusted metadata tests.

Improves the metadata test coverage as well with 8%

Signed-off-by: Ivana Atanasova iyovcheva@vmware.com

@codecov
Copy link

codecov bot commented Aug 22, 2023

Codecov Report

Patch coverage has no change and project coverage change: +1.75% 🎉

Comparison is base (86e9825) 70.72% compared to head (7bf7838) 72.48%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #56      +/-   ##
==========================================
+ Coverage   70.72%   72.48%   +1.75%     
==========================================
  Files           7        8       +1     
  Lines        1288     1512     +224     
==========================================
+ Hits          911     1096     +185     
- Misses        305      331      +26     
- Partials       72       85      +13     
Flag Coverage Δ
Go-1.20 72.48% <ø> (+1.75%) ⬆️
Go-1.21 72.48% <ø> (+1.75%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ivanayov ivanayov force-pushed the trusted_metadata_set_tests branch from 74a33a7 to 1be9f7c Compare August 23, 2023 08:07
This change allows using the testutils setup across all packages,
while previously it was using a correct path only for metadata

Signed-off-by: Ivana Atanasova <iyovcheva@vmware.com>
This change adds delegated roles to snapshot meta for testing
trusted metadata and updates existing tests with the changes

Signed-off-by: Ivana Atanasova <iyovcheva@vmware.com>
This change adds test coverage of 92% for trusted metadata set
corresponding to the python-tuf trusted metadata tests

Signed-off-by: Ivana Atanasova <iyovcheva@vmware.com>
@ivanayov ivanayov force-pushed the trusted_metadata_set_tests branch from 1be9f7c to 7bf7838 Compare August 23, 2023 11:45
@ivanayov
Copy link
Contributor Author

force-pushed @rdimitrov's CI update to not use succinct roles in examples

@rdimitrov rdimitrov merged commit b51bf02 into rdimitrov:main Aug 23, 2023
kipz pushed a commit to kipz/go-tuf-metadata that referenced this pull request Jan 29, 2024
* Fix relative paths for testutils setup

This change allows using the testutils setup across all packages,
while previously it was using a correct path only for metadata

Signed-off-by: Ivana Atanasova <iyovcheva@vmware.com>

* Update snapshot meta files in test repo

This change adds delegated roles to snapshot meta for testing
trusted metadata and updates existing tests with the changes

Signed-off-by: Ivana Atanasova <iyovcheva@vmware.com>

* Add trusted metadata set tests

This change adds test coverage of 92% for trusted metadata set
corresponding to the python-tuf trusted metadata tests

Signed-off-by: Ivana Atanasova <iyovcheva@vmware.com>

---------

Signed-off-by: Ivana Atanasova <iyovcheva@vmware.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants