Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
fix config test
Browse files Browse the repository at this point in the history
  • Loading branch information
sergicastro committed Feb 26, 2024
1 parent 9975698 commit 4e360d6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion e2e/keycloak/authz-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"server_uri": "redis://redis:6379"
},
"trusted_certificate_authority_file": "/etc/authservice/certs/ca.crt",
"trusted_certificate_authority_refresh_interval": "60m"
"trusted_certificate_authority_refresh_interval": "1m30s"
}
}
]
Expand Down
1 change: 1 addition & 0 deletions internal/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ func TestLoadOIDC(t *testing.T) {
Logout: &oidcv1.LogoutConfig{Path: "/logout", RedirectUri: "http://fake"},
TrustedCaConfig: &oidcv1.OIDCConfig_TrustedCertificateAuthority{TrustedCertificateAuthority: "fake-ca-pem"},
SkipVerifyPeerCert: structpb.NewBoolValue(true),
TrustedCertificateAuthorityRefreshInterval: "1h30m",
},
},
},
Expand Down
3 changes: 2 additions & 1 deletion internal/testdata/oidc-override.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"jwks_uri": "http://fake/jwks",
"skip_verify_peer_cert": "true"
},
"trusted_certificate_authority": "fake-ca-pem"
"trusted_certificate_authority": "fake-ca-pem",
"trusted_certificate_authority_refresh_interval": "1h30m"
}
}
]
Expand Down

0 comments on commit 4e360d6

Please sign in to comment.