Skip to content

Commit

Permalink
Merge pull request #1377 from cyli/notary-client-refactor
Browse files Browse the repository at this point in the history
Notary client refactor - simpler reader interface
  • Loading branch information
cyli committed Aug 30, 2018
2 parents 53ddae0 + c6360bf commit fb795b0
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
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)
}

0 comments on commit fb795b0

Please sign in to comment.