Fix lint errors.

pull/65/head
Mariano Cano 5 years ago
parent b6a5ebcfc9
commit f755fddc35

@ -200,6 +200,9 @@ func (p *AWS) GetIdentityToken() (string, error) {
jose.SigningKey{Algorithm: jose.HS256, Key: signature},
new(jose.SignerOptions).WithType("JWT"),
)
if err != nil {
return "", errors.Wrap(err, "error creating signer")
}
now := time.Now()
payload := awsPayload{

@ -226,6 +226,7 @@ func TestGCP_AuthorizeSign(t *testing.T) {
"https://foo.bar.zar", p1.GetID(),
"instance-id", "instance-name", "project-id", "zone",
time.Now(), &p1.keyStore.keySet.Keys[0])
assert.FatalError(t, err)
failAud, err := generateGCPToken(p1.ServiceAccounts[0],
"https://accounts.google.com", "gcp:foo",
"instance-id", "instance-name", "project-id", "zone",

Loading…
Cancel
Save