Fix variable / package name collision

This commit is contained in:
aram price 2020-12-10 17:28:47 -08:00
parent e1173eb5eb
commit a3285fc187

View File

@ -341,7 +341,7 @@ func TestManager(t *testing.T) {
r.NoError(err) r.NoError(err)
subject.SetProviders(p1, p2) subject.SetProviders(p1, p2)
jwks := map[string]*jose.JSONWebKeySet{ jwksMap := map[string]*jose.JSONWebKeySet{
issuer1: {Keys: []jose.JSONWebKey{*newTestJWK(issuer1KeyID)}}, issuer1: {Keys: []jose.JSONWebKey{*newTestJWK(issuer1KeyID)}},
issuer2: {Keys: []jose.JSONWebKey{*newTestJWK(issuer2KeyID)}}, issuer2: {Keys: []jose.JSONWebKey{*newTestJWK(issuer2KeyID)}},
} }
@ -349,7 +349,7 @@ func TestManager(t *testing.T) {
issuer1: newTestJWK(issuer1KeyID), issuer1: newTestJWK(issuer1KeyID),
issuer2: newTestJWK(issuer2KeyID), issuer2: newTestJWK(issuer2KeyID),
} }
dynamicJWKSProvider.SetIssuerToJWKSMap(jwks, activeJWK) dynamicJWKSProvider.SetIssuerToJWKSMap(jwksMap, activeJWK)
}) })
it("sends all non-matching host requests to the nextHandler", func() { it("sends all non-matching host requests to the nextHandler", func() {
@ -384,7 +384,7 @@ func TestManager(t *testing.T) {
r.NoError(err) r.NoError(err)
subject.SetProviders(p2, p1) subject.SetProviders(p2, p1)
jwks := map[string]*jose.JSONWebKeySet{ jwksMap := map[string]*jose.JSONWebKeySet{
issuer1: {Keys: []jose.JSONWebKey{*newTestJWK(issuer1KeyID)}}, issuer1: {Keys: []jose.JSONWebKey{*newTestJWK(issuer1KeyID)}},
issuer2: {Keys: []jose.JSONWebKey{*newTestJWK(issuer2KeyID)}}, issuer2: {Keys: []jose.JSONWebKey{*newTestJWK(issuer2KeyID)}},
} }
@ -392,7 +392,7 @@ func TestManager(t *testing.T) {
issuer1: newTestJWK(issuer1KeyID), issuer1: newTestJWK(issuer1KeyID),
issuer2: newTestJWK(issuer2KeyID), issuer2: newTestJWK(issuer2KeyID),
} }
dynamicJWKSProvider.SetIssuerToJWKSMap(jwks, activeJWK) dynamicJWKSProvider.SetIssuerToJWKSMap(jwksMap, activeJWK)
}) })
it("still routes matching requests to the appropriate provider", func() { it("still routes matching requests to the appropriate provider", func() {