zeroshade commented on code in PR #2771:
URL: https://github.com/apache/iceberg-go/pull/2771#discussion_r4744161052


##########
encryption/awskms/kms_test.go:
##########
@@ -41,7 +42,24 @@ func newTestClient(t *testing.T, handler http.HandlerFunc) 
*Client {
        t.Cleanup(server.Close)
        cfg := aws.Config{Region: "us-east-1", Credentials: 
credentials.NewStaticCredentialsProvider("test", "test", ""), RetryMaxAttempts: 
1}
 
-       return NewClient(cfg, func(options *kms.Options) { options.BaseEndpoint 
= aws.String(server.URL) })
+       return NewClient(cfg, WithClientOptions(func(options *kms.Options) { 
options.BaseEndpoint = aws.String(server.URL) }))
+}
+
+func TestNewClientAppliesClientOptions(t *testing.T) {

Review Comment:
   nit (optional): `newTestClient` now builds its client with 
`WithClientOptions(... BaseEndpoint = server.URL)` too, so every existing 
request/response test already proves the option reaches the SDK client (they'd 
hit real KMS otherwise). This one is mostly redundant. Fine to drop, or keep as 
a named regression test.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to