diff --git a/TCC.Lib/Options/CompressOption.cs b/TCC.Lib/Options/CompressOption.cs index d8a7944..f64aef4 100644 --- a/TCC.Lib/Options/CompressOption.cs +++ b/TCC.Lib/Options/CompressOption.cs @@ -18,7 +18,7 @@ public class CompressOption : TccOption public int? CleanupTime { get; set; } public string AzBlobUrl { get; set; } public string AzBlobContainer { get; set; } - public string AzSaS { get; set; } + public string AzBlobSaS { get; set; } public int? AzThread { get; set; } public string GoogleStorageBucketName { get; set; } public string GoogleStorageCredential { get; set; } diff --git a/TCC.Lib/Storage/RemoteStorageFactory.cs b/TCC.Lib/Storage/RemoteStorageFactory.cs index 854e77f..8d97434 100644 --- a/TCC.Lib/Storage/RemoteStorageFactory.cs +++ b/TCC.Lib/Storage/RemoteStorageFactory.cs @@ -22,12 +22,12 @@ public static async Task GetRemoteStorageAsync(this CompressOpti { if (string.IsNullOrEmpty(option.AzBlobUrl) || string.IsNullOrEmpty(option.AzBlobContainer) - || string.IsNullOrEmpty(option.AzSaS)) + || string.IsNullOrEmpty(option.AzBlobSaS)) { logger.LogCritical("Configuration error for azure blob upload"); return new NoneRemoteStorage(); } - var client = new BlobServiceClient(new Uri(option.AzBlobUrl + "/" + option.AzBlobContainer + "?" + option.AzSaS)); + var client = new BlobServiceClient(new Uri(option.AzBlobUrl + "/" + option.AzBlobContainer + "?" + option.AzBlobSaS)); BlobContainerClient container = client.GetBlobContainerClient(option.AzBlobContainer); return new AzureRemoteStorage(container); } diff --git a/TCC.Tests/Upload/BlobStorageTests.cs b/TCC.Tests/Upload/BlobStorageTests.cs index 6230a37..7a71523 100644 --- a/TCC.Tests/Upload/BlobStorageTests.cs +++ b/TCC.Tests/Upload/BlobStorageTests.cs @@ -33,7 +33,7 @@ public async Task AzureUploadTest() { AzBlobUrl = GetEnvVar("AZ_URL"), AzBlobContainer = GetEnvVar("AZ_CONTAINER"), - AzSaS = GetEnvVar("AZ_SAS_TOKEN") + AzBlobSaS = GetEnvVar("AZ_SAS_TOKEN") }; opt.UploadMode = UploadMode.AzureSdk; var uploader = await opt.GetRemoteStorageAsync(NullLogger.Instance, CancellationToken.None);