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 13, 2018
1 parent 864a32d commit 8f41690
Show file tree
Hide file tree
Showing 13 changed files with 710 additions and 508 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 8f41690

Please sign in to comment.