-
Notifications
You must be signed in to change notification settings - Fork 58
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
[SNOW-559751] Add role switching to SimpleIngestManager #156
base: master
Are you sure you want to change the base?
Conversation
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.
LGTM!
* @param hostName the hostname | ||
* @param keyPair keyPair associated with the private key used for authentication. See @see {@link | ||
* Utils#createKeyPairFromPrivateKey} to generate KP from p8Key | ||
* @param userAgentSuffix user agent suffix we want to add. |
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.
please add comment for role
@@ -388,6 +440,28 @@ public SimpleIngestManager( | |||
new RequestBuilder(account, user, keyPair, schemeName, hostName, port, userAgentSuffix); | |||
} | |||
|
|||
/* Another flavor of constructor which supports userAgentSuffix and role */ |
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.
javadoc
* RequestBuilder constructor which uses default schemes, host and port. | ||
* | ||
* @param accountName - the name of the Snowflake account to which we're connecting | ||
* @param userName - the username of the entity loading files |
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.
missing hostName
assertEquals(0L, configureClientResponse.getClientSequencer().longValue()); | ||
} | ||
|
||
@Ignore |
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.
why these tests are ignored for now? Could you add a JIRA for enabling them?
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.
These tests are disabled from the beginning as they arose. I don't know what the story is behind this.
https://github.com/snowflakedb/snowflake-ingest-java/pull/105/files
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.
@sfc-gh-japatel i think it could be enabled now?
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.
I have it enabled already but I forgot to push.
Hello,
Depends on: https://github.com/snowflakedb/snowflake/pull/52893
Doc: https://docs.google.com/document/d/1gSeQeGdJGxXRbRp1QiuEzeCjiQdqLnUdcCp7IhyV2LU/edit#
Best regards,
Kamil Breguła