forked from TrueCloudLab/certificates
Fix lint errors.
This commit is contained in:
parent
b6a5ebcfc9
commit
f755fddc35
2 changed files with 4 additions and 0 deletions
|
@ -200,6 +200,9 @@ func (p *AWS) GetIdentityToken() (string, error) {
|
||||||
jose.SigningKey{Algorithm: jose.HS256, Key: signature},
|
jose.SigningKey{Algorithm: jose.HS256, Key: signature},
|
||||||
new(jose.SignerOptions).WithType("JWT"),
|
new(jose.SignerOptions).WithType("JWT"),
|
||||||
)
|
)
|
||||||
|
if err != nil {
|
||||||
|
return "", errors.Wrap(err, "error creating signer")
|
||||||
|
}
|
||||||
|
|
||||||
now := time.Now()
|
now := time.Now()
|
||||||
payload := awsPayload{
|
payload := awsPayload{
|
||||||
|
|
|
@ -226,6 +226,7 @@ func TestGCP_AuthorizeSign(t *testing.T) {
|
||||||
"https://foo.bar.zar", p1.GetID(),
|
"https://foo.bar.zar", p1.GetID(),
|
||||||
"instance-id", "instance-name", "project-id", "zone",
|
"instance-id", "instance-name", "project-id", "zone",
|
||||||
time.Now(), &p1.keyStore.keySet.Keys[0])
|
time.Now(), &p1.keyStore.keySet.Keys[0])
|
||||||
|
assert.FatalError(t, err)
|
||||||
failAud, err := generateGCPToken(p1.ServiceAccounts[0],
|
failAud, err := generateGCPToken(p1.ServiceAccounts[0],
|
||||||
"https://accounts.google.com", "gcp:foo",
|
"https://accounts.google.com", "gcp:foo",
|
||||||
"instance-id", "instance-name", "project-id", "zone",
|
"instance-id", "instance-name", "project-id", "zone",
|
||||||
|
|
Loading…
Reference in a new issue