-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implemented fetch_tracker to RepositorySimulator #1705
Implemented fetch_tracker to RepositorySimulator #1705
Conversation
I decided to submit a new PR after my big mess on PR #1704, and I have to say sorry. As mentioned by @sechkova in the PR #1704
I also thought to have different dataclasses for metadata and targets in the initial design. |
Pull Request Test Coverage Report for Build 1553255010
💛 - Coveralls |
Looks good to me, just one question |
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.
Looks ok to me. Do you mind squashing the two commits before merging?
ef4eefc
to
294b7ea
Compare
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.
Looks ok to merge to me but I did leave two comments. I can merge as is but maybe have a look and let me know what you think?
294b7ea
to
b9b05dc
Compare
Thank you @jku, I will pay more attention. |
This commit implements a feature in Repository Simulator to track the fetch calls to the metadata and targets. This feature was mentioned in PR theupdateframework#1666 that generated issue theupdateframework#1682. This commit adds RepositorySimulator.fetch_tracker. It also changes the tests/test_updater_consistent_snapshot.py to use the fetch_tracker instead of using mock. It implements a dataclass that stores the calls to fetch metadata (_fetch_metadata) in fetch_tracker.metadata and targets (_fetch_targets) in fetch_tracker.targets. The fetch calls for metadata, and targets are stored as lists. Signed-off-by: Kairo de Araujo <[email protected]>
64c51f6
to
35cbc3e
Compare
I think we'll go with this version :) thanks |
This commit implements a feature in Repository Simulator to
track the fetch calls to the metadata and targets. This feature was
mentioned in PR #1666 that generated issue #1682.
This commit adds RepositorySimulator.fetch_tracker. It also changes
the tests/test_updater_consistent_snapshot.py to use the
fetch_tracker instead of using mock.
It implements a dataclass that stores the calls to fetch metadata
(_fetch_metadata) in fetch_tracker.metadata and targets
(_fetch_targets) in fetch_tracker.targets.
The fetch calls for metadata, and targets are stored as lists.
Signed-off-by: Kairo de Araujo [email protected]
Please fill in the fields below to submit a pull request. The more information
that is provided, the better.
Fixes #1682
Description of the changes being introduced by the pull request:
Please verify and check that the pull request fulfills the following
requirements: