-
Notifications
You must be signed in to change notification settings - Fork 2.9k
AWS: add client factory for assume role use case #2002
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
aws/src/main/java/org/apache/iceberg/aws/AssumeRoleAwsClientFactory.java
Show resolved
Hide resolved
| } catch (GlueException e) { | ||
| LOG.error("fail to create or delete Glue database", e); | ||
| Assert.fail("create and delete namespace should succeed"); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should add a finally to retry to drop the namespace.
| Assert.assertEquals("Should see 403 error code", 403, e.statusCode()); | ||
| } | ||
|
|
||
| inputFile = s3FileIO.newInputFile("s3://" + AwsIntegTestUtil.testBucketName() + "/allowed/file"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you delete this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file does not exist, I call inputFile.exsits() just to check it has access permission.
|
Looks good to me, but I haven't been following much of the config discussion so I'll defer to @danielcweeks. |
|
This looks good to me as well, but I think @giovannifumarola comment might still need to be addressed. Let me know and I'll push it through. |
danielcweeks
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jackye1995!
* AWS: add client factory for assume role use case * fix tests
@danielcweeks as discussed in #1844 , separated PR for assume role client factory support.