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

Merge pull request #1525 from advancedtelematic/fix/secondary-root-version-bump #1525

Merged
merged 3 commits into from
Jan 17, 2020

Conversation

pattivacek
Copy link
Collaborator

@pattivacek pattivacek commented Jan 17, 2020

aktualizr_secondary: Accept initial Root metadata with version > 1.

@pattivacek pattivacek force-pushed the fix/secondary-root-version-bump branch from a7026d0 to 93a748b Compare January 17, 2020 13:54
/*
* Bump the version of the Director Root metadata.
*/
TEST(uptane_generator, refreshDirectorRoot) {
Copy link
Contributor

Choose a reason for hiding this comment

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

These tests looks really similar.
Would be cool to make most of their body common, with TEST_P or one test.

Might be impractical or just as ugly though, no big deal.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, these are pretty repetitive. I haven't gotten into parameterized testing much yet. Would be cool to do, just haven't had the time yet.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, in this case it's probably not worth holding up this PR then.

Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
All that really means right now is bumping the version.

Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
@pattivacek pattivacek force-pushed the fix/secondary-root-version-bump branch from 93a748b to d62ecf4 Compare January 17, 2020 14:51
@lbonn lbonn changed the title Fix/secondary root version bump Merge pull request #1525 from advancedtelematic/fix/secondary-root-version-bump Jan 17, 2020
@lbonn lbonn merged commit 5d9ec24 into master Jan 17, 2020
@lbonn lbonn deleted the fix/secondary-root-version-bump branch January 17, 2020 17:20
@codecov-io
Copy link

codecov-io commented Jan 17, 2020

Codecov Report

Merging #1525 into master will decrease coverage by 0.04%.
The diff coverage is 82.69%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1525      +/-   ##
==========================================
- Coverage   81.91%   81.86%   -0.05%     
==========================================
  Files         186      186              
  Lines       11361    11397      +36     
==========================================
+ Hits         9306     9330      +24     
- Misses       2055     2067      +12
Impacted Files Coverage Δ
src/uptane_generator/repo.h 100% <ø> (ø) ⬆️
src/uptane_generator/uptane_repo.h 100% <ø> (ø) ⬆️
...ktualizr_secondary/aktualizr_secondary_metadata.cc 81.81% <100%> (ø) ⬆️
src/libaktualizr/uptane/tuf.h 94.53% <100%> (-1.54%) ⬇️
src/uptane_generator/uptane_repo.cc 100% <100%> (ø) ⬆️
src/uptane_generator/main.cc 78.88% <28.57%> (-2.15%) ⬇️
src/uptane_generator/repo.cc 94.44% <88.57%> (-1.19%) ⬇️
src/libaktualizr/package_manager/ostreemanager.cc 79.02% <0%> (-1.13%) ⬇️
src/libaktualizr/storage/sqlstorage.cc 77.05% <0%> (-0.22%) ⬇️
... and 2 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 14f7c6e...d62ecf4. Read the comment docs.

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.

3 participants