Set up automated testing for Azure Storage

This commit is contained in:
Frederik Ring
2022-12-23 10:31:25 +01:00
parent 7aa2166aee
commit a253fdfbec
5 changed files with 103 additions and 3 deletions

View File

@@ -66,7 +66,7 @@ type Config struct {
AzureStorageAccountName string `split_words:"true"`
AzureStoragePrimaryAccountKey string `split_words:"true"`
AzureStorageContainerName string `split_words:"true"`
AzureStorageEndpoint string `split_words:"true" default:""https://%s.blob.core.windows.net/""`
AzureStorageEndpoint string `split_words:"true" default:"https://%s.blob.core.windows.net/"`
}
func (c *Config) resolveSecret(envVar string, secretPath string) (string, error) {

View File

@@ -196,6 +196,7 @@ func newScript() (*script, error) {
ContainerName: s.c.AzureStorageContainerName,
AccountName: s.c.AzureStorageAccountName,
PrimaryAccountKey: s.c.AzureStoragePrimaryAccountKey,
Endpoint: s.c.AzureStorageEndpoint,
}
azureBackend, err := azure.NewStorageBackend(azureConfig, logFunc)
if err != nil {