fix tests

This commit is contained in:
William Will 2025-08-08 11:52:48 -06:00 committed by Jan Larwig
parent cbd3b8ccb3
commit cbfba29b3a
No known key found for this signature in database
GPG Key ID: C2172BFA220A037A
2 changed files with 43 additions and 2 deletions

View File

@ -277,7 +277,7 @@ var _ = Describe("Redis SessionStore Tests", func() {
Context("with AWS IAM options", func() {
It("should initialize CredentialsProvider when AWSIAMConfig is present", func() {
redisOpts := options.RedisStoreOptions{
AWSIAMConfig: &options.AWSIAMOptions{
AWSIAMConfig: &options.AWSIAMConfig{
ServiceName: "elasticache",
ClusterName: "test-cluster",
Username: "test-user",
@ -288,6 +288,8 @@ var _ = Describe("Redis SessionStore Tests", func() {
opt = &redis.Options{}
err := setupAWSIAMAuth(redisOpts, opt)
Expect(err).ToNot(HaveOccurred())
Expect(opt.CredentialsProvider).ToNot(BeNil())
username, _ := opt.CredentialsProvider()
@ -302,7 +304,7 @@ var _ = Describe("Redis SessionStore Tests", func() {
opt = &redis.Options{}
err := setupAWSIAMAuth(redisOpts, opt)
Expect(err).ToNot(HaveOccurred())
Expect(opt.CredentialsProvider).To(BeNil())
})
})

39
test.yaml Normal file
View File

@ -0,0 +1,39 @@
injectResponseHeaders:
- name: X-Auth-Request-User
values:
- claim: access_token
metricsServer:
BindAddress: ":5000"
SecureBindAddress: ""
TLS: null
providers:
- provider: keycloak-oidc
backendLogoutURL: /doesn't-matter
clientID: oauth2-proxy
clientSecret: oauth2-proxy
code_challenge_method: S256
id: keycloak-oidc=oauth2-proxy
loginURLParameters:
- default:
- force
name: approval_prompt
oidcConfig:
audienceClaims:
- aud
emailClaim: email
extraAudiences:
- account
groupsClaim: groups
insecureSkipNonce: true
issuerURL: http://localhost:8080/realms/test
userIDClaim: email
server:
BindAddress: ":4180"
SecureBindAddress: ""
TLS: null
awsIam:
serviceName: elasticache
clusterName: test
userName: test