Skip to content

Commit

Permalink
Refactor the notary client library to have a separate reader and down…
Browse files Browse the repository at this point in the history
…loader

that may be easier to use for clients that do not need any publishing
capabilities.

Signed-off-by: Ying Li <[email protected]>
  • Loading branch information
cyli committed Aug 6, 2018
1 parent 864a32d commit 88698de
Show file tree
Hide file tree
Showing 12 changed files with 706 additions and 504 deletions.
8 changes: 4 additions & 4 deletions client/backwards_compatibility_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ func Test0Dot1RepoFormat(t *testing.T) {
// and we can download the snapshot
require.NoError(t, repo.RotateKey(data.CanonicalSnapshotRole, true, nil))
require.NoError(t, repo.Publish())
err = repo.Update(false)
err = repo.updateTUF(false)
require.NoError(t, err)
}

Expand Down Expand Up @@ -307,7 +307,7 @@ func Test0Dot3RepoFormat(t *testing.T) {
// and we can download the snapshot
require.NoError(t, repo.RotateKey(data.CanonicalSnapshotRole, true, nil))
require.NoError(t, repo.Publish())
err = repo.Update(false)
err = repo.updateTUF(false)
require.NoError(t, err)
}

Expand All @@ -333,7 +333,7 @@ func TestDownloading0Dot1RepoFormat(t *testing.T) {
require.NoError(t, err, "error creating repo: %s", err)
repo := r.(*repository)

err = repo.Update(true)
err = repo.updateTUF(true)
require.NoError(t, err, "error updating repo: %s", err)
}

Expand All @@ -359,6 +359,6 @@ func TestDownloading0Dot3RepoFormat(t *testing.T) {
require.NoError(t, err, "error creating repo: %s", err)
repo := r.(*repository)

err = repo.Update(true)
err = repo.updateTUF(true)
require.NoError(t, err, "error updating repo: %s", err)
}
Loading

0 comments on commit 88698de

Please sign in to comment.