Skip to content

Commit

Permalink
Added a test package and some initial notes
Browse files Browse the repository at this point in the history
  • Loading branch information
renatav committed Dec 20, 2018
1 parent bb9038a commit 5342fa9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Empty file added oll/__init__.py
Empty file.
Empty file added oll/tests/__init__.py
Empty file.
9 changes: 9 additions & 0 deletions oll/tests/test_git_updater.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# We need to implement tests for our updater. We do not need to re-implement the whole
# TUF's test_updater', because we only slightly modify the process. We need to check
# if the git repositories were updated, if the appropriate exception was raised.
# Some of the things we need address and test include:
# - successful update, when the users repository was several commits behind the remote one
# - error when someone force pushed to the remote repository and removed a number of commits
# so that the client's top commit is ahead of the one in the remote repository
# - successful update when one or more intermediate commits contain expired metadata
# - error when a metadata file shouldn't have had change, but that is not the case.

0 comments on commit 5342fa9

Please sign in to comment.