fix tests
This commit is contained in:
		
							parent
							
								
									cbd3b8ccb3
								
							
						
					
					
						commit
						cbfba29b3a
					
				|  | @ -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()) | ||||
| 			}) | ||||
| 		}) | ||||
|  |  | |||
|  | @ -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 | ||||
		Loading…
	
		Reference in New Issue