Skip to content
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

Change download logic to not completely abort in certain delegation failure cases #884

Merged
merged 2 commits into from
Jul 29, 2016

Conversation

cyli
Copy link
Contributor

@cyli cyli commented Jul 28, 2016

For instance if there aren't enough signatures, or if the metadata is expired

… have enough signatures or is expired

Signed-off-by: Ying Li <[email protected]>
@cyli cyli force-pushed the skip-invalid-delegations branch from cd2fb39 to 4b75d58 Compare July 28, 2016 23:14
@@ -1087,6 +1099,14 @@ func TestUpdateNonRootRemoteCorruptedCannotUseLocalCache(t *testing.T) {
if testing.Short() {
t.Skip("skipping test in short mode")
}

acceptDelgAnyway := map[string]struct{}{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it might be worth factoring this out into a global var like waysToMessUpServer

@cyli cyli force-pushed the skip-invalid-delegations branch from a01e44c to df46182 Compare July 29, 2016 00:35
@endophage
Copy link
Contributor

LGTM

@@ -1078,6 +1104,22 @@ func TestUpdateNonRootRemoteCorruptedCanUseLocalCache(t *testing.T) {
}
}

// requires that a delegation role and its decendents were not accepted as a valid part of the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: descendants

@riyazdf
Copy link
Contributor

riyazdf commented Jul 29, 2016

LGTM pending CI - documentation CI errors are unrelated

…heck that bad delegations aren't accepted

Signed-off-by: Ying Li <[email protected]>
@cyli cyli force-pushed the skip-invalid-delegations branch from df46182 to b3982e8 Compare July 29, 2016 00:55
@endophage endophage merged commit 88702ca into notaryproject:master Jul 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants