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

Fix/abort if already registered #1579

Merged
merged 4 commits into from
Mar 4, 2020
Merged

Conversation

pattivacek
Copy link
Collaborator

@pattivacek pattivacek commented Feb 28, 2020

Abort initialization if already ECUs are already registered.

Also includes some related test and logging improvements.

It doesn't belong in the Uptane module; it only tests initialization, so
now it lives next to the code that it actually tests.

Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
Move provisioning failure logic out of the base HttpFake class since it
is only used in initializer_test.

Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
@codecov-io
Copy link

Codecov Report

Merging #1579 into master will decrease coverage by 0.05%.
The diff coverage is 75%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1579      +/-   ##
==========================================
- Coverage    82.3%   82.24%   -0.06%     
==========================================
  Files         189      189              
  Lines       11862    11859       -3     
==========================================
- Hits         9763     9754       -9     
- Misses       2099     2105       +6
Impacted Files Coverage Δ
src/libaktualizr/primary/initializer.cc 87.17% <75%> (+6.04%) ⬆️
src/libaktualizr/package_manager/ostreemanager.cc 77.57% <0%> (-1.48%) ⬇️
src/libaktualizr/storage/sqlstorage_base.cc 79.05% <0%> (-1.36%) ⬇️
src/libaktualizr/storage/sqlstorage.cc 77.49% <0%> (-0.97%) ⬇️
src/libaktualizr/primary/sotauptaneclient.cc 90.66% <0%> (-0.25%) ⬇️
src/libaktualizr/crypto/crypto.cc 85.99% <0%> (+0.77%) ⬆️

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 9f2cc5d...bacd7dd. Read the comment docs.

Copy link
Contributor

@eu-siemann eu-siemann left a comment

Choose a reason for hiding this comment

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

Looks good!

@pattivacek pattivacek merged commit 3c09519 into master Mar 4, 2020
@pattivacek pattivacek deleted the fix/abort-if-already-registered branch March 4, 2020 10:21
@pattivacek pattivacek restored the fix/abort-if-already-registered branch March 4, 2020 10:21
@pattivacek pattivacek deleted the fix/abort-if-already-registered branch March 4, 2020 10:21
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.

None yet

3 participants