Resolving travis failures

This commit is contained in:
Richard Barnes 2015-03-16 22:07:45 -04:00
parent e142aa7cf9
commit cd7c21a96b
2 changed files with 9 additions and 1 deletions

View File

@ -76,6 +76,11 @@ func (ra *RegistrationAuthorityImpl) NewAuthorization(request core.Authorization
}
for i := range challenges {
// Ignoring these errors because we construct the URLs to be correct
fmt.Println("ra:", ra)
fmt.Println("ra.AuthzBase:", ra.AuthzBase)
fmt.Println("authID:", authID)
fmt.Println("strconv.Itoa(i):", strconv.Itoa(i))
fmt.Println("url:", ra.AuthzBase+authID+"?challenge="+strconv.Itoa(i))
challengeURI, _ := url.Parse(ra.AuthzBase + authID + "?challenge=" + strconv.Itoa(i))
challenges[i].URI = core.AcmeURL(*challengeURI)
}

View File

@ -20,6 +20,7 @@ import (
"github.com/letsencrypt/boulder/ca"
"github.com/letsencrypt/boulder/core"
"github.com/letsencrypt/boulder/jose"
"github.com/letsencrypt/boulder/policy"
"github.com/letsencrypt/boulder/sa"
"github.com/letsencrypt/boulder/test"
)
@ -83,7 +84,8 @@ func initAuthorities(t *testing.T) (core.CertificateAuthority, *DummyValidationA
caCertPEM, _ := pem.Decode([]byte(CA_CERT_PEM))
caCert, _ := x509.ParseCertificate(caCertPEM.Bytes)
signer, _ := local.NewSigner(caKey, caCert, x509.SHA256WithRSA, nil)
ca := ca.CertificateAuthorityImpl{Signer: signer, SA: sa}
pa := policy.NewPolicyAuthorityImpl()
ca := ca.CertificateAuthorityImpl{Signer: signer, SA: sa, PA: pa}
csrDER, _ := hex.DecodeString(CSR_HEX)
ExampleCSR, _ = x509.ParseCertificateRequest(csrDER)
@ -91,6 +93,7 @@ func initAuthorities(t *testing.T) (core.CertificateAuthority, *DummyValidationA
ra.SA = sa
ra.VA = va
ra.CA = &ca
ra.PA = pa
return &ca, va, sa, &ra
}