Merge pull request #121 from docker/diogo-adding-truststore-tests

Adding tests for CertsToRemove, and move tests around
This commit is contained in:
Nathan McCauley
2015-07-22 23:27:25 -07:00
3 changed files with 490 additions and 142 deletions

File diff suppressed because one or more lines are too long

View File

@@ -243,7 +243,7 @@ func (km *KeyStoreManager) ValidateRoot(root *data.Signed, gun string) error {
err = signed.VerifyRoot(root, 0, trustmanager.CertsToKeys(certsForCN))
if err != nil {
logrus.Debugf("failed to verify TUF data for: %s, %v", gun, err)
return &ErrValidationFail{Reason: "failed to validate integrity of roots"}
return &ErrValidationFail{Reason: "failed to validate data with current trusted certificates"}
}
} else {
logrus.Debugf("found no currently valid root certificates for %s", gun)

File diff suppressed because one or more lines are too long