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

Feat/ota 4118/director targets sanity #1600

Merged
merged 6 commits into from
Mar 16, 2020

Conversation

pattivacek
Copy link
Collaborator

@codecov-io
Copy link

codecov-io commented Mar 13, 2020

Codecov Report

Merging #1600 into master will increase coverage by 0.05%.
The diff coverage is 97.22%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #1600      +/-   ##
=========================================
+ Coverage   82.44%   82.5%   +0.05%     
=========================================
  Files         189     189              
  Lines       11940   11962      +22     
=========================================
+ Hits         9844    9869      +25     
+ Misses       2096    2093       -3
Impacted Files Coverage Δ
src/libaktualizr/primary/sotauptaneclient.cc 90.71% <ø> (ø) ⬆️
src/libaktualizr/uptane/directorrepository.h 100% <ø> (ø) ⬆️
src/libaktualizr/uptane/tuf.cc 90.13% <0%> (ø) ⬆️
src/libaktualizr/uptane/exceptions.h 92.15% <100%> (ø) ⬆️
src/libaktualizr/uptane/imagerepository.h 100% <100%> (ø) ⬆️
src/libaktualizr/uptane/directorrepository.cc 97.4% <100%> (+3.65%) ⬆️
src/libaktualizr/uptane/uptanerepository.h 100% <100%> (ø) ⬆️
src/libaktualizr/uptane/imagerepository.cc 89.71% <100%> (+0.82%) ⬆️
src/libaktualizr/storage/sql_utils.h 85.89% <0%> (-1.29%) ⬇️
src/libaktualizr/package_manager/ostreemanager.cc 80.51% <0%> (-0.74%) ⬇️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e4f39da...f6d0d02. Read the comment docs.

zabbal
zabbal previously approved these changes Mar 13, 2020
Copy link
Contributor

@zabbal zabbal left a comment

Choose a reason for hiding this comment

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

Nice!

@pattivacek pattivacek force-pushed the feat/OTA-4118/director-targets-sanity branch from eada9bb to 6c91134 Compare March 13, 2020 15:51
@pattivacek pattivacek force-pushed the feat/OTA-4118/director-targets-sanity branch 2 times, most recently from 0210180 to 6f5f09b Compare March 16, 2020 07:31
pattivacek and others added 6 commits March 16, 2020 15:25
* Check that Director Targets metadata doesn't have delegations.
* Check that no ECU IDs are repeated in Director Targets metadata.

Signed-off-by: Patrick Vacek <[email protected]>
Set last_exception and mark the functions as private.

Also move last_exception to UptaneRepository, since it is used in the
same way by both repos.

Signed-off-by: Patrick Vacek <[email protected]>
The Uptane standard dictates that we should abort if they are found.

Signed-off-by: Patrick Vacek <[email protected]>
We've supported this for a very long time. I put a comment quoting the
Uptane standard at the place where the check is done.

Signed-off-by: Patrick Vacek <[email protected]>
@pattivacek pattivacek force-pushed the feat/OTA-4118/director-targets-sanity branch from 405ebdc to f6d0d02 Compare March 16, 2020 14:25
@lbonn lbonn merged commit add3c27 into master Mar 16, 2020
@lbonn lbonn deleted the feat/OTA-4118/director-targets-sanity branch March 16, 2020 15:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants