-
Notifications
You must be signed in to change notification settings - Fork 4
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #54 +/- ##
===========================================
+ Coverage 52.06% 70.72% +18.66%
===========================================
Files 7 7
Lines 1281 1288 +7
===========================================
+ Hits 667 911 +244
+ Misses 540 305 -235
+ Partials 74 72 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the follow-up. Can you also check and address why the CI fails?
Thanks @rdimitrov. The CI fails running the examples with There is a go-linter check that I'll fix and push. |
Go linter is fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the feedback 💯 We should be okay to merge it once we resolve the last comment 👍
Previously Targets' `AddKey(key, role)` was returning error that role doesn't exist in the case when role exists and already has that key. This change fixes that and alligns the function with the python-tuf reference implementation, where the key is added to delegations, even if it's not added to Roles and SuccinctRoles Signed-off-by: Ivana Atanasova <iyovcheva@vmware.com>
Previously the target file path hash was not base64 URL encoded which ended up to not being able to properly compare if role's PathHashPrefixes contains a prefix of that hash. This change fixes the encoding Signed-off-by: Ivana Atanasova <iyovcheva@vmware.com>
This allows testing if the suffix len is properly calculated in the metadata Signed-off-by: Ivana Atanasova <iyovcheva@vmware.com>
This change changes the targets files used for targets metadata to be simplified and neutral for the purpose of more clear and less mistake-prone test cases. It also adds new keys for additional metadata api testing Signed-off-by: Ivana Atanasova <iyovcheva@vmware.com>
This change completes the metadata api test coverage with reference to the python-tuf implementations, excluding few use- cases that are not applicable Signed-off-by: Ivana Atanasova <iyovcheva@vmware.com>
This fixes few error checks that were not handled in the metadata api tests Signed-off-by: Ivana Atanasova <iyovcheva@vmware.com>
This change provides tiny updates of two metalada helper functions to giarantee more stable testing over time Signed-off-by: Ivana Atanasova <iyovcheva@vmware.com>
45e3e95
to
b30c860
Compare
Thanks @rdimitrov, just pushed the updates and rebased with the fixed CI. |
* Fix AddKey for targets Previously Targets' `AddKey(key, role)` was returning error that role doesn't exist in the case when role exists and already has that key. This change fixes that and alligns the function with the python-tuf reference implementation, where the key is added to delegations, even if it's not added to Roles and SuccinctRoles Signed-off-by: Ivana Atanasova <iyovcheva@vmware.com> * Fix delegated path prefix check Previously the target file path hash was not base64 URL encoded which ended up to not being able to properly compare if role's PathHashPrefixes contains a prefix of that hash. This change fixes the encoding Signed-off-by: Ivana Atanasova <iyovcheva@vmware.com> * Add SuccinctRoles.GetSuffixLen() for the purpose of testing This allows testing if the suffix len is properly calculated in the metadata Signed-off-by: Ivana Atanasova <iyovcheva@vmware.com> * Add test repository data improvements This change changes the targets files used for targets metadata to be simplified and neutral for the purpose of more clear and less mistake-prone test cases. It also adds new keys for additional metadata api testing Signed-off-by: Ivana Atanasova <iyovcheva@vmware.com> * Add more metadata api tests This change completes the metadata api test coverage with reference to the python-tuf implementations, excluding few use- cases that are not applicable Signed-off-by: Ivana Atanasova <iyovcheva@vmware.com> * Fix go linter checks for metadata api tests This fixes few error checks that were not handled in the metadata api tests Signed-off-by: Ivana Atanasova <iyovcheva@vmware.com> * Improve metadata hepler test functions usage This change provides tiny updates of two metalada helper functions to giarantee more stable testing over time Signed-off-by: Ivana Atanasova <iyovcheva@vmware.com> --------- Signed-off-by: Ivana Atanasova <iyovcheva@vmware.com>
This change completes the metadata api test coverage with reference to the python-tuf implementation, excluding few use-cases that are not applicable
Provides two small metadata fixes and an improved test repository data.