Repository navigation
Fix GCP and Azure storage configuration to store missing properties - #370
Conversation
| } | ||
|
|
||
| @Test | ||
| public void testCreateCatalogWithAzureStorageConfig() { |
There was a problem hiding this comment.
It might also be useful to add CLI tests
There was a problem hiding this comment.
CLI tests are fine, but I think the primary purpose of CLI tests is to evaluate that the CLI behaves as expected. For the purpose of this PR, we're fixing an API issue, so I think testing the API directly makes the most sense. If the CLI isn't passing something to the API, that's a concern, but I don't think we need to duplicate every API test in the CLI. Moreover, the CLI test doesn't have the infrastructure for setting fake google credentials, so adding tests there would require a pretty significant change and I don't know that we'd get much more value for the extra work.
There was a problem hiding this comment.
Adding CLI or Python client tests would add further validation that the types (i.e. AzureStorageConfigInfo) serialize and deserialize correctly in the Python client.
There was a problem hiding this comment.
As above, if we don't have tests for that, I don't think we ought to block a bugfix from being checked in to address that issue. I think de/serialization tests are great. Let's open an issue and tackle it in another PR.
There was a problem hiding this comment.
Being that the issue was initially reported as affecting the CLI, I still think it makes sense to add CLI tests.
eric-maynard
left a comment
There was a problem hiding this comment.
This is an important fix and overall the change looks good to me. Left a few comments
eric-maynard
left a comment
There was a problem hiding this comment.
LGTM, thanks for the fix! Let's not block on reworking the relevant tests
Description
GCP and Azure storage config models are missing properties sent by the client, causing misconfiguration of catalog storage. This fixes the missing properties and adds explicit tests for those storage configurations.
To facilitate testing, this also moves the GCP application credentials generation to a configurable supplier so that a static instance can be injected in tests.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Test Configuration:
Checklist:
Please delete options that are not relevant.