Repository navigation
Add GCS credential renewal integration test (local) - #1209
Conversation
Signed-off-by: Zheng Hu <[email protected]>
Signed-off-by: Zheng Hu <[email protected]>
Signed-off-by: Zheng Hu <[email protected]>
Signed-off-by: Zheng Hu <[email protected]>
Signed-off-by: Zheng Hu <[email protected]>
Signed-off-by: Zheng Hu <[email protected]>
Signed-off-by: Zheng Hu <[email protected]>
Signed-off-by: TimothyW553 <[email protected]>
Signed-off-by: TimothyW553 <[email protected]>
Signed-off-by: TimothyW553 <[email protected]>
|
Some maven download issues... its a bit flaky sometimes -- closing and reopening |
Signed-off-by: TimothyW553 <[email protected]>
Signed-off-by: TimothyW553 <[email protected]>
Signed-off-by: TimothyW553 <[email protected]>
| } | ||
|
|
||
| private GcpCredentialsGenerator createGenerator(GcsStorageConfig storageConfig) { | ||
| if (storageConfig != null) { |
There was a problem hiding this comment.
When will the storageConfig to be null ? If the storageBase is existing in the gcsConfigurations map, then the storageConfig should always be non-null, right ? while if storageBase is not existing, then it should reports as an invalid storageBase, right ?
There was a problem hiding this comment.
Ah yes, we should check before even trying to create generator.
| String jsonKeyFilePath = storageConfig != null ? storageConfig.getJsonKeyFilePath() : null; | ||
| if (jsonKeyFilePath != null && jsonKeyFilePath.isEmpty()) { | ||
| jsonKeyFilePath = null; | ||
| } else if (jsonKeyFilePath != null && jsonKeyFilePath.startsWith(TESTING_TOKEN_PREFIX)) { |
There was a problem hiding this comment.
Maybe we can remove this special case for testing, and just configure the generatorClass to be TestingCredentialsGenerator, then it will automatically load the TestingCredentialsGenerator in here https://github.com/unitycatalog/unitycatalog/pull/1209/files#diff-259f12dc6991de29d1a6d85eeac6a7faa919a2a713ec703e8fb75a5befb88de1R55-R56, for testing.
Right ?
There was a problem hiding this comment.
Yeah, we should decouple the test from the gcpcredentialvendor
Signed-off-by: TimothyW553 <[email protected]>
Signed-off-by: TimothyW553 <[email protected]>
Signed-off-by: TimothyW553 <[email protected]>
Signed-off-by: TimothyW553 <[email protected]>
| URI uriWithSuffix = URI.create("https://localhost:8080/path/to/uc/api"); | ||
| ApiClient apiClientWithSuffix = ApiClientFactory | ||
| .createApiClient(clientConf, uriWithSuffix, token); | ||
| ApiClient apiClientWithSuffix = |
There was a problem hiding this comment.
this file was caught when i ran javafmtAll
**PR Checklist** - [ ] A description of the changes is added to the description of this PR. - [ ] If there is a related issue, make sure it is linked to this PR. - [ ] If you've fixed a bug or added code that should be tested, add tests! - [ ] If you've added or modified a feature, documentation in `docs` is updated **Description of changes** This is a backport of #1209 to branch-0.3 <!-- Please state what you've changed and how it might affect the users. --> Signed-off-by: TimothyW553 <[email protected]>
PR Checklist
docsis updatedDescription of changes
This branch is currently based on @openinx's PR #1193 which creates an abstraction for integration tests.
TODO: update this branch once his PR is merged to main. The delta for this PR can be found here: https://github.com/openinx/unitycatalog/pull/1/files