2.6 KiB
2.6 KiB
Azure Blob Storage Test Configuration
In order to test the Azure Blob Storage destination, you need a Microsoft account.
Community Contributor
As a community contributor, you will need access to Azure to run the integration tests.
- Create an AzureBlobStorage account for testing. Check if it works under https://portal.azure.com/ -> "Storage explorer (preview)".
- Get your
azure_blob_storage_account_nameandazure_blob_storage_account_keythat can read and write to the Azure Container. - Paste the accountName and key information into the config files under
./sample_secrets. - Rename the directory from
sample_secretstosecrets. - Feel free to modify the config files with different settings in the acceptance test file (e.g.
AzureBlobStorageJsonlDestinationAcceptanceTest.java, methodgetFormatConfig), as long as they follow the schema defined in spec.json.
Airbyte Employee
- Access the
Azure Blob Storage Accountsecrets on Last Pass. - Replace the
config.jsonundersample_secrets. - Rename the directory from
sample_secretstosecrets.
Infra setup
- Log in to the Azure portal using the
integration-test@airbyte.ioaccount - Go to Storage Accounts
- Create a new storage account with a reasonable name (currently
airbyteteststorage), under theintegration-test-rgresource group. - In the
Redundancysetting, chooseLocally-redundant storage (LRS). - Hit
Review(you can leave all the other settings as the default) and thenCreate. - Navigate into that storage account ->
Containers. Make a new container with a reasonable name (currentlyairbytetescontainername). - Then go back up to the storage account ->
Access keys. This is theazure_blob_storage_account_keyconfig field. - There are two keys; use the first one. We don't need 100% uptime on our integration tests, so there's no need to alternate between the two keys.
Add New Output Format
- Add a new enum in `AzureBlobStorageFormat'.
- Modify
spec.jsonto specify the configuration of this new format. - Update
AzureBlobStorageFormatConfigsto be able to construct a config for this new format. - Create a new package under
io.airbyte.integrations.destination.azure_blob_storage. - Implement a new
AzureBlobStorageWriter. The implementation can extendBaseAzureBlobStorageWriter. - Write an acceptance test for the new output format. The test can extend
AzureBlobStorageDestinationAcceptanceTest.